correct linting

This commit is contained in:
Bertrand Lanson 2023-06-07 19:17:42 +02:00
parent 125bc630ff
commit a07525e8a3
3 changed files with 13 additions and 8 deletions

View File

@ -19,6 +19,14 @@
throttle: 1
when: deploy_adguard_start_service
- name: "Register/Update consul service"
ansible.builtin.command: "consul services register {{ deploy_adguard_directory }}/adguard.consul.json"
environment:
CONSUL_HTTP_ADDR: "{{ deploy_adguard_consul['consul_addr'] }}"
CONSUL_HTTP_TOKEN: "{{ deploy_adguard_consul['consul_token'] }}"
changed_when: false
listen: "consul-services-register-adguard"
- name: "Enable adguard-connect-proxy service"
ansible.builtin.service:
name: adguard-connect-proxy

View File

@ -27,6 +27,9 @@
ansible.builtin.copy:
dest: "{{ deploy_adguard_directory }}/password"
content: "{{ deploy_adguard_node_exporter['password'] }}"
owner: root
group: root
mode: '0600'
when: deploy_adguard_node_exporter['enable']
notify:
- systemctl-restart-adguard

View File

@ -7,14 +7,8 @@
owner: root
group: root
mode: '0644'
register: _copy_service_template
- name: "Register/Update consul service"
ansible.builtin.command: "consul services register {{ deploy_adguard_directory }}/adguard.consul.json"
environment:
CONSUL_HTTP_ADDR: "{{ deploy_adguard_consul['consul_addr'] }}"
CONSUL_HTTP_TOKEN: "{{ deploy_adguard_consul['consul_token'] }}"
when: _copy_service_template.changed
notify:
- "consul-services-register-adguard"
- name: "Configure service mesh proxy"
when: deploy_adguard_consul['configuration']['service']['connect'] is defined