2018-08-10 09:06:57 +00:00
|
|
|
# issue #338: ensure /etc/environment is reloaded if it changes.
|
|
|
|
# Actually this test uses ~/.pam_environment, which is using the same logic,
|
|
|
|
# but less likely to brick a development workstation
|
|
|
|
|
|
|
|
- name: integration/runner/etc_environment.yml
|
2018-11-06 04:43:56 +00:00
|
|
|
hosts: test-targets[0]
|
2018-08-10 09:06:57 +00:00
|
|
|
any_errors_fatal: true
|
|
|
|
gather_facts: true
|
|
|
|
tasks:
|
2018-11-06 04:43:56 +00:00
|
|
|
- include_tasks: _etc_environment_user.yml
|
|
|
|
when: ansible_system == "Linux" and is_mitogen
|
2018-08-10 09:06:57 +00:00
|
|
|
|
2018-11-06 04:43:56 +00:00
|
|
|
- include_tasks: _etc_environment_global.yml
|
|
|
|
# Don't destroy laptops.
|
|
|
|
when: ansible_virtualization_type == "docker"
|