diff options
-rw-r--r-- | README.md | 1 | ||||
-rw-r--r-- | tasks/rundeck.yml | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -17,6 +17,7 @@ Role Variables | |||
17 | * `rundeck_api_token` the authentification token (mandatory). | 17 | * `rundeck_api_token` the authentification token (mandatory). |
18 | * `rundeck_api_version` api version supported by rundeck server. Default to 26. | 18 | * `rundeck_api_version` api version supported by rundeck server. Default to 26. |
19 | * `rundeck_remove_missing` Whether to delete jobs present in rundeck and not in file. Defaults to true. | 19 | * `rundeck_remove_missing` Whether to delete jobs present in rundeck and not in file. Defaults to true. |
20 | * `rundeck_jobs_group` the group of job to check for removal | ||
20 | 21 | ||
21 | Dependencies | 22 | Dependencies |
22 | ------------ | 23 | ------------ |
diff --git a/tasks/rundeck.yml b/tasks/rundeck.yml index 642abd6..0da33d0 100644 --- a/tasks/rundeck.yml +++ b/tasks/rundeck.yml | |||
@@ -21,7 +21,7 @@ | |||
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" | 24 | url: "{{rundeck_api_url }}/{{rundeck_api_version}}/project/{{ rundeck_project }}/jobs?groupPathExact={{ rundeck_jobs_group | default('""') }}" |
25 | method: GET | 25 | method: GET |
26 | headers: | 26 | headers: |
27 | Accept: application/json | 27 | Accept: application/json |