]> git.immae.eu Git - github/fretlink/ansible-rundeck-jobs.git/commitdiff
Add group filtering for jobs cleaning 3/head
authorGaëtan Duchaussois <gaetan.duchaussois@fretlink.com>
Fri, 2 Nov 2018 10:35:30 +0000 (11:35 +0100)
committerGaëtan Duchaussois <gaetan.duchaussois@fretlink.com>
Fri, 2 Nov 2018 10:35:30 +0000 (11:35 +0100)
README.md
tasks/rundeck.yml

index 618efd9437d494e2215754688595dfe69cdeefad..71d4acc5951de3017d3c04b68414a12ca2735e8a 100644 (file)
--- a/README.md
+++ b/README.md
@@ -17,6 +17,7 @@ Role Variables
 * `rundeck_api_token` the authentification token (mandatory).
 * `rundeck_api_version` api version supported by rundeck server. Default to 26.
 * `rundeck_remove_missing` Whether to delete jobs present in rundeck and not in file. Defaults to true.
+* `rundeck_jobs_group` the group of job to check for removal
 
 Dependencies
 ------------
index 642abd6d02e0e1c6c7474c039d952f8df6af18af..0da33d0cdc372959a6bd6a8e8e1c5449a73b0f29 100644 (file)
@@ -21,7 +21,7 @@
 
 - name: Get all jobs
   uri:
-    url: "{{rundeck_api_url }}/{{rundeck_api_version}}/project/{{ rundeck_project }}/jobs"
+    url: "{{rundeck_api_url }}/{{rundeck_api_version}}/project/{{ rundeck_project }}/jobs?groupPathExact={{ rundeck_jobs_group | default('""') }}"
     method: GET
     headers:
       Accept: application/json