mirror of
https://github.com/rocky-linux/infrastructure
synced 2024-12-22 10:58: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','') }}
|
||||
--role-file {{ installation_prefix }}roles/requirements.yml
|
||||
--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
|
||||
command: >
|
||||
@ -39,7 +40,8 @@
|
||||
{{ ( force_purge | bool ) | ternary('--force-with-deps','') }}
|
||||
-r {{ installation_prefix }}roles/requirements.yml
|
||||
-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
|
||||
file:
|
||||
|
Loading…
Reference in New Issue
Block a user