ci: Avoid ansible_virtualization_type to check for docker targets

It's not consistant across Ansible versions, particular the oldest ones. This
may have contributed to older test images containing usernames from the host
OS that they were built on (e.g. dmw, alex).
pull/1254/head
Alex Willmer 1 week ago
parent 4ecafc564d
commit 5b6b076c4e

@ -13,11 +13,6 @@
vars: vars:
distro: "{{ansible_distribution}}" distro: "{{ansible_distribution}}"
pre_tasks:
- meta: end_play
when:
- ansible_virtualization_type != "docker"
roles: roles:
- role: package_manager - role: package_manager
- role: packages - role: packages

@ -181,6 +181,6 @@
{% endfor %} {% endfor %}
validate: '/usr/sbin/visudo -cf %s' validate: '/usr/sbin/visudo -cf %s'
when: when:
- ansible_virtualization_type != "docker" - ansible_connection == "local"
roles: roles:
- role: user_policies - role: user_policies

Loading…
Cancel
Save