batcave: switch to ansible-core + some collections instead of ansible 'classic'

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2022-03-30 12:13:54 -07:00
parent c1499b003d
commit 78ba658d3c
3 changed files with 36 additions and 13 deletions

View file

@ -0,0 +1,30 @@
---
collections:
- name: ansible.posix
type: git
source: https://github.com/ansible-collections/ansible.posix.git
version: 1.3.0
- name: community.general
type: git
source: https://github.com/ansible-collections/community.general.git
version: 4.6.1
- name: community.libvirt
type: git
source: https://github.com/ansible-collections/community.libvirt.git
version: 1.0.2
- name: community.mysql
type: git
source: https://github.com/ansible-collections/community.mysql.git
version: 3.1.2
- name: community.postgresql
type: git
source: https://github.com/ansible-collections/community.postgresql.git
version: 2.1.2
- name: community.docker
type: git
source: https://github.com/ansible-collections/community.docker.git
version: 2.3.0
- name: community.rabbitmq
type: git
source: https://github.com/ansible-collections/community.rabbitmq.git
version: 1.1.0

View file

@ -5,7 +5,7 @@
- name: install needed packages
package: name={{ item }} state=present
with_items:
- ansible
- ansible-core
- git
tags:
- packages
@ -21,14 +21,7 @@
tags:
- ansible-server
# https://github.com/ansible/ansible-modules-core/pull/4070
#- name: Fix the nova_compute module
# patch: src=4070.patch
# dest=/usr/lib/python2.7/site-packages/ansible/modules/cloud/openstack/_nova_compute.py
#
#
# TODO:
# cgit?
# rbac-playbook?
# zodbot notifications?
#
- name: install required collections
command: ansible-galaxy install -r files/requirements.yml
tags:
- ansible-server

View file

@ -25,7 +25,7 @@
package: name={{ item }} state=present
with_items:
- srm # secure rm to delete sensitive files.
- ansible # This is our ansible master, needs ansible installed.
- ansible-core # This is our ansible master, needs ansible installed.
- ansible_utils # Needed for rbac-playbook
- yum-rhn-plugin # Needed for rhn sync
- createrepo_c # Needed for rhn sync