nix-config/ansible/roles/proxmox/tasks/main.yml

59 lines
974 B
YAML

---
- name: Update all packages to the latest version
apt:
upgrade: dist
- name: Install packages
apt:
name: "{{ packages }}"
vars:
packages:
- ethtool
- gddrescue
- git
- htop
- hwinfo
- ifupdown2
- iotop
- iperf
- ipmitool
- ipmiutil
- iproute2
- iptraf
- jq
- kpartx
- ntp
- ntpdate
- latencytop
- screen
- tcpdump
- tmux
- zsh
- name: Adjust sysctl values
copy:
src: ../files/sysctl/zentralwerk.conf
dest: /etc/sysctl.d/zentralwerk.conf
register: sysctl
- name: Apply sysctl
shell: "systemctl restart systemd-sysctl.service"
when: sysctl.changed
- name: Cloning oh-my-zsh
git:
repo=https://github.com/robbyrussell/oh-my-zsh
dest=~/.oh-my-zsh
- name: Link ~/.zshrc
file:
src: /etc/pve/zshrc
dest: ~/.zshrc
state: link
force: yes
- name: change user shell to zsh
become: yes
user:
name: root
shell: /bin/zsh