diff options
author | Paul Bonaud <paul.bonaud@fretlink.com> | 2018-11-12 17:06:05 +0100 |
---|---|---|
committer | Paul Bonaud <paul.bonaud@fretlink.com> | 2018-11-12 17:06:05 +0100 |
commit | 0435d3bffd503948f371228ad03370b717274e41 (patch) | |
tree | 36550b923e63579291410c46f549d8d3766f1012 | |
parent | fb709e4184878f595d4bc1f2463d54b826ef4696 (diff) | |
download | ansible-rundeck-jobs-0435d3bffd503948f371228ad03370b717274e41.tar.gz ansible-rundeck-jobs-0435d3bffd503948f371228ad03370b717274e41.tar.zst ansible-rundeck-jobs-0435d3bffd503948f371228ad03370b717274e41.zip |
fix: too many double quotes got Ansible unhappy 🥴
Extracting the string literal `""` into an Ansible variable seems to
work fine.
-rw-r--r-- | tasks/rundeck.yml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tasks/rundeck.yml b/tasks/rundeck.yml index 0da33d0..7852999 100644 --- a/tasks/rundeck.yml +++ b/tasks/rundeck.yml | |||
@@ -21,11 +21,13 @@ | |||
21 | 21 | ||
22 | - name: Get all jobs | 22 | - name: Get all jobs |
23 | uri: | 23 | uri: |
24 | url: "{{rundeck_api_url }}/{{rundeck_api_version}}/project/{{ rundeck_project }}/jobs?groupPathExact={{ rundeck_jobs_group | default('""') }}" | 24 | url: "{{rundeck_api_url }}/{{rundeck_api_version}}/project/{{ rundeck_project }}/jobs?groupPathExact={{ rundeck_jobs_group | default(rundeck_empty_group_path) }}" |
25 | method: GET | 25 | method: GET |
26 | headers: | 26 | headers: |
27 | Accept: application/json | 27 | Accept: application/json |
28 | X-Rundeck-Auth-Token: "{{ rundeck_api_token }}" | 28 | X-Rundeck-Auth-Token: "{{ rundeck_api_token }}" |
29 | vars: | ||
30 | rundeck_empty_group_path: '""' | ||
29 | register: rundeck_existing_jobs | 31 | register: rundeck_existing_jobs |
30 | when: rundeck_remove_missing | 32 | when: rundeck_remove_missing |
31 | 33 | ||