|
|
|
@ -9,13 +9,13 @@
|
|
|
|
|
installation_prefix: ./
|
|
|
|
|
pre_tasks:
|
|
|
|
|
- name: Remove existing public roles
|
|
|
|
|
file:
|
|
|
|
|
ansible.builtin.file:
|
|
|
|
|
path: "{{ installation_prefix }}{{ roles_installation_dir }}"
|
|
|
|
|
state: absent
|
|
|
|
|
when: force_purge | bool
|
|
|
|
|
|
|
|
|
|
- name: Install all public roles and collections
|
|
|
|
|
command: >
|
|
|
|
|
ansible.builtin.command: >
|
|
|
|
|
ansible-galaxy role install
|
|
|
|
|
{{ ( force_purge | bool ) | ternary('--force','') }}
|
|
|
|
|
--role-file {{ installation_prefix }}roles/requirements.yml
|
|
|
|
@ -24,7 +24,7 @@
|
|
|
|
|
changed_when: '"Installing " in galaxy_install_role.stdout'
|
|
|
|
|
|
|
|
|
|
- name: Install needed collections
|
|
|
|
|
command: >
|
|
|
|
|
ansible.builtin.command: >
|
|
|
|
|
ansible-galaxy collection install
|
|
|
|
|
{{ ( force_purge | bool ) | ternary('--force-with-deps','') }}
|
|
|
|
|
-r {{ installation_prefix }}collections/requirements.yml
|
|
|
|
@ -33,13 +33,13 @@
|
|
|
|
|
changed_when: '"Installing " in galaxy_install_collection.stdout'
|
|
|
|
|
|
|
|
|
|
- name: cleanup old ssh known_hosts - remove
|
|
|
|
|
file:
|
|
|
|
|
ansible.builtin.file:
|
|
|
|
|
path: "./tmp/known_hosts"
|
|
|
|
|
state: absent
|
|
|
|
|
mode: "0644"
|
|
|
|
|
|
|
|
|
|
- name: cleanup old ssh known_hosts - blank
|
|
|
|
|
file:
|
|
|
|
|
ansible.builtin.file:
|
|
|
|
|
path: "./tmp/known_hosts"
|
|
|
|
|
state: touch
|
|
|
|
|
mode: "0644"
|
|
|
|
|