diff --git a/users/init.sls b/users/init.sls index f35330f..6c7388b 100644 --- a/users/init.sls +++ b/users/init.sls @@ -135,6 +135,7 @@ sudoer-{{ name }}: "validate {{ name }} sudo rule {{ loop.index0 }} {{ name }} {{ rule }}": cmd.run: - name: 'visudo -cf - <<<"$rule"' + - shell: /bin/bash - env: # Specify the rule via an env var to avoid shell quoting issues. - rule: "{{ name }} {{ rule }}"