mirror of
https://github.com/rocky-linux/infrastructure
synced 2024-11-22 13:11:29 +00:00
Real changed_when for galaxy installs
Instead of always claiming nothing changed, set changed when something was installed.
This commit is contained in:
parent
662060e18a
commit
ea56897fe3
@ -31,7 +31,8 @@
|
|||||||
{{ ( force_purge | bool ) | ternary('--force','') }}
|
{{ ( force_purge | bool ) | ternary('--force','') }}
|
||||||
--role-file {{ installation_prefix }}roles/requirements.yml
|
--role-file {{ installation_prefix }}roles/requirements.yml
|
||||||
--roles-path {{ installation_prefix }}{{ roles_installation_dir }}
|
--roles-path {{ installation_prefix }}{{ roles_installation_dir }}
|
||||||
changed_when: false
|
register: galaxy_install_role
|
||||||
|
changed_when: '"Installing " in galaxy_install_role.stdout'
|
||||||
|
|
||||||
- name: Install needed collections
|
- name: Install needed collections
|
||||||
command: >
|
command: >
|
||||||
@ -39,7 +40,8 @@
|
|||||||
{{ ( force_purge | bool ) | ternary('--force-with-deps','') }}
|
{{ ( force_purge | bool ) | ternary('--force-with-deps','') }}
|
||||||
-r {{ installation_prefix }}roles/requirements.yml
|
-r {{ installation_prefix }}roles/requirements.yml
|
||||||
-p {{ installation_prefix }}{{ collection_installation_dir }}
|
-p {{ installation_prefix }}{{ collection_installation_dir }}
|
||||||
changed_when: false
|
register: galaxy_install_collection
|
||||||
|
changed_when: '"Installing " in galaxy_install_collection.stdout'
|
||||||
|
|
||||||
- name: cleanup old ssh known_hosts - remove
|
- name: cleanup old ssh known_hosts - remove
|
||||||
file:
|
file:
|
||||||
|
Loading…
Reference in New Issue
Block a user