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.
17 lines
512 B
YAML
17 lines
512 B
YAML
- name: integration/become/templated_by_play_vars.yml
|
|
hosts: tt_become_bare
|
|
gather_facts: false
|
|
vars:
|
|
ansible_become: true
|
|
ansible_become_user: "{{ 'root' | trim }}"
|
|
tasks:
|
|
- name: Templated become by play vars
|
|
command:
|
|
cmd: whoami
|
|
changed_when: false
|
|
check_mode: false
|
|
register: become_templated_by_play_vars_whoami
|
|
failed_when:
|
|
- become_templated_by_play_vars_whoami is failed
|
|
or become_templated_by_play_vars_whoami.stdout != 'root'
|