This commit is contained in:
jaydee 2023-12-10 13:35:30 +01:00
parent ad548611b2
commit 6b0693a9d0
2 changed files with 13 additions and 0 deletions

View File

@ -5,3 +5,4 @@
tasks:
- name: Shut down
community.general.shutdown:
ignore_errors: yes

View File

@ -56,4 +56,16 @@
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'
ignore_errors: yes
become: yes
register: result
when: inventory_hostname in groups['raspberrypi5']