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.
49 lines
742 B
YAML
49 lines
742 B
YAML
# /etc/environment
|
|
|
|
- file:
|
|
path: /etc/environment
|
|
state: absent
|
|
become: true
|
|
|
|
- shell: echo $MAGIC_ETC_ENV
|
|
register: echo
|
|
|
|
- assert:
|
|
that: echo.stdout == ""
|
|
fail_msg: echo={{echo}}
|
|
|
|
- copy:
|
|
dest: /etc/environment
|
|
content: |
|
|
MAGIC_ETC_ENV=555
|
|
become: true
|
|
|
|
- meta: reset_connection
|
|
|
|
#- mitogen_shutdown_all:
|
|
#when: not is_mitogen
|
|
|
|
- shell: echo $MAGIC_ETC_ENV
|
|
register: echo
|
|
|
|
- assert:
|
|
that: echo.stdout == "555"
|
|
fail_msg: echo={{echo}}
|
|
|
|
- file:
|
|
path: /etc/environment
|
|
state: absent
|
|
become: true
|
|
|
|
- meta: reset_connection
|
|
|
|
- mitogen_shutdown_all:
|
|
when: not is_mitogen
|
|
|
|
- shell: echo $MAGIC_ETC_ENV
|
|
register: echo
|
|
|
|
- assert:
|
|
that: echo.stdout == ""
|
|
fail_msg: echo={{echo}}
|