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.
ansible/test/integration/targets/inventory_ini/test_ansible_become.yml

12 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'"