2025-02-11 19:12:40 +01:00

33 lines
739 B
YAML

---
- name: Update apt cache
apt:
update_cache: true
cache_valid_time: 3600
become: true
- name: Install Common packages
apt:
name: "{{ common_packages }}"
state: present
become: true
- name: Copy the .deb package to the remote host
copy:
src: archey4_4.15.0.0-1_all.deb # Name of the .deb file in the `files` folder
dest: /tmp/archey4_4.15.0.0-1_all.deb
mode: '0644'
- name: Install the .deb package
apt:
deb: /tmp/archey4_4.15.0.0-1_all.deb
state: present
become: true
- name: Set zsh as the default shell
shell: chsh -s $(which zsh) {{ ansible_user }}
become: true
when: ansible_user != "root"
register: chsh_result
failed_when: chsh_result.rc != 0
changed_when: false