Bertrand Lanson
0b0fc6673e
All checks were successful
test / Linting (push) Successful in 39s
test / Molecule tests (default, debian12) (push) Successful in 58s
test / Molecule tests (default, debian11) (push) Successful in 1m22s
test / Molecule tests (default, ubuntu2004) (push) Successful in 59s
test / Molecule tests (default, ubuntu2204) (push) Successful in 58s
test / Molecule tests (with_extra_sidecars, debian11) (push) Successful in 53s
test / Molecule tests (with_extra_sidecars, debian12) (push) Successful in 1m6s
test / Molecule tests (with_extra_sidecars, ubuntu2004) (push) Successful in 39s
test / Molecule tests (with_extra_sidecars, ubuntu2204) (push) Successful in 33s
36 lines
1.1 KiB
YAML
36 lines
1.1 KiB
YAML
---
|
|
# task/consul_service file for deploy_adguard
|
|
- name: "Copy adguard.consul.json file"
|
|
ansible.builtin.template:
|
|
src: "adguard.consul.json.j2"
|
|
dest: "{{ deploy_adguard_directory }}/adguard.consul.json"
|
|
owner: root
|
|
group: root
|
|
mode: '0644'
|
|
notify:
|
|
- "consul-services-register-adguard"
|
|
|
|
- name: "Configure service mesh proxy"
|
|
when: deploy_adguard_consul['configuration']['service']['connect'] is defined
|
|
block:
|
|
- name: "Copy adguard-connect-proxy.env file"
|
|
ansible.builtin.template:
|
|
src: "adguard-connect-proxy.env.j2"
|
|
dest: "{{ deploy_adguard_directory }}/adguard-connect-proxy.env"
|
|
owner: root
|
|
group: root
|
|
mode: '0644'
|
|
notify:
|
|
- "systemctl-enable-restart-adguard-connect-proxy"
|
|
|
|
- name: "Copy adguard-connect-proxy.service file"
|
|
ansible.builtin.template:
|
|
src: "adguard-connect-proxy.service.j2"
|
|
dest: "/etc/systemd/system/adguard-connect-proxy.service"
|
|
owner: root
|
|
group: root
|
|
mode: '0644'
|
|
notify:
|
|
- "systemctl-daemon-reload"
|
|
- "systemctl-enable-restart-adguard-connect-proxy"
|