chore(lint): fix yaml linting issues
Some checks failed
test / Linting (push) Failing after 35s
test / Molecule tests (default, debian11) (push) Has been skipped
test / Molecule tests (default, debian12) (push) Has been skipped
test / Molecule tests (default, ubuntu2004) (push) Has been skipped
test / Molecule tests (default, ubuntu2204) (push) Has been skipped
test / Molecule tests (with_tls_enabled, debian11) (push) Has been skipped
test / Molecule tests (with_tls_enabled, debian12) (push) Has been skipped
test / Molecule tests (with_tls_enabled, ubuntu2004) (push) Has been skipped
test / Molecule tests (with_tls_enabled, ubuntu2204) (push) Has been skipped

This commit is contained in:
Bertrand Lanson 2024-02-03 22:18:59 +01:00
parent e198c463ae
commit dc11222183
4 changed files with 56 additions and 56 deletions

View File

@ -72,26 +72,26 @@
- name: "Test: directory /var/lib/haproxy"
block:
- name: "Stat directory /var/lib/haproxy"
ansible.builtin.stat:
path: "/var/lib/haproxy"
register: stat_var_lib_haproxy
- name: "Stat directory /var/lib/haproxy"
ansible.builtin.stat:
path: "/var/lib/haproxy"
register: stat_var_lib_haproxy
- name: "Stat socket /var/lib/haproxy/stats"
ansible.builtin.stat:
path: "/var/lib/haproxy/stats"
register: stat_var_lib_haproxy_stats
- name: "Stat socket /var/lib/haproxy/stats"
ansible.builtin.stat:
path: "/var/lib/haproxy/stats"
register: stat_var_lib_haproxy_stats
- name: "Verify directory /var/lib/haproxy"
ansible.builtin.assert:
that:
- stat_var_lib_haproxy.stat.exists
- stat_var_lib_haproxy.stat.isdir
- stat_var_lib_haproxy.stat.pw_name == 'haproxy'
- stat_var_lib_haproxy.stat.gr_name == 'haproxy'
- stat_var_lib_haproxy.stat.mode == '0755'
- stat_var_lib_haproxy_stats.stat.exists
- stat_var_lib_haproxy_stats.stat.issock
- name: "Verify directory /var/lib/haproxy"
ansible.builtin.assert:
that:
- stat_var_lib_haproxy.stat.exists
- stat_var_lib_haproxy.stat.isdir
- stat_var_lib_haproxy.stat.pw_name == 'haproxy'
- stat_var_lib_haproxy.stat.gr_name == 'haproxy'
- stat_var_lib_haproxy.stat.mode == '0755'
- stat_var_lib_haproxy_stats.stat.exists
- stat_var_lib_haproxy_stats.stat.issock
- name: "Test: service haproxy"
block:

View File

@ -48,26 +48,26 @@
- name: "Test: directory /var/lib/haproxy"
block:
- name: "Stat directory /var/lib/haproxy"
ansible.builtin.stat:
path: "/var/lib/haproxy"
register: stat_var_lib_haproxy
- name: "Stat directory /var/lib/haproxy"
ansible.builtin.stat:
path: "/var/lib/haproxy"
register: stat_var_lib_haproxy
- name: "Stat socket /var/lib/haproxy/stats"
ansible.builtin.stat:
path: "/var/lib/haproxy/stats"
register: stat_var_lib_haproxy_stats
- name: "Stat socket /var/lib/haproxy/stats"
ansible.builtin.stat:
path: "/var/lib/haproxy/stats"
register: stat_var_lib_haproxy_stats
- name: "Verify directory /var/lib/haproxy"
ansible.builtin.assert:
that:
- stat_var_lib_haproxy.stat.exists
- stat_var_lib_haproxy.stat.isdir
- (stat_var_lib_haproxy.stat.uid | int) == 99
- (stat_var_lib_haproxy.stat.gid | int) == 99
- stat_var_lib_haproxy.stat.mode == '0755'
- stat_var_lib_haproxy_stats.stat.exists
- stat_var_lib_haproxy_stats.stat.issock
- name: "Verify directory /var/lib/haproxy"
ansible.builtin.assert:
that:
- stat_var_lib_haproxy.stat.exists
- stat_var_lib_haproxy.stat.isdir
- (stat_var_lib_haproxy.stat.uid | int) == 99
- (stat_var_lib_haproxy.stat.gid | int) == 99
- stat_var_lib_haproxy.stat.mode == '0755'
- stat_var_lib_haproxy_stats.stat.exists
- stat_var_lib_haproxy_stats.stat.issock
- name: "Test: service haproxy"
block:

View File

@ -41,4 +41,4 @@
privatekey_path: /tmp/haproxy-cert/cert.pem.key
provider: selfsigned
owner: "1000"
group: "1000"
group: "1000"

View File

@ -48,26 +48,26 @@
- name: "Test: directory /var/lib/haproxy"
block:
- name: "Stat directory /var/lib/haproxy"
ansible.builtin.stat:
path: "/var/lib/haproxy"
register: stat_var_lib_haproxy
- name: "Stat directory /var/lib/haproxy"
ansible.builtin.stat:
path: "/var/lib/haproxy"
register: stat_var_lib_haproxy
- name: "Stat socket /var/lib/haproxy/stats"
ansible.builtin.stat:
path: "/var/lib/haproxy/stats"
register: stat_var_lib_haproxy_stats
- name: "Stat socket /var/lib/haproxy/stats"
ansible.builtin.stat:
path: "/var/lib/haproxy/stats"
register: stat_var_lib_haproxy_stats
- name: "Verify directory /var/lib/haproxy"
ansible.builtin.assert:
that:
- stat_var_lib_haproxy.stat.exists
- stat_var_lib_haproxy.stat.isdir
- (stat_var_lib_haproxy.stat.uid | int) == 99
- (stat_var_lib_haproxy.stat.gid | int) == 99
- stat_var_lib_haproxy.stat.mode == '0755'
- stat_var_lib_haproxy_stats.stat.exists
- stat_var_lib_haproxy_stats.stat.issock
- name: "Verify directory /var/lib/haproxy"
ansible.builtin.assert:
that:
- stat_var_lib_haproxy.stat.exists
- stat_var_lib_haproxy.stat.isdir
- (stat_var_lib_haproxy.stat.uid | int) == 99
- (stat_var_lib_haproxy.stat.gid | int) == 99
- stat_var_lib_haproxy.stat.mode == '0755'
- stat_var_lib_haproxy_stats.stat.exists
- stat_var_lib_haproxy_stats.stat.issock
- name: "Test: service haproxy"
block:
@ -154,4 +154,4 @@
that:
- haproxy_health_endpoint.status == 200
- haproxy_stats_endpoint.status == 200
- haproxy_metrics_endpoint.status == 200
- haproxy_metrics_endpoint.status == 200