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 throttle: 1
when: deploy_adguard_start_service 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" - name: "Enable adguard-connect-proxy service"
ansible.builtin.service: ansible.builtin.service:
name: adguard-connect-proxy name: adguard-connect-proxy

View File

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

View File

@ -7,14 +7,8 @@
owner: root owner: root
group: root group: root
mode: '0644' mode: '0644'
register: _copy_service_template notify:
- "consul-services-register-adguard"
- 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
- name: "Configure service mesh proxy" - name: "Configure service mesh proxy"
when: deploy_adguard_consul['configuration']['service']['connect'] is defined when: deploy_adguard_consul['configuration']['service']['connect'] is defined