Merge pull request #35 from ashb/patch-2
Specify bash shell when validating sudo snippet
This commit is contained in:
commit
39d89a01fa
@ -135,6 +135,7 @@ sudoer-{{ name }}:
|
|||||||
"validate {{ name }} sudo rule {{ loop.index0 }} {{ name }} {{ rule }}":
|
"validate {{ name }} sudo rule {{ loop.index0 }} {{ name }} {{ rule }}":
|
||||||
cmd.run:
|
cmd.run:
|
||||||
- name: 'visudo -cf - <<<"$rule"'
|
- name: 'visudo -cf - <<<"$rule"'
|
||||||
|
- shell: /bin/bash
|
||||||
- env:
|
- env:
|
||||||
# Specify the rule via an env var to avoid shell quoting issues.
|
# Specify the rule via an env var to avoid shell quoting issues.
|
||||||
- rule: "{{ name }} {{ rule }}"
|
- rule: "{{ name }} {{ rule }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user