diff --git a/roles/ansible-server/files/requirements.yml b/roles/ansible-server/files/requirements.yml index 25a79a88c5..cc4fdcee64 100644 --- a/roles/ansible-server/files/requirements.yml +++ b/roles/ansible-server/files/requirements.yml @@ -1,30 +1,6 @@ --- 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 + version: 2.1.5 diff --git a/roles/ansible-server/tasks/main.yml b/roles/ansible-server/tasks/main.yml index d107e2c595..0e5a064753 100644 --- a/roles/ansible-server/tasks/main.yml +++ b/roles/ansible-server/tasks/main.yml @@ -3,10 +3,16 @@ # Setup ansible-server instance # - name: install needed packages - package: name={{ item }} state=present - with_items: - - ansible-core - - git + package: + name: + - ansible-core + - git + - ansible-collection-community-posix + - ansible-collection-community-general + - ansible-collection-community-mysql + - ansible-collection-community-docker + - ansible-collection-community-libvirt + - ansible-collection-community-rabbitmq tags: - packages - ansible-server