Use literal algo for filename in /etc/sudoers.d/10-algo-user

This commit is contained in:
Davis Schirmer 2020-05-18 10:03:17 -04:00
parent 08c75e7f11
commit 6fbee63cdf
No known key found for this signature in database
GPG key ID: 4CA61156328791F4

View file

@ -17,7 +17,7 @@ getent passwd "${user}" \
( (
umask 0337 \ umask 0337 \
&& printf '%s\n' "${user} ALL=(ALL) NOPASSWD:ALL" \ && printf '%s\n' "${user} ALL=(ALL) NOPASSWD:ALL" \
>"/etc/sudoers.d/10-${user}-user" >"/etc/sudoers.d/10-algo-user"
) )
printf "{{ lookup('template', 'files/cloud-init/sshd_config') }}\n" \ printf "{{ lookup('template', 'files/cloud-init/sshd_config') }}\n" \