From a9bb7f2254d0214d92c96393797f770e51d6cbbc Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Mar 28 2023 21:32:44 +0000 Subject: batcave02: no ansible-collection-community-docker right now, so exclude it on rhel9 Signed-off-by: Kevin Fenzi --- diff --git a/roles/ansible-server/tasks/main.yml b/roles/ansible-server/tasks/main.yml index 5437bfb..00cea27 100644 --- a/roles/ansible-server/tasks/main.yml +++ b/roles/ansible-server/tasks/main.yml @@ -16,6 +16,22 @@ tags: - packages - ansible-server + when: inventory_hostname.startswith('batcave01') + +- name: install needed packages (rhel9) + package: + name: + - ansible-core + - git-core + - ansible-collection-ansible-posix + - ansible-collection-community-general + - ansible-collection-community-mysql + - ansible-collection-community-libvirt + - ansible-collection-community-rabbitmq + tags: + - packages + - ansible-server + when: inventory_hostname.startswith('batcave02') - name: generate default ansible config template: src=ansible.cfg.j2 dest=/etc/ansible/ansible.cfg owner=root group=root mode=0644