mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
843 B
YAML
48 lines
843 B
YAML
- name: Create a User
|
|
tower_user:
|
|
first_name: Joe
|
|
last_name: User
|
|
username: joe
|
|
password: "{{ 65535 | random | to_uuid }}"
|
|
email: joe@example.org
|
|
state: present
|
|
register: result
|
|
|
|
- assert:
|
|
that:
|
|
- "result is changed"
|
|
|
|
- name: Add Joe to the update role of the default Project
|
|
tower_role:
|
|
user: joe
|
|
role: update
|
|
project: Demo Project
|
|
state: "{{ item }}"
|
|
register: result
|
|
with_items:
|
|
- "present"
|
|
- "absent"
|
|
|
|
- assert:
|
|
that:
|
|
- "result is changed"
|
|
|
|
- name: Test tower_verify_ssl alias
|
|
tower_role:
|
|
user: joe
|
|
role: update
|
|
project: Demo Project
|
|
tower_verify_ssl: true
|
|
state: absent
|
|
|
|
- name: Delete a User
|
|
tower_user:
|
|
username: joe
|
|
email: joe@example.org
|
|
state: absent
|
|
register: result
|
|
|
|
- assert:
|
|
that:
|
|
- "result is changed"
|