use roles on servers target

authelia
chatton 2 years ago
parent e444e29c8c
commit 94ec1a4ffd

@ -67,3 +67,4 @@ cron_hour: "4"
# - "unix:///var/run/docker.sock"
docker_backup_host_backup_directory: "/tmp"
portainer_roles: []

@ -95,4 +95,10 @@ services:
- name: gotify
- name: diun
portainer_roles:
- role: portainer_dashy
- role: portainer_dashdot
- role: portainer_glances
- role: portainer_arr

@ -27,3 +27,10 @@ docker_daemon_options:
- "tcp://0.0.0.0:2375"
- "unix:///var/run/docker.sock"
portainer_roles:
- role: portainer_bookstack
- role: portainer_vaultwarden
- role: portainer_dashy
- role: portainer_dashdot
- role: portainer_glances

@ -55,35 +55,20 @@
- role: setup_compose_services
tags: [compose]
- name: Setup and deploy portainer services (snunmu).
hosts: snunmu
become: true
tags: [services]
pre_tasks:
- name: Include vault variables.
ansible.builtin.include_vars: '../{{ vault_file }}'
tags: [always]
roles:
- role: portainer_bookstack
- role: portainer_vaultwarden
- role: portainer_dashy
- role: portainer_dashdot
- role: portainer_glances
- name: Setup and deploy portainer services (qnap).
hosts: qnap
- name: Setup and deploy portainer services.
hosts: servers
become: true
strategy: free
tags: [services]
pre_tasks:
- name: Include vault variables.
ansible.builtin.include_vars: '../{{ vault_file }}'
tags: [always]
roles:
- role: portainer_dashy
- role: portainer_dashdot
- role: portainer_glances
- role: portainer_arr
tasks:
- name: Setup and deploy portainer services.
include_role:
name: "{{ item.role }}"
with_items: "{{ portainer_roles }}"
#
#- name: Setup and deploy templated portainer services.

@ -11,8 +11,8 @@ actions:
timeout: 30
- title: Restart Overseerr
icon: overseerr
shell: docker restart plex
shell: docker restart overseerr
timeout: 30
- title: Restart VPN Stack
shell: docker restart surfshark sonarr radarr jackett qbittorrent
shell: docker restart protonvpn sonarr radarr jackett qbittorrent
timeout: 90

Loading…
Cancel
Save