matrix-docker-ansible-deploy/roles/matrix-awx/tasks/delete_session_token.yml

11 lines
360 B
YAML
Raw Normal View History

2021-10-10 05:23:49 +00:00
---
- name: Delete the AWX session token for executing modules
awx.awx.tower_token:
description: 'AWX Session Token'
scope: "write"
state: absent
existing_token_id: "{{ awx_session_token.ansible_facts.tower_token.id }}"
tower_host: "https://{{ awx_host }}"
tower_oauthtoken: "{{ awx_session_token.ansible_facts.tower_token.token }}"