mirror of
https://github.com/RWejlgaard/pez-infra.git
synced 2026-05-06 04:14:43 +00:00
Merge branch 'main' into change-provider-for-plex-metrics
This commit is contained in:
commit
c98050ba06
2 changed files with 11 additions and 0 deletions
|
|
@ -41,6 +41,16 @@
|
|||
loop: "{{ docker_services | default([]) }}"
|
||||
failed_when: false
|
||||
|
||||
- name: Template service .env files
|
||||
ansible.builtin.template:
|
||||
src: "{{ playbook_dir }}/services/{{ item }}/.env.j2"
|
||||
dest: "/opt/docker/{{ item }}/.env"
|
||||
mode: '0600'
|
||||
loop: "{{ docker_services | default([]) }}"
|
||||
when: lookup('ansible.builtin.fileglob', playbook_dir + '/services/' + item + '/.env.j2') | length > 0
|
||||
no_log: true
|
||||
failed_when: false
|
||||
|
||||
- name: Start/update docker compose services
|
||||
community.docker.docker_compose_v2:
|
||||
project_src: "/opt/docker/{{ item.item }}"
|
||||
|
|
|
|||
1
ansible/services/plex-exporter/.env.j2
Normal file
1
ansible/services/plex-exporter/.env.j2
Normal file
|
|
@ -0,0 +1 @@
|
|||
PLEX_TOKEN={{ plex_exporter_plex_token }}
|
||||
Loading…
Add table
Reference in a new issue