mirror of
https://github.com/ansible/awx.git
synced 2026-05-17 06:17:36 -02:30
actually make use of option aliases
This commit is contained in:
@@ -63,21 +63,21 @@
|
||||
|
||||
- name: Validate our token works by token
|
||||
job_list:
|
||||
oauthtoken: "{{ token.token }}"
|
||||
oauthtoken: "{{ tower_token.token }}"
|
||||
register: job_list
|
||||
|
||||
- name: Validate out token works by object
|
||||
- name: Validate our token works by object
|
||||
job_list:
|
||||
oauthtoken: "{{ token }}"
|
||||
oauthtoken: "{{ tower_token }}"
|
||||
register: job_list
|
||||
|
||||
always:
|
||||
- name: Delete our Token with our own token
|
||||
token:
|
||||
existing_token: "{{ token }}"
|
||||
oauthtoken: "{{ token }}"
|
||||
existing_token: "{{ tower_token }}"
|
||||
oauthtoken: "{{ tower_token }}"
|
||||
state: absent
|
||||
when: token is defined
|
||||
when: tower_token is defined
|
||||
register: results
|
||||
|
||||
- assert:
|
||||
@@ -99,10 +99,10 @@
|
||||
always:
|
||||
- name: Delete the second Token with our own token
|
||||
token:
|
||||
existing_token_id: "{{ token['id'] }}"
|
||||
oauthtoken: "{{ token }}"
|
||||
existing_token_id: "{{ tower_token['id'] }}"
|
||||
oauthtoken: "{{ tower_token }}"
|
||||
state: absent
|
||||
when: token is defined
|
||||
when: tower_token is defined
|
||||
register: results
|
||||
|
||||
- assert:
|
||||
|
||||
Reference in New Issue
Block a user