diff --git a/requirements-ci.yml b/requirements-ci.yml index fce7049..05a1c67 100644 --- a/requirements-ci.yml +++ b/requirements-ci.yml @@ -236,6 +236,9 @@ roles: - src: https://github.com/CentOS/ansible-role-tinyproxy name: tinyproxy version: master + - src: https://github.com/CentOS/ansible-role-ucarp + name: ucarp + version: master - src: https://github.com/CentOS/ansible-role-unbound name: unbound version: master diff --git a/requirements-dev.yml b/requirements-dev.yml index fd3922d..d4f786c 100644 --- a/requirements-dev.yml +++ b/requirements-dev.yml @@ -236,6 +236,9 @@ roles: - src: https://github.com/CentOS/ansible-role-tinyproxy name: tinyproxy version: staging + - src: https://github.com/CentOS/ansible-role-ucarp + name: ucarp + version: staging - src: https://github.com/CentOS/ansible-role-unbound name: unbound version: staging diff --git a/requirements-production.yml b/requirements-production.yml index fce7049..05a1c67 100644 --- a/requirements-production.yml +++ b/requirements-production.yml @@ -236,6 +236,9 @@ roles: - src: https://github.com/CentOS/ansible-role-tinyproxy name: tinyproxy version: master + - src: https://github.com/CentOS/ansible-role-ucarp + name: ucarp + version: master - src: https://github.com/CentOS/ansible-role-unbound name: unbound version: master diff --git a/requirements-staging.yml b/requirements-staging.yml index fd3922d..d4f786c 100644 --- a/requirements-staging.yml +++ b/requirements-staging.yml @@ -236,6 +236,9 @@ roles: - src: https://github.com/CentOS/ansible-role-tinyproxy name: tinyproxy version: staging + - src: https://github.com/CentOS/ansible-role-ucarp + name: ucarp + version: staging - src: https://github.com/CentOS/ansible-role-unbound name: unbound version: staging diff --git a/role-all.yml b/role-all.yml index 4775a24..5a2b56b 100644 --- a/role-all.yml +++ b/role-all.yml @@ -77,6 +77,7 @@ - import_playbook: role-sync2git.yml - import_playbook: role-sync2s3.yml - import_playbook: role-tinyproxy.yml +- import_playbook: role-ucarp.yml - import_playbook: role-unbound.yml - import_playbook: role-vbox-host.yml - import_playbook: role-vsftpd.yml diff --git a/role-ucarp.yml b/role-ucarp.yml new file mode 100644 index 0000000..9d5d1c4 --- /dev/null +++ b/role-ucarp.yml @@ -0,0 +1,24 @@ +--- +- hosts: hostgroup-role-ucarp + 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: + - ucarp + + post_tasks: + - name: Touching ansible-run (monitored by Zabbix) + file: + path: /var/log/ansible.run + state: touch +