瀏覽代碼

Remove leading whitespaces.

lookup-fix-3
René Jochum 9 年之前
父節點
當前提交
6ca7aa0078
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. +2
    -2
      users/init.sls

+ 2
- 2
users/init.sls 查看文件

@@ -173,7 +173,7 @@ sudoer-{{ name }}:
file.managed:
- name: {{ users.sudoers_dir }}/{{ name }}
- user: root
- group: {{ users.root_group }}
- group: {{ users.root_group }}
- mode: '0440'
{% if 'sudo_rules' in user %}
{% for rule in user['sudo_rules'] %}
@@ -181,7 +181,7 @@ sudoer-{{ name }}:
cmd.run:
- name: 'visudo -cf - <<<"$rule" | { read output; if [[ $output != "stdin: parsed OK" ]] ; then echo $output ; fi }'
- stateful: True
- shell: {{ users.visudo_shell }}
- shell: {{ users.visudo_shell }}
- env:
# Specify the rule via an env var to avoid shell quoting issues.
- rule: "{{ name }} {{ rule }}"

Loading…
取消
儲存