fxi midou's shitty ansible

This commit is contained in:
Arya 2023-07-21 17:57:57 +05:30
parent effb658a7e
commit f06535c6d5
Signed by: arya
GPG Key ID: 842D12BDA50DF120

View File

@ -15,6 +15,8 @@
- python3-passlib
- vnstat
- chrony
- gdu
- btop
- name: Enable VNStat service
ansible.builtin.service:
name: vnstat
@ -142,18 +144,3 @@
name: sshd
enabled: true
state: restarted
- name: Install gdu
hosts: all
tasks:
- name: Check if gdu is installed
stat:
path: "/usr/bin/gdu"
register: file_data
- name: If gdu is not installed
ansible.builtin.apt:
name: gdu
update_cache: true
when: not file_data.stat.exists
- name: If gdu is installed
debug:
msg: "gdu is already installed!"