From 8408ae4bfaa4adecf1a26a97053258e6ded1c70c Mon Sep 17 00:00:00 2001 From: Doug Goldstein Date: Mon, 22 Jan 2024 10:35:52 -0600 Subject: [PATCH] don't use the global collections by default Since this installs its own collections, let's avoid stomping on things with other work the user might have going on. --- .gitignore | 1 + ansible/playbooks/ansible.cfg | 2 ++ 2 files changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index 47e4ec23..f292df97 100644 --- a/.gitignore +++ b/.gitignore @@ -120,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..a113a780 100644 --- a/ansible/playbooks/ansible.cfg +++ b/ansible/playbooks/ansible.cfg @@ -15,6 +15,8 @@ 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