- name: detect requirements.yml
stat: path={{project_path|quote}}/roles/requirements.yml
register: doesRequirementsExist
+ - name: show me stat
+ debug:
+ msg: "{{ doesRequirementsExist }}"
+
+ - name: show me scm_full_checkout
+ debug:
+ msg: "{{ scm_full_checkout }}"
- name: fetch galaxy roles from requirements.yml
command: ansible-galaxy install -r requirements.yml -p {{project_path|quote}}/roles/ --force
args:
chdir: "{{project_path|quote}}/roles"
when: doesRequirementsExist.stat.exists and scm_full_checkout|bool
Which results in the following displayed in the job output (I removed most of the file stats for brevity):
TASK [detect requirements.yml] *************************************************
ok: [localhost]
TASK [show me stat] ************************************************************
ok: [localhost] => {
"msg": {
"changed": false,
"failed": false,
"stat": {
"atime": 1505851374.0,
"executable": false,
"exists": true,
"gid": 0,
"gr_name": "root",
"mode": "0644",
"readable": true,
"writeable": true
}
}
}
TASK [show me scm_full_checkout] ***********************************************
ok: [localhost] => {
"msg": false
}
TASK [fetch galaxy roles from requirements.yml] ********************************
skipping: [localhost]
I've tried every option I can find for defining the project and in every case, scm_full_checkout is *always* false!
Any ideas how I can get this to work?
thanks,
-MikeB
--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscribe@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/2711743d-0a32-48ba-9d10-35a8c8e1284d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.