19 lines
431 B
YAML
19 lines
431 B
YAML
|
---
|
||
|
|
||
|
# We need Jenkins to reboot if new plugins were installed.
|
||
|
- meta: flush_handlers
|
||
|
|
||
|
- name: Get the list of jobs that already exist
|
||
|
shell: "{{ jenkins_cli_command }} list-jobs"
|
||
|
changed_when: False
|
||
|
check_mode: no
|
||
|
register: current_jobs_list
|
||
|
|
||
|
# Loop on every job we maintain
|
||
|
- name: Manage each job
|
||
|
include_tasks:
|
||
|
file: include_jobinstall.yml
|
||
|
loop: "{{ lookup('dict', jobs ) }}"
|
||
|
loop_control:
|
||
|
loop_var: job
|