Merge "install-ansible: move install_modules.sh to puppet-setup-ansible"

This commit is contained in:
Zuul 2020-09-08 20:42:50 +00:00 committed by Gerrit Code Review
commit de1394573a
4 changed files with 13 additions and 15 deletions

View File

@ -119,21 +119,6 @@
owner: root
group: root
# Yeah. This is install-ansible. But we need to do this and doing it when
# we install the ansible stuff seems like the right time workflow-wise.
- name: Ensure puppet directory
file:
state: directory
path: /etc/puppet
- name: Install puppet module management scripts
copy:
src: '{{ item }}'
dest: '/etc/puppet/{{ item }}'
loop:
- install_modules.sh
- modules.env
- name: Copy yamlgroup inventory in place
copy:
src: inventory_plugins/yamlgroup.py

View File

@ -4,6 +4,19 @@
ansible_roles:
- puppet
- name: Ensure puppet directory
file:
state: directory
path: /etc/puppet
- name: Install puppet module management scripts
copy:
src: '{{ item }}'
dest: '/etc/puppet/{{ item }}'
loop:
- install_modules.sh
- modules.env
- name: Run puppet module install on bridge
command:
cmd: bash install_modules.sh