Merge pull request #1554 from wenottingham/(don't)-use-the-force-rey

Only force role updates when we actually check out a new version.
This commit is contained in:
Bill Nottingham 2018-04-25 15:11:26 -04:00 committed by GitHub
commit 523613c64c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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