Ajout de la planification de remise en conformité
This commit is contained in:
parent
fc686f458b
commit
c377187d86
1 changed files with 14 additions and 0 deletions
|
@ -206,6 +206,7 @@
|
|||
state: "{{ _state }}"
|
||||
organization: "{{ awx_organization }}"
|
||||
job_type: run
|
||||
ask_job_type_on_launch: true
|
||||
playbook: "{{ item }}"
|
||||
become_enabled: true
|
||||
credentials:
|
||||
|
@ -214,3 +215,16 @@
|
|||
- "{{ awx_aap_ressources_credential_name }}"
|
||||
with_items:
|
||||
- setup-env.yml
|
||||
|
||||
- name: Planification remise en conformité régulière
|
||||
awx.awx.schedule:
|
||||
controller_host: "{{ awx_controller_host }}"
|
||||
controller_username: "{{ awx_controller_username }}"
|
||||
controller_password: "{{ awx_controller_password }}"
|
||||
name: "{{ awx_project_name }}_{{ environnement }}_{{ item }}-schedule-daily"
|
||||
unified_job_template: "{{ awx_project_name }}_{{ environnement }}_{{ item }}"
|
||||
rrule: "{{ query('awx.awx.schedule_rrule', 'day', start_date='2024-01-01 12:30:00', timezone='Europe/Paris') }}"
|
||||
enabled: true
|
||||
with_items:
|
||||
- setup-env.yml
|
||||
when: _state == "present"
|
||||
|
|
Loading…
Reference in a new issue