# 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
  hosts: test-targets[0]
  any_errors_fatal: true
  gather_facts: true
  tasks:
    - include: _etc_environment_user.yml
      when: ansible_system == "Linux" and is_mitogen

    - include_tasks: _etc_environment_global.yml
      # Don't destroy laptops.
      when: ansible_virtualization_type == "docker"
