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

View file

@ -25,7 +25,7 @@
package: name={{ item }} state=present package: name={{ item }} state=present
with_items: with_items:
- srm # secure rm to delete sensitive files. - 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 - ansible_utils # Needed for rbac-playbook
- yum-rhn-plugin # Needed for rhn sync - yum-rhn-plugin # Needed for rhn sync
- createrepo_c # Needed for rhn sync - createrepo_c # Needed for rhn sync