diff --git a/.gitignore b/.gitignore index 07aa5c34..f292df97 100644 --- a/.gitignore +++ b/.gitignore @@ -104,6 +104,7 @@ target/ # virtualenv venv/ +.venv/ ENV/ # molecule @@ -119,5 +120,6 @@ tmp.md # Ansible collection files kubernetes_sigs-kubespray*tar.gz ansible_collections +ansible/playbooks/collections kustomize/**/all.yaml diff --git a/ansible/playbooks/ansible.cfg b/ansible/playbooks/ansible.cfg index 8f63e44c..b0fb054e 100644 --- a/ansible/playbooks/ansible.cfg +++ b/ansible/playbooks/ansible.cfg @@ -9,12 +9,17 @@ gathering = smart fact_caching = jsonfile fact_caching_connection = /tmp fact_caching_timeout = 86400 -stdout_callback = default +# Use the YAML callback plugin because it's easier to read the errors +stdout_callback = YAML +# Use the stdout_callback when running ad-hoc commands. +bin_ansible_callbacks = True display_skipped_hosts = no callbacks_enabled = profile_tasks deprecation_warnings = False inventory_ignore_extensions = ~, .orig, .bak, .ini, .cfg, .retry, .pyc, .pyo, .creds, .gpg, .example enable_plugins = host_list, script, auto, yaml, ini, toml +# install and use local collections instead of global +collections_paths = ./collections/ansible_collections [inventory] ignore_patterns = artifacts, credentials