account: Added validate for sudoers insults config

dehydrated
Felix Stupp 4 years ago
parent dfe801631c
commit 427541311a
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -48,6 +48,7 @@ global_ssh_key_directory: "{{ global_public_key_directory }}/ssh"
global_ssh_host_key_directory: "{{ global_ssh_key_directory }}/hosts" global_ssh_host_key_directory: "{{ global_ssh_key_directory }}/hosts"
global_validate_shell_script: "/usr/bin/shellcheck -format=quiet %s" global_validate_shell_script: "/usr/bin/shellcheck -format=quiet %s"
global_validate_sudoers_file: "/usr/sbin/visudo -c -f %s"
global_wireguard_private_directory: "{{ global_credentials_directory }}/wireguard" global_wireguard_private_directory: "{{ global_credentials_directory }}/wireguard"
global_wireguard_public_directory: "{{ global_public_key_directory }}/wireguard/keys" global_wireguard_public_directory: "{{ global_public_key_directory }}/wireguard/keys"

@ -23,6 +23,7 @@
owner: root owner: root
group: root group: root
mode: u=r,g=r,o= mode: u=r,g=r,o=
validate: "{{ global_validate_sudoers_file }}"
- name: Configure user account {{ username }} - name: Configure user account {{ username }}
user: user:

Loading…
Cancel
Save