Update debian-homelab-setup.yml

This commit is contained in:
Jeffrey Serio 2024-06-28 00:58:39 -05:00
parent 512c7efd6e
commit 6261bba77b

View File

@ -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 }}"