()
| 2580 | } |
| 2581 | |
| 2582 | func (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 | |
| 2607 | func defaultInventoryFilename(format string) string { |
| 2608 | if coreansible.NormalizeInventoryFormat(format) == coreansible.InventoryFormatYAML { |
no test coverage detected