Compare commits

..

2 commits

Author SHA1 Message Date
Ada
c2b15b5eaa
Add upgrade playbook
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2024-04-22 18:02:01 +02:00
Ada
f8cbb9b783
Add gitignore 2024-04-22 17:59:44 +02:00
13 changed files with 17 additions and 1 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
venv/

0
ansible/roles/auditd/files/custom.rules Executable file → Normal file
View file

0
ansible/roles/auditd/handlers/main.yml Executable file → Normal file
View file

0
ansible/roles/auditd/tasks/main.yml Executable file → Normal file
View file

0
ansible/roles/fail2ban/handlers/main.yml Executable file → Normal file
View file

0
ansible/roles/fail2ban/tasks/main.yml Executable file → Normal file
View file

0
ansible/roles/fail2ban/templates/sshd.conf.j2 Executable file → Normal file
View file

0
ansible/roles/journald/files/retention-time.conf Executable file → Normal file
View file

0
ansible/roles/journald/handlers/main.yml Executable file → Normal file
View file

0
ansible/roles/journald/tasks/main.yml Executable file → Normal file
View file

View file

@ -15,7 +15,6 @@
state: present state: present
filename: knot-dns filename: knot-dns
- name: Install knot - name: Install knot
ansible.builtin.apt: ansible.builtin.apt:
name: knot name: knot

0
ansible/roles/timesyncd/tasks/main.yml Executable file → Normal file
View file

16
ansible/upgrade.yml Normal file
View file

@ -0,0 +1,16 @@
---
- name: Upgreade
hosts: all
become: true
tasks:
- name: Ugrade debian based
ansible.builtin.apt:
update_cache: true
upgrade: true
when: ansible_facts['os_family'] == "Debian"
- name: Upgrade all packages
ansible.builtin.dnf:
name: "*"
state: latest
when: ansible_facts['os_family'] == "RedHat"