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
+4 -4
View File
@@ -64,7 +64,7 @@
- name: (sshd.yml) Create new sshd_config from template sshd_config.j2
template:
ansible.builtin.template:
src: etc/ssh/sshd_config.ubuntu.j2
dest: /etc/ssh/sshd_config
owner: root
@@ -80,7 +80,7 @@
- name: (sshd.yml) Create/Update new sshd_config from template sshd_config.j2
template:
ansible.builtin.template:
src: etc/ssh/sshd_config.j2
dest: /etc/ssh/sshd_config
owner: root
@@ -96,7 +96,7 @@
- sshd-config
- name: (sshd.yml) Create/Update sshd_config for chrooted sftp_group from template sshd_config.j2
template:
ansible.builtin.template:
src: etc/ssh/sshd_config.j2
dest: /etc/ssh/sshd_config
owner: root
@@ -137,7 +137,7 @@
- sshd-config
- name: (sshd.yml) Create/Update file '/etc/ssh/sshd_config.d/50-sshd-local.conf' from template sshd_config.j2
template:
ansible.builtin.template:
src: etc/ssh/sshd_config.j2
dest: /etc/ssh/sshd_config.d/50-sshd-local.conf
owner: root