tests: Don't add local user to Docker containers

pull/816/head
Alex Willmer 4 years ago
parent a8e8cf91cb
commit 6bf58c3cfb

@ -168,6 +168,8 @@
with_items: with_items:
- mitogen__pw_required - mitogen__pw_required
- mitogen__require_tty_pw_required - mitogen__require_tty_pw_required
when:
- ansible_virtualization_type != "docker"
- name: Allow passwordless sudo for require_tty/readonly_homedir - name: Allow passwordless sudo for require_tty/readonly_homedir
lineinfile: lineinfile:
@ -177,6 +179,8 @@
with_items: with_items:
- mitogen__require_tty - mitogen__require_tty
- mitogen__readonly_homedir - mitogen__readonly_homedir
when:
- ansible_virtualization_type != "docker"
- name: Allow passwordless for many accounts - name: Allow passwordless for many accounts
lineinfile: lineinfile:
@ -184,3 +188,5 @@
line: "{{lookup('pipe', 'whoami')}} ALL = (mitogen__{{item}}:ALL) NOPASSWD:ALL" line: "{{lookup('pipe', 'whoami')}} ALL = (mitogen__{{item}}:ALL) NOPASSWD:ALL"
validate: '/usr/sbin/visudo -cf %s' validate: '/usr/sbin/visudo -cf %s'
with_items: "{{normal_users}}" with_items: "{{normal_users}}"
when:
- ansible_virtualization_type != "docker"

Loading…
Cancel
Save