From 6261bba77b1c7e7d51aa4b5fabc3ae27429b8e7b Mon Sep 17 00:00:00 2001 From: Jeffrey Serio <23226432+hyperreal64@users.noreply.github.com> Date: Fri, 28 Jun 2024 00:58:39 -0500 Subject: [PATCH] Update debian-homelab-setup.yml --- setup.yml => debian-homelab-setup.yml | 38 ++++++++++++++++++++------- 1 file changed, 29 insertions(+), 9 deletions(-) rename setup.yml => debian-homelab-setup.yml (81%) diff --git a/setup.yml b/debian-homelab-setup.yml similarity index 81% rename from setup.yml rename to debian-homelab-setup.yml index 25324e6..3b71eae 100644 --- a/setup.yml +++ b/debian-homelab-setup.yml @@ -23,8 +23,7 @@ - atop - autoconf - automake - - borgbackup - - borgmatic + - bat - build-essential - byobu - cmake @@ -32,19 +31,15 @@ - firewalld - git - htop - - httpie - - iotop + - jc + - jq - less - - libpam-systemd - - lynis - man-db - manpages - nfs-common - - nmon - pipx - python3-dev - python3-pip - - rkhunter - rclone - rsync - unattended-upgrades @@ -54,7 +49,7 @@ state: present become: true - - name: Unmask systemd-logind + - name: Ensure systemd-logind is unmasked ansible.builtin.systemd_service: name: systemd-logind enabled: true @@ -90,6 +85,31 @@ mode: "0644" become: true + - name: Copy 20auto-upgrades + ansible.builtin.copy: + src: etc/apt/apt.conf.d/20auto-upgrades + dest: /etc/apt/apt.conf.d/20auto-upgrades + owner: root + group: root + mode: "0644" + become: true + + - name: Copy 50unattended-upgrades + ansible.builtin.copy: + src: etc/apt/apt.conf.d/50unattended-upgrades + dest: /etc/apt/apt.conf.d/50unattended-upgrades + owner: root + group: root + mode: "0644" + become: true + + - name: Ensure unattended-upgrades is enabled + ansible.builtin.systemd_service: + name: unattended-upgrades + enabled: true + state: started + become: true + - name: Set the shell to zsh for user ansible.builtin.user: name: "{{ ansible_user }}"