From a27735b5cf87d1d545b1a514a706b34f85d70aa3 Mon Sep 17 00:00:00 2001 From: Aine Date: Sun, 19 Mar 2023 09:16:29 +0200 Subject: [PATCH] add ansible.cfg; reorganize inventory a bit --- .gitignore | 2 -- ansible.cfg | 29 +++++++++++++++++++++++++++++ docs/configuring-playbook.md | 2 +- inventory/.gitkeep | 0 inventory/host_vars/.gitkeep | 0 5 files changed, 30 insertions(+), 3 deletions(-) create mode 100644 ansible.cfg delete mode 100644 inventory/.gitkeep delete mode 100644 inventory/host_vars/.gitkeep diff --git a/.gitignore b/.gitignore index 546bb11..cc14b36 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,4 @@ /inventory/* -!/inventory/.gitkeep -!/inventory/host_vars/.gitkeep # ignore roles pulled by ansible-galaxy /roles/galaxy/* diff --git a/ansible.cfg b/ansible.cfg new file mode 100644 index 0000000..75938b9 --- /dev/null +++ b/ansible.cfg @@ -0,0 +1,29 @@ +[defaults] +forks = 50 +timeout = 86400 +strategy = linear +ansible_managed = Autogenerated file, do NOT edit manually. +retry_files_enabled = False + +# Paths +inventory = inventory/hosts +roles_path = roles +log_path = /tmp/mash.log + +# Remote default +remote_user = root +host_key_checking = False + +# Display +display_skipped_hosts = False + +# Facts +gathering = smart +fact_caching = jsonfile +fact_caching_connection=/tmp/mash + + +[ssh_connection] +pipelining = True +ssh_args = -C -o ControlMaster=auto -o ControlPersist=30m -o PreferredAuthentications=publickey +control_path = /tmp/mash/ssh-%%h-%%p-%%r diff --git a/docs/configuring-playbook.md b/docs/configuring-playbook.md index 83185ac..cb4c7a4 100644 --- a/docs/configuring-playbook.md +++ b/docs/configuring-playbook.md @@ -7,7 +7,7 @@ To configure the playbook, you need to have done the following things: You can then follow these steps inside the playbook directory: -1. create a directory to hold your configuration (`mkdir inventory/host_vars/`) +1. create a directory to hold your configuration (`mkdir -p inventory/host_vars/`) 2. copy the sample configuration file (`cp examples/vars.yml inventory/host_vars//vars.yml`) diff --git a/inventory/.gitkeep b/inventory/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/inventory/host_vars/.gitkeep b/inventory/host_vars/.gitkeep deleted file mode 100644 index e69de29..0000000