actually make use of option aliases

This commit is contained in:
Seth Foster
2021-05-18 10:43:53 -04:00
parent 54dd24b96b
commit 4add72b9d2
4 changed files with 78 additions and 74 deletions

View File

@@ -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: