mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2025-01-23 20:39:26 +00:00
111
This commit is contained in:
parent
e176463b90
commit
fd22cf7a1a
@ -1,11 +1,31 @@
|
|||||||
- hosts: containers
|
---
|
||||||
name: Sync mailu,ha,...
|
- name: import a task
|
||||||
ignore_unreachable: false
|
hosts: containers
|
||||||
|
gather_facts: false
|
||||||
tasks:
|
tasks:
|
||||||
- name: Changing permission
|
- include_tasks: sync_container_data.yaml
|
||||||
ansible.builtin.shell: 'chown -R admin. /share/docker_data/'
|
name: Sync Container Data
|
||||||
|
- include_tasks: reconfigure_nginx.yaml
|
||||||
|
name: Reconfigure nginx proxy manager
|
||||||
|
loop:
|
||||||
|
- sectorq.eu
|
||||||
|
- gitlab.sectorq.eu
|
||||||
|
- ha.sectorq.eu
|
||||||
|
- mail.sectorq.eu
|
||||||
|
- pw.sectorq.eu
|
||||||
|
- semaphore.sectorq.eu
|
||||||
|
when: inventory_hostname in groups['raspberrypi5']
|
||||||
|
|
||||||
|
- include_tasks: reconfigure_heimdall.yaml
|
||||||
|
name: Reconfigure heimdall
|
||||||
|
loop:
|
||||||
|
- Home Assistant
|
||||||
|
- Nginx Proxy Manager
|
||||||
|
- Portainer
|
||||||
|
- Roundcube
|
||||||
|
when: inventory_hostname in groups['raspberrypi5']
|
||||||
|
- name: Changing heimdall background
|
||||||
|
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
|
become: true
|
||||||
when: inventory_hostname in groups['raspberry'] or inventory_hostname in groups['raspberrypi5']
|
when: inventory_hostname in groups['raspberrypi5']
|
||||||
- name: Syncing all
|
|
||||||
ansible.builtin.shell: 'rsync -ra /share/docker_data/{mailu2,ha,gitlab,semaphore,webhub,nginx} admin@192.168.77.238:/share/docker_data/'
|
|
||||||
when: inventory_hostname in groups['nas']
|
|
@ -1,7 +1,10 @@
|
|||||||
- hosts: containers
|
- hosts: datacenter
|
||||||
name: Stop mailu
|
name: Modify nginx configs
|
||||||
|
vars:
|
||||||
|
apps:
|
||||||
|
- Home Assistant
|
||||||
tasks:
|
tasks:
|
||||||
- name: Copy archive
|
- include: reconfigure_heimdall.yaml app={{ item }}
|
||||||
ansible.builtin.shell: 'scp -i .ssh/id_rsa333 /share/Data/dockers-{{ ansible_date_time.date }}.tar.gz jaydee@192.168.77.246/share/'
|
name: lala
|
||||||
ignore_errors: yes
|
with_items:
|
||||||
when: inventory_hostname in groups['nas']
|
- "{{ apps }}"
|
Loading…
x
Reference in New Issue
Block a user