mirror of
https://github.com/ansible/awx.git
synced 2026-01-17 20:51:21 -03:30
Only pass --force if we have an scm_result (i.e., we ran an actual checkout/revision change.)
This commit is contained in:
parent
2d9c4cff32
commit
b3ca7acb41
@ -139,7 +139,7 @@
|
||||
register: doesRequirementsExist
|
||||
|
||||
- name: fetch galaxy roles from requirements.yml
|
||||
command: ansible-galaxy install -r requirements.yml -p {{project_path|quote}}/roles/ --force
|
||||
command: ansible-galaxy install -r requirements.yml -p {{project_path|quote}}/roles/ {{ scm_result is defined|ternary('--force',omit) }}
|
||||
args:
|
||||
chdir: "{{project_path|quote}}/roles"
|
||||
when: doesRequirementsExist.stat.exists
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user