MCPcopy Create free account
hub / github.com/devnullvoid/pvetui / ansiblePluginConfig

Method ansiblePluginConfig

internal/ui/plugins/ansible/plugin.go:2582–2605  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2580}
2581
2582func (p *Plugin) ansiblePluginConfig() cfgpkg.AnsiblePluginConfig {
2583 cfg := p.app.Config()
2584 if cfg == nil {
2585 return cfgpkg.AnsiblePluginConfig{
2586 InventoryFormat: coreansible.InventoryFormatYAML,
2587 InventorySource: coreansible.InventorySourcePvetui,
2588 InventoryStyle: coreansible.InventoryStyleCompact,
2589 DefaultLimitMode: "selection",
2590 Bootstrap: cfgpkg.AnsibleBootstrapConfig{
2591 Username: "ansible",
2592 Shell: "/bin/bash",
2593 CreateHome: true,
2594 ExcludeWindowsGuests: true,
2595 InstallAuthorizedKey: true,
2596 SudoersFileMode: "0440",
2597 DryRunDefault: true,
2598 Parallelism: 10,
2599 Timeout: "2m",
2600 },
2601 }
2602 }
2603
2604 return cfg.Plugins.Ansible
2605}
2606
2607func defaultInventoryFilename(format string) string {
2608 if coreansible.NormalizeInventoryFormat(format) == coreansible.InventoryFormatYAML {

Callers 9

showBootstrapRunFormMethod · 0.95
runAdhocMethod · 0.95
runPlaybookMethod · 0.95
runBootstrapAccessMethod · 0.95
runBootstrapDirectMethod · 0.95
previewInventoryMethod · 0.95
currentInventoryMethod · 0.95

Implementers 4

Plugininternal/ui/plugins/ansible/plugin.go
Plugininternal/ui/plugins/communityscripts/p
Plugininternal/ui/plugins/guestlist/plugin.g
Plugininternal/ui/plugins/commandrunner/plug

Calls 1

ConfigMethod · 0.80

Tested by

no test coverage detected