fxi midou's shitty ansible
This commit is contained in:
parent
effb658a7e
commit
f06535c6d5
@ -15,6 +15,8 @@
|
|||||||
- python3-passlib
|
- python3-passlib
|
||||||
- vnstat
|
- vnstat
|
||||||
- chrony
|
- chrony
|
||||||
|
- gdu
|
||||||
|
- btop
|
||||||
- name: Enable VNStat service
|
- name: Enable VNStat service
|
||||||
ansible.builtin.service:
|
ansible.builtin.service:
|
||||||
name: vnstat
|
name: vnstat
|
||||||
@ -142,18 +144,3 @@
|
|||||||
name: sshd
|
name: sshd
|
||||||
enabled: true
|
enabled: true
|
||||||
state: restarted
|
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!"
|
|
||||||
|
Loading…
Reference in New Issue
Block a user