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" # - "unix:///var/run/docker.sock"
docker_backup_host_backup_directory: "/tmp" docker_backup_host_backup_directory: "/tmp"
portainer_roles: []

@ -95,4 +95,10 @@ services:
- name: gotify - name: gotify
- name: diun - 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" - "tcp://0.0.0.0:2375"
- "unix:///var/run/docker.sock" - "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 - role: setup_compose_services
tags: [compose] tags: [compose]
- name: Setup and deploy portainer services.
- name: Setup and deploy portainer services (snunmu). hosts: servers
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
become: true become: true
strategy: free
tags: [services] tags: [services]
pre_tasks: pre_tasks:
- name: Include vault variables. - name: Include vault variables.
ansible.builtin.include_vars: '../{{ vault_file }}' ansible.builtin.include_vars: '../{{ vault_file }}'
tags: [always] tags: [always]
roles: tasks:
- role: portainer_dashy - name: Setup and deploy portainer services.
- role: portainer_dashdot include_role:
- role: portainer_glances name: "{{ item.role }}"
- role: portainer_arr with_items: "{{ portainer_roles }}"
# #
#- name: Setup and deploy templated portainer services. #- name: Setup and deploy templated portainer services.

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

Loading…
Cancel
Save