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 c589765 commit 06f2867Copy full SHA for 06f2867
create/playbook.yml
@@ -35,9 +35,16 @@
35
ansible.builtin.lineinfile:
36
dest: /etc/sudoers
37
state: present
38
+ # yamllint/ansible-lint complain about the following lines
39
+ # being quoted, but we need the quotes to ensure that the
40
+ # percent characters do not get interpreted as YAML
41
+ # special characters.
42
+ #
43
+ # yamllint disable rule:quoted-strings
44
regexp: '^%sudo-nopw ALL\='
45
line: '%sudo-nopw ALL=(ALL) NOPASSWD:ALL'
46
validate: 'visudo -cf %s'
47
+ # yamllint enable rule:quoted-strings
48
49
- name: Add user to sudo-nopw group
50
ansible.builtin.user:
0 commit comments