Compare commits

..

2 Commits

Author SHA1 Message Date
effb658a7e
Merge branch 'master' of git.projectsegfau.lt:ProjectSegfault/ansible 2023-07-21 13:20:03 +01:00
6fd30cef87
Add GDU check 2023-07-21 13:19:35 +01:00
2 changed files with 18 additions and 2 deletions

View File

@ -31,7 +31,7 @@
- name: Disable dmesg logging to console
ansible.posix.sysctl:
name: kernel.printk
value: '3 4 1 3'
value: "3 4 1 3"
state: present
sysctl_set: true
- name: Add users
@ -133,7 +133,7 @@
owner: 0
group: 0
mode: "0644"
validate: '/usr/sbin/sshd -T -f %s'
validate: "/usr/sbin/sshd -T -f %s"
notify:
- restart sshd
handlers:
@ -142,3 +142,18 @@
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!"

View File

@ -1,6 +1,7 @@
# General
alias clear="printf '\033c'" # faster than ncurses clear by a lot
alias c='clear'
alias q="exit"
alias bashrc="vim ~/.bashrc && source ~/.bashrc"
# LS
alias ls='ls --color=auto -FAh'