mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2025-07-03 00:03:05 +02:00
111
This commit is contained in:
@ -3,6 +3,13 @@
|
||||
hosts: containers
|
||||
gather_facts: false
|
||||
tasks:
|
||||
- include_tasks: stop_containers.yaml
|
||||
name: Stop Containers
|
||||
when: inventory_hostname in groups['raspberrypi5']
|
||||
- name: Pause for 60 seconds
|
||||
ansible.builtin.pause:
|
||||
seconds: 60
|
||||
|
||||
- include_tasks: sync_container_data.yaml
|
||||
name: Sync Container Data
|
||||
- include_tasks: reconfigure_nginx.yaml
|
||||
@ -28,4 +35,6 @@
|
||||
ansible.builtin.shell: sqlite3 /share/docker_data/heimdall/config/www/app.sqlite "UPDATE setting_user SET uservalue = 'backgrounds/TRN2Ydr5dyVAkWvCq4xqR5bQ6iyv5XaKvM1r84sJ.jpg' WHERE user_id = (SELECT id FROM users WHERE username = 'jaydee')"
|
||||
become: true
|
||||
when: inventory_hostname in groups['raspberrypi5']
|
||||
|
||||
- include_tasks: start_containers.yaml
|
||||
name: Start Containers
|
||||
when: inventory_hostname in groups['raspberrypi5']
|
Reference in New Issue
Block a user