diff --git a/requirements-dev.yml b/requirements-dev.yml index 50e1034..feabb28 100644 --- a/requirements-dev.yml +++ b/requirements-dev.yml @@ -23,6 +23,9 @@ - src: https://github.com/CentOS/ansible-role-distgit-lookaside name: distgit-lookaside version: staging +- src: https://github.com/CentOS/ansible-role-fedmsg + name: fedmsg + version: staging - src: https://github.com/CentOS/ansible-role-fedora-messaging-client name: fedora-messaging-client version: staging diff --git a/requirements-production.yml b/requirements-production.yml index bd8a5c6..be4e6bb 100644 --- a/requirements-production.yml +++ b/requirements-production.yml @@ -15,6 +15,8 @@ name: certbot - src: https://github.com/CentOS/ansible-role-distgit-lookaside name: distgit-lookaside +- src: https://github.com/CentOS/ansible-role-fedmsg + name: fedmsg - src: https://github.com/CentOS/ansible-role-fedora-messaging-client name: fedora-messaging-client - src: https://github.com/CentOS/ansible-role-geoip2 diff --git a/requirements-staging.yml b/requirements-staging.yml index 50e1034..feabb28 100644 --- a/requirements-staging.yml +++ b/requirements-staging.yml @@ -23,6 +23,9 @@ - src: https://github.com/CentOS/ansible-role-distgit-lookaside name: distgit-lookaside version: staging +- src: https://github.com/CentOS/ansible-role-fedmsg + name: fedmsg + version: staging - src: https://github.com/CentOS/ansible-role-fedora-messaging-client name: fedora-messaging-client version: staging diff --git a/role-all.yml b/role-all.yml index 49682db..bfbb78f 100644 --- a/role-all.yml +++ b/role-all.yml @@ -6,6 +6,7 @@ - import_playbook: role-centos-backup.yml - import_playbook: role-certbot.yml - import_playbook: role-distgit-lookaside.yml +- import_playbook: role-fedmsg.yml - import_playbook: role-fedora-messaging-client.yml - import_playbook: role-geoip2.yml - import_playbook: role-gitea.yml diff --git a/role-fedmsg.yml b/role-fedmsg.yml new file mode 100644 index 0000000..81b6828 --- /dev/null +++ b/role-fedmsg.yml @@ -0,0 +1,24 @@ +--- +- hosts: hostgroup-role-fedmsg + 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: + - fedmsg + + post_tasks: + - name: Touching ansible-run (monitored by Zabbix) + file: + path: /var/log/ansible.run + state: touch +