From 3859ec87f0f813a7d9bc461ac1913841a85e7403 Mon Sep 17 00:00:00 2001 From: Someone Date: Fri, 4 Oct 2024 13:42:33 +0200 Subject: [PATCH] [roles/base/ansible] ----- meta + defaults ----- --- roles/base/ansible/defaults/main.yml | 24 ++++++++++++++++++++++++ roles/base/ansible/meta/main.yml | 13 +++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 roles/base/ansible/defaults/main.yml create mode 100644 roles/base/ansible/meta/main.yml diff --git a/roles/base/ansible/defaults/main.yml b/roles/base/ansible/defaults/main.yml new file mode 100644 index 0000000..b8d01e4 --- /dev/null +++ b/roles/base/ansible/defaults/main.yml @@ -0,0 +1,24 @@ +##################################### +### someone's ansible provisioner ### +##################################### +# Part of: https://git.somenet.org/root/pub/somesible.git +# 2017-2024 by someone +# +# If not overridden in inventory or as a parameter, this is the value that will be used +# +--- +group_files_group: "all" + +ansible_setup: True +ansible_setup_autoselfheal: True + +# Force the re-creation of most ansible files. +ansible_setup_reset: False + +# .ssh dir to look for the key and config for the selfhealing to use to pull somesible form. +# This was introduced for ansible tower and likely does not need to be changed as the bundled .ssh config + key will be used. +ansible_setup_autoselfheal_ssh_dir_location: "{{lookup('env','PWD')}}" + +# Use this strictly from commandline to update the known_hosts file of someansible-pull +# TODO: maybe useless +ansible_setup_autoselfheal_update_known_hosts: False diff --git a/roles/base/ansible/meta/main.yml b/roles/base/ansible/meta/main.yml new file mode 100644 index 0000000..62f9dfd --- /dev/null +++ b/roles/base/ansible/meta/main.yml @@ -0,0 +1,13 @@ +##################################### +### someone's ansible provisioner ### +##################################### +# Part of: https://git.somenet.org/root/pub/somesible.git +# 2017-2024 by someone +# +--- +dependencies: +# create ansible-remote-management-user and env. + - { role: base/ansible/setup, tags: ['ansible_setup'], when: 'ansible_setup | bool' } + +# prepare automatic self-healing. + - { role: base/ansible/autoselfheal, tags: ['ansible_setup', 'ansible_setup_autoselfheal'], when: 'ansible_setup | bool and ansible_setup_autoselfheal | bool' } -- 2.43.0