diff --git a/configure-awx.yml b/configure-awx.yml index cda7921..af57912 100644 --- a/configure-awx.yml +++ b/configure-awx.yml @@ -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"