batcave02: no ansible-collection-community-docker right now, so exclude it on rhel9

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2023-03-28 14:32:44 -07:00
parent a195bce0b3
commit a9bb7f2254

View file

@ -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