Sfoglia il codice sorgente

Merge pull request #129 from aboe76/master

fix warning on managed file state for /etc/sudoers.d/username
tags/v0.45.0
Forrest 8 anni fa
parent
commit
0c364461c7
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. +2
    -0
      users/init.sls

+ 2
- 0
users/init.sls Vedi File

@@ -341,6 +341,7 @@ users_ssh_known_hosts_delete_{{ name }}_{{ loop.index0 }}:

users_sudoer-{{ name }}:
file.managed:
- replace: False
- name: {{ users.sudoers_dir }}/{{ name }}
- user: root
- group: {{ users.root_group }}
@@ -379,6 +380,7 @@ users_sudoer-{{ name }}:

users_{{ users.sudoers_dir }}/{{ name }}:
file.managed:
- replace: True
- name: {{ users.sudoers_dir }}/{{ name }}
- contents: |
{%- if 'sudo_defaults' in user %}

Loading…
Annulla
Salva