Refactor template tasks to use ansible.builtin.template for consistency across playbooks

This commit is contained in:
2026-07-30 23:47:37 +02:00
parent 91e40916c4
commit 81ef678904
21 changed files with 41 additions and 41 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
---
- name: (sudoers-pc.yml) update specific sudoers configuration files (/etc/sudoers.d/)
template:
ansible.builtin.template:
src: etc/sudoers.d/50-user.pc.j2
dest: /etc/sudoers.d/50-user
validate: visudo -cf %s
@@ -12,7 +12,7 @@
- sudoers-file-configuration
- name: (sudoers-pc.yml) update global sudoers configuration file
template:
ansible.builtin.template:
src: etc/sudoers.pc.j2
dest: /etc/sudoers
owner: root