mirror of
https://github.com/lemeow125/ansible-playbooks.git
synced 2025-08-03 01:53:15 +08:00
Update playbooks
This commit is contained in:
parent
46250f9a99
commit
2150c17f24
14 changed files with 315 additions and 9 deletions
|
@ -4,10 +4,23 @@
|
|||
# Runs on root user already
|
||||
become: false
|
||||
tasks:
|
||||
- name: Update Docker
|
||||
apt:
|
||||
name:
|
||||
- docker
|
||||
update_cache: true
|
||||
autoremove: true
|
||||
state: latest
|
||||
notify: Restart Docker Containers
|
||||
- name: Update all packages
|
||||
apt:
|
||||
update_cache: true
|
||||
update_cache: false
|
||||
autoremove: true
|
||||
state: latest
|
||||
- name: Update ACME
|
||||
command: /root/.acme.sh/acme.sh --upgrade --auto-upgrade
|
||||
|
||||
handlers:
|
||||
# Restart Docker Containers on Docker Update
|
||||
- name: Restart Docker Containers
|
||||
command: bash /root/scripts/start_services.sh
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue