From a52b0d3d7572c6568420a977963376f8bf134094 Mon Sep 17 00:00:00 2001 From: Fabian Arrotin Date: Wed, 1 Dec 2021 09:24:32 +0100 Subject: [PATCH] Automatic regen with all existing roles Signed-off-by: Fabian Arrotin --- requirements-dev.yml | 6 ++++++ requirements-production.yml | 4 ++++ requirements-staging.yml | 6 ++++++ role-all.yml | 2 ++ role-cachethq.yml | 24 ++++++++++++++++++++++++ role-podman-host.yml | 24 ++++++++++++++++++++++++ 6 files changed, 66 insertions(+) create mode 100644 role-cachethq.yml create mode 100644 role-podman-host.yml diff --git a/requirements-dev.yml b/requirements-dev.yml index c9f9675..1b84c87 100644 --- a/requirements-dev.yml +++ b/requirements-dev.yml @@ -11,6 +11,9 @@ - src: https://github.com/CentOS/ansible-role-boot-server name: boot-server version: staging +- src: https://github.com/CentOS/ansible-role-cachethq + name: cachethq + version: staging - src: https://github.com/CentOS/ansible-role-centbot name: centbot version: staging @@ -167,6 +170,9 @@ - src: https://github.com/CentOS/ansible-role-planet name: planet version: staging +- src: https://github.com/CentOS/ansible-role-podman-host + name: podman-host + version: staging - src: https://github.com/CentOS/ansible-role-postfix name: postfix version: staging diff --git a/requirements-production.yml b/requirements-production.yml index a4deaf6..0c21a6b 100644 --- a/requirements-production.yml +++ b/requirements-production.yml @@ -7,6 +7,8 @@ name: bind - src: https://github.com/CentOS/ansible-role-boot-server name: boot-server +- src: https://github.com/CentOS/ansible-role-cachethq + name: cachethq - src: https://github.com/CentOS/ansible-role-centbot name: centbot - src: https://github.com/CentOS/ansible-role-centos-backup @@ -111,6 +113,8 @@ name: phpbb - src: https://github.com/CentOS/ansible-role-planet name: planet +- src: https://github.com/CentOS/ansible-role-podman-host + name: podman-host - src: https://github.com/CentOS/ansible-role-postfix name: postfix - src: https://github.com/CentOS/ansible-role-postgresql diff --git a/requirements-staging.yml b/requirements-staging.yml index c9f9675..1b84c87 100644 --- a/requirements-staging.yml +++ b/requirements-staging.yml @@ -11,6 +11,9 @@ - src: https://github.com/CentOS/ansible-role-boot-server name: boot-server version: staging +- src: https://github.com/CentOS/ansible-role-cachethq + name: cachethq + version: staging - src: https://github.com/CentOS/ansible-role-centbot name: centbot version: staging @@ -167,6 +170,9 @@ - src: https://github.com/CentOS/ansible-role-planet name: planet version: staging +- src: https://github.com/CentOS/ansible-role-podman-host + name: podman-host + version: staging - src: https://github.com/CentOS/ansible-role-postfix name: postfix version: staging diff --git a/role-all.yml b/role-all.yml index b837134..32fcf45 100644 --- a/role-all.yml +++ b/role-all.yml @@ -2,6 +2,7 @@ - import_playbook: role-ansible-host.yml - import_playbook: role-bind.yml - import_playbook: role-boot-server.yml +- import_playbook: role-cachethq.yml - import_playbook: role-centbot.yml - import_playbook: role-centos-backup.yml - import_playbook: role-certbot.yml @@ -54,6 +55,7 @@ - import_playbook: role-pdns-pipe.yml - import_playbook: role-phpbb.yml - import_playbook: role-planet.yml +- import_playbook: role-podman-host.yml - import_playbook: role-postfix.yml - import_playbook: role-postgresql.yml - import_playbook: role-reimzul-bstore.yml diff --git a/role-cachethq.yml b/role-cachethq.yml new file mode 100644 index 0000000..f4c6d88 --- /dev/null +++ b/role-cachethq.yml @@ -0,0 +1,24 @@ +--- +- hosts: hostgroup-role-cachethq + become: True + pre_tasks: + - name: Checking if no-ansible file is there + stat: + path: /etc/no-ansible + register: no_ansible + + - name: Verifying if we can run ansible or not + assert: + that: + - "not no_ansible.stat.exists" + msg: "/etc/no-ansible file exists so skipping ansible run on this node" + + roles: + - cachethq + + post_tasks: + - name: Touching ansible-run (monitored by Zabbix) + file: + path: /var/log/ansible.run + state: touch + diff --git a/role-podman-host.yml b/role-podman-host.yml new file mode 100644 index 0000000..af7dffa --- /dev/null +++ b/role-podman-host.yml @@ -0,0 +1,24 @@ +--- +- hosts: hostgroup-role-podman-host + become: True + pre_tasks: + - name: Checking if no-ansible file is there + stat: + path: /etc/no-ansible + register: no_ansible + + - name: Verifying if we can run ansible or not + assert: + that: + - "not no_ansible.stat.exists" + msg: "/etc/no-ansible file exists so skipping ansible run on this node" + + roles: + - podman-host + + post_tasks: + - name: Touching ansible-run (monitored by Zabbix) + file: + path: /var/log/ansible.run + state: touch +