We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8e8cf9 commit 6bf58c3Copy full SHA for 6bf58c3
tests/image_prep/_user_accounts.yml
@@ -168,6 +168,8 @@
168
with_items:
169
- mitogen__pw_required
170
- mitogen__require_tty_pw_required
171
+ when:
172
+ - ansible_virtualization_type != "docker"
173
174
- name: Allow passwordless sudo for require_tty/readonly_homedir
175
lineinfile:
@@ -177,10 +179,14 @@
177
179
178
180
- mitogen__require_tty
181
- mitogen__readonly_homedir
182
183
184
185
- name: Allow passwordless for many accounts
186
187
path: /etc/sudoers
188
line: "{{lookup('pipe', 'whoami')}} ALL = (mitogen__{{item}}:ALL) NOPASSWD:ALL"
189
validate: '/usr/sbin/visudo -cf %s'
190
with_items: "{{normal_users}}"
191
192
0 commit comments