diff --git a/playbooks/sync_all.yaml b/playbooks/sync_all.yaml index 0c0ceb8..0546537 100644 --- a/playbooks/sync_all.yaml +++ b/playbooks/sync_all.yaml @@ -55,18 +55,21 @@ 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'] - # - name: Get relevant configs - # ansible.builtin.shell: 'docker exec -it gitlab update-permissions' - # ignore_errors: yes - # become: yes - # register: result - # when: inventory_hostname in groups['raspberrypi5'] - - name: Get relevant configs - ansible.builtin.shell: 'docker restart gitlab' + - include_tasks: start_containers.yaml + name: Start Containers + when: inventory_hostname in groups['raspberrypi5'] + - name: Pause for 60 seconds + ansible.builtin.pause: + seconds: 10 + - name: Update gitlab perms + ansible.builtin.shell: 'docker exec -it gitlab update-permissions' ignore_errors: yes become: yes register: result - when: inventory_hostname in groups['raspberrypi5'] \ No newline at end of file + when: inventory_hostname in groups['raspberrypi5'] + # - name: Get relevant configs + # ansible.builtin.shell: 'docker restart gitlab' + # ignore_errors: yes + # become: yes + # register: result + # when: inventory_hostname in groups['raspberrypi5'] \ No newline at end of file