From dc112221839c8a8b8ce631575af4318d41ce4978 Mon Sep 17 00:00:00 2001 From: Bertrand Lanson Date: Sat, 3 Feb 2024 22:18:59 +0100 Subject: [PATCH] chore(lint): fix yaml linting issues --- molecule/default/verify.yml | 36 +++++++++--------- molecule/default_vagrant/verify.yml | 36 +++++++++--------- molecule/with_tls_enabled_vagrant/prepare.yml | 2 +- molecule/with_tls_enabled_vagrant/verify.yml | 38 +++++++++---------- 4 files changed, 56 insertions(+), 56 deletions(-) diff --git a/molecule/default/verify.yml b/molecule/default/verify.yml index 8d18611..ebb956c 100644 --- a/molecule/default/verify.yml +++ b/molecule/default/verify.yml @@ -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: diff --git a/molecule/default_vagrant/verify.yml b/molecule/default_vagrant/verify.yml index 7323efb..e28021c 100644 --- a/molecule/default_vagrant/verify.yml +++ b/molecule/default_vagrant/verify.yml @@ -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: diff --git a/molecule/with_tls_enabled_vagrant/prepare.yml b/molecule/with_tls_enabled_vagrant/prepare.yml index 3d7402a..02fd485 100644 --- a/molecule/with_tls_enabled_vagrant/prepare.yml +++ b/molecule/with_tls_enabled_vagrant/prepare.yml @@ -41,4 +41,4 @@ privatekey_path: /tmp/haproxy-cert/cert.pem.key provider: selfsigned owner: "1000" - group: "1000" \ No newline at end of file + group: "1000" diff --git a/molecule/with_tls_enabled_vagrant/verify.yml b/molecule/with_tls_enabled_vagrant/verify.yml index 3632fdd..6181f32 100644 --- a/molecule/with_tls_enabled_vagrant/verify.yml +++ b/molecule/with_tls_enabled_vagrant/verify.yml @@ -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 \ No newline at end of file + - haproxy_metrics_endpoint.status == 200