diff options
-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 | ||