More ansible-lint fixes
This commit is contained in:
@ -31,7 +31,7 @@
|
||||
mode: 0440
|
||||
owner: "{{ matrix_user_username }}"
|
||||
group: "{{ matrix_user_groupname }}"
|
||||
when: "matrix_prometheus_scraper_synapse_rules_enabled|bool"
|
||||
when: "matrix_prometheus_scraper_synapse_rules_enabled | bool"
|
||||
register: result
|
||||
retries: "{{ matrix_geturl_retries_count }}"
|
||||
delay: "{{ matrix_geturl_retries_delay }}"
|
||||
@ -39,7 +39,7 @@
|
||||
|
||||
- name: Ensure prometheus.yml installed
|
||||
ansible.builtin.copy:
|
||||
content: "{{ matrix_prometheus_configuration|to_nice_yaml(indent=2, width=999999) }}"
|
||||
content: "{{ matrix_prometheus_configuration | to_nice_yaml(indent=2, width=999999) }}"
|
||||
dest: "{{ matrix_prometheus_config_path }}/prometheus.yml"
|
||||
mode: 0644
|
||||
owner: "{{ matrix_user_username }}"
|
||||
@ -55,4 +55,4 @@
|
||||
- name: Ensure systemd reloaded after matrix-prometheus.service installation
|
||||
ansible.builtin.service:
|
||||
daemon_reload: true
|
||||
when: "matrix_prometheus_systemd_service_result.changed|bool"
|
||||
when: "matrix_prometheus_systemd_service_result.changed | bool"
|
||||
|
Reference in New Issue
Block a user