Gestion token
This commit is contained in:
parent
121fbbc405
commit
beba2692e8
1 changed files with 187 additions and 177 deletions
|
@ -19,6 +19,8 @@
|
|||
controller_username: "{{ awx_controller_username }}"
|
||||
controller_password: "{{ awx_controller_password }}"
|
||||
|
||||
- name: Block avec token
|
||||
block:
|
||||
- name: Définition des organisations de base
|
||||
awx.awx.organization:
|
||||
controller_host: "{{ awx_controller_host }}"
|
||||
|
@ -213,3 +215,11 @@
|
|||
with_items:
|
||||
- setup-env.yml
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue