ansible/test/integration/targets/inventory_ini/test_ansible_become.yml
David Shrewsbury 94a81f7b44
Make sure ansible_become treated as a boolean (#70484) (#70526)
* Make sure ansible_become treated as a boolean

(cherry picked from commit 8aca464b8b)
2020-07-17 12:46:33 -07:00

11 lines
293 B
YAML

- hosts: testhost
gather_facts: no
tasks:
- name: Test proper bool evaluation of ansible_become (issue #70476)
shell: whoami
register: output
- name: Assert we are NOT the become user specified
assert:
that:
- "output.stdout != 'ansibletest1'"