From 62b06fcfad3a3c082211efa4237c205f7d83cea7 Mon Sep 17 00:00:00 2001 From: eric o meehan Date: Mon, 11 Nov 2024 15:57:54 -0500 Subject: [PATCH] v1.0.0 --- tasks/main.yml | 28 +--------------------------- 1 file changed, 1 insertion(+), 27 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index d575817..818d7d7 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -4,35 +4,9 @@ apt: update_cache: yes -- name: Install debconf-utils - when: is_new_host == true - apt: - name: debconf-utils - state: present - -- name: Create preseed file - when: is_new_host == true - shell: echo "#_preseed_V1" > /root/preseed.txt - -- name: Append installer's debconf database to the preseed file - when: is_new_host == true - shell: debconf-get-selections --installer >> /root/preseed.txt - -- name: Append debconf database to the preseed file - when: is_new_host == true - shell: debconf-get-selections >> /root/preseed.txt - -- name: Append text from files/motd to the beginning of remote motd file - when: is_new_host == true - blockinfile: - path: /etc/motd - marker: "" - block: | - {{ lookup('file', 'files/motd') }} - - name: Copy nftables configuration template template: - src: "nftables.conf.j2" + src: nftables.conf.j2 dest: /etc/nftables.conf - name: Enable nftables