c117c1106d
So that we can start running things from the zuul source rather thatn update-system-config and /opt/system-config, we need to install a few things onto the host in install-ansible so that the ansible env is standalone. This introduces a split execution path. The ansible config is now all installed globally onto the machine by install-ansible and does not reference a git checkout. For running ad-hoc commands, an ansible.cfg is introduced inside the root of the system-config dir. So if ansible-playbook is executed with PWD==/opt/system-config it will find that ansible.cfg, it will take precedence, and any content from system-config will take precedence. As a followup we'll make /opt/system-config/ansible.cfg written out by install-ansible from the same template, and we'll update the split to make ansible only work when executed from one of the two configured locations, so that it's clear where we're operating from. Change-Id: I097694244e95751d96e67304aaae53ad19d8b873
34 lines
1.2 KiB
INI
34 lines
1.2 KiB
INI
# This ansible.cfg file is only for running ad-hoc commands from
|
|
# the /opt/system-config checkout. This file should be kept in
|
|
# sync with playbooks/roles/install-ansible/templates/ansible.cfg.j2
|
|
[defaults]
|
|
inventory=/opt/system-config/inventory/openstack.yaml,/opt/system-config/inventory/groups.yaml,/etc/ansible/hosts/emergency.yaml
|
|
library=/usr/share/ansible
|
|
log_path=/var/log/ansible/ansible.log
|
|
inventory_plugins=/opt/system-config/playbooks/roles/install-ansible/files/inventory_plugins/inventory_plugins
|
|
roles_path=/opt/system-config/roles:/etc/ansible/roles
|
|
retry_files_enabled=False
|
|
retry_files_save_path=
|
|
gathering=smart
|
|
fact_caching=jsonfile
|
|
fact_caching_connection=/var/cache/ansible/facts
|
|
# Squash warning about ansible auto-transforming group names with -'s in them
|
|
force_valid_group_names=ignore
|
|
callback_whitelist=profile_tasks, timer
|
|
callback_plugins=/etc/ansible/callback_plugins
|
|
stdout_callback=debug
|
|
|
|
[inventory]
|
|
enable_plugins=yaml,yamlgroup,advanced_host_list,ini
|
|
cache=True
|
|
cache_plugin=jsonfile
|
|
cache_connection=/var/cache/ansible/inventory
|
|
any_unparsed_is_failed=True
|
|
|
|
[ssh_connection]
|
|
retries=3
|
|
pipelining = True
|
|
|
|
[callback_profile_tasks]
|
|
task_output_limit = 50
|