1
0

Extract caddy to separate playbook

This commit is contained in:
2024-12-21 15:38:54 +03:00
parent cd86348f88
commit 03db3241b3
4 changed files with 38 additions and 52 deletions

View File

@ -10,18 +10,18 @@
- name: Perform an upgrade of packages
ansible.builtin.apt:
upgrade: 'yes'
update_cache: yes
update_cache: true
- name: Check if a reboot is required
ansible.builtin.stat:
path: /var/run/reboot-required
get_checksum: no
get_checksum: false
register: reboot_required_file
- name: Reboot the server (if required)
ansible.builtin.reboot:
when: reboot_required_file.stat.exists == true
when: reboot_required_file.stat.exists
- name: Remove dependencies that are no longer required
ansible.builtin.apt:
autoremove: yes
autoremove: true