From 20acc5b9a0634ab353fec6d897e178177c9eed2e Mon Sep 17 00:00:00 2001 From: Neil Hanlon Date: Sat, 22 Jan 2022 18:44:47 -0500 Subject: [PATCH] Update playbooks to generalize --- ansible/playbooks/init-nodes.yml | 3 ++- ansible/playbooks/role-infra-host.yml | 1 + ansible/playbooks/setup-aio.yml | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 ansible/playbooks/setup-aio.yml diff --git a/ansible/playbooks/init-nodes.yml b/ansible/playbooks/init-nodes.yml index a495fa2..06ff296 100644 --- a/ansible/playbooks/init-nodes.yml +++ b/ansible/playbooks/init-nodes.yml @@ -86,6 +86,7 @@ mode: 0744 owner: 'root' group: 'root' + when: not aio_install tags: - interfaces @@ -143,7 +144,7 @@ - name: Install packages on non-infra hosts - when: tag.find("infra") == -1 + when: tag.find("infra") == -1 or aio_install ansible.builtin.dnf: name: - iputils diff --git a/ansible/playbooks/role-infra-host.yml b/ansible/playbooks/role-infra-host.yml index cce1dbc..bad4e5b 100644 --- a/ansible/playbooks/role-infra-host.yml +++ b/ansible/playbooks/role-infra-host.yml @@ -99,6 +99,7 @@ mode: '0644' with_items: - user_lxc + - user_galera - name: Disable SSH Agent Forwarding lineinfile: diff --git a/ansible/playbooks/setup-aio.yml b/ansible/playbooks/setup-aio.yml new file mode 100644 index 0000000..ed97d53 --- /dev/null +++ b/ansible/playbooks/setup-aio.yml @@ -0,0 +1 @@ +---