Gestion token

This commit is contained in:
Navas 2024-08-11 20:47:04 +02:00
parent 121fbbc405
commit beba2692e8

View file

@ -19,6 +19,8 @@
controller_username: "{{ awx_controller_username }}" controller_username: "{{ awx_controller_username }}"
controller_password: "{{ awx_controller_password }}" controller_password: "{{ awx_controller_password }}"
- name: Block avec token
block:
- name: Définition des organisations de base - name: Définition des organisations de base
awx.awx.organization: awx.awx.organization:
controller_host: "{{ awx_controller_host }}" controller_host: "{{ awx_controller_host }}"
@ -213,3 +215,11 @@
with_items: with_items:
- setup-env.yml - setup-env.yml
when: _state == "present" when: _state == "present"
always:
- name: Destruction du token
awx.awx.token:
controller_host: "{{ awx_controller_host }}"
controller_oauthtoken: "{{ controller_token }}"
existing_token: "{{ controller_token }}"
state: absent