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 - atop
- autoconf - autoconf
- automake - automake
- borgbackup - bat
- borgmatic
- build-essential - build-essential
- byobu - byobu
- cmake - cmake
@ -32,19 +31,15 @@
- firewalld - firewalld
- git - git
- htop - htop
- httpie - jc
- iotop - jq
- less - less
- libpam-systemd
- lynis
- man-db - man-db
- manpages - manpages
- nfs-common - nfs-common
- nmon
- pipx - pipx
- python3-dev - python3-dev
- python3-pip - python3-pip
- rkhunter
- rclone - rclone
- rsync - rsync
- unattended-upgrades - unattended-upgrades
@ -54,7 +49,7 @@
state: present state: present
become: true become: true
- name: Unmask systemd-logind - name: Ensure systemd-logind is unmasked
ansible.builtin.systemd_service: ansible.builtin.systemd_service:
name: systemd-logind name: systemd-logind
enabled: true enabled: true
@ -90,6 +85,31 @@
mode: "0644" mode: "0644"
become: true 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 - name: Set the shell to zsh for user
ansible.builtin.user: ansible.builtin.user:
name: "{{ ansible_user }}" name: "{{ ansible_user }}"