aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGaƫtan <36162164+gaetanfl@users.noreply.github.com>2018-11-02 14:18:54 +0100
committerGitHub <noreply@github.com>2018-11-02 14:18:54 +0100
commitfb709e4184878f595d4bc1f2463d54b826ef4696 (patch)
tree1f59fa5475728b7fb766f9fc60b14a4a4f1d8104
parent56d88d5730d457ac24f9aa373b71588b433f4196 (diff)
parentc3e54982f17b9fdbc732617898227c3b9dd1727b (diff)
downloadansible-rundeck-jobs-fb709e4184878f595d4bc1f2463d54b826ef4696.tar.gz
ansible-rundeck-jobs-fb709e4184878f595d4bc1f2463d54b826ef4696.tar.zst
ansible-rundeck-jobs-fb709e4184878f595d4bc1f2463d54b826ef4696.zip
Merge pull request #3 from gaetanfl/add_group_cleanupv0.2
Add group filtering for jobs cleaning
-rw-r--r--README.md1
-rw-r--r--tasks/rundeck.yml2
2 files changed, 2 insertions, 1 deletions
diff --git a/README.md b/README.md
index 618efd9..71d4acc 100644
--- a/README.md
+++ b/README.md
@@ -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
21Dependencies 22Dependencies
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