From 258012f00782d10d44d5bb284dfa00059b3af719 Mon Sep 17 00:00:00 2001 From: Matthew Fennell Date: Wed, 9 Sep 2026 21:43:36 +0100 Subject: Move files and templates from xmpp-server As I just performed a naive copy before, files and templates used by the bootstrap role were still resolving via playbook_dir. This still worked, but I want these bootstrap-specific files to remain self-contained within the role. --- tasks/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tasks') diff --git a/tasks/main.yml b/tasks/main.yml index 29e003c..4512804 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -73,7 +73,7 @@ - name: Ensure hostname is configured in /etc/hosts ansible.builtin.template: - src: "{{ playbook_dir }}/files/hosts.j2" + src: hosts.j2 dest: /etc/hosts owner: root group: root @@ -135,7 +135,7 @@ - name: Ensure password based authentication is disabled ansible.builtin.copy: - src: "{{ playbook_dir }}/files/50-disable-password-auth.conf" + src: 50-disable-password-auth.conf dest: "/etc/ssh/sshd_config.d/50-disable-password-auth.conf" owner: root group: root @@ -145,7 +145,7 @@ - name: Ensure unattended upgrades config is installed ansible.builtin.copy: - src: "{{ playbook_dir }}/files/50unattended-upgrades" + src: 50unattended-upgrades dest: "/etc/apt/apt.conf.d/50unattended-upgrades" owner: root group: root -- cgit v1.2.3