issue #164: make become_flags work without FOO=2 env var.

pull/193/head
David Wilson 7 years ago
parent e4b49997d6
commit db894478f8

@ -1,5 +1,3 @@
# This must be run with FOO=2 set in the environment.
#
# Test sudo_flags respects -E.
#
@ -7,6 +5,10 @@
- hosts: all
any_errors_fatal: true
tasks:
- name: integration/playbook_semantics/become_flags.yml
assert:
that: true
- name: "without -E"
become: true
shell: "echo $FOO"
@ -21,9 +23,10 @@
tasks:
- name: "with -E"
become: true
shell: "set"
shell: "echo $FOO"
register: out2
environment:
FOO: 2
- debug: msg={{out2}}
- assert:
that: "out2.stdout == '2'"

Loading…
Cancel
Save