From 86af929780e0b6ae2f36b96962b81c6404438cf7 Mon Sep 17 00:00:00 2001
From: Nicolas Lenz <nicolas@eisfunke.com>
Date: Sun, 5 Nov 2023 10:52:35 +0100
Subject: [PATCH] fix more linter

---
 tasks/configure.yml      | 2 +-
 tasks/install.yml        | 6 +++---
 tasks/main.yml           | 6 ++++--
 tasks/standalone_tls.yml | 2 +-
 tasks/tls.yml            | 4 ++--
 5 files changed, 11 insertions(+), 9 deletions(-)

diff --git a/tasks/configure.yml b/tasks/configure.yml
index 61a1fdf..a398c86 100644
--- a/tasks/configure.yml
+++ b/tasks/configure.yml
@@ -212,7 +212,7 @@
     state: directory
     owner: root
     group: root
-    mode: 0755
+    mode: "0755"
 
 - name: 'Merge global config'
   ansible.builtin.set_fact:
diff --git a/tasks/install.yml b/tasks/install.yml
index 33c3166..a9027b8 100644
--- a/tasks/install.yml
+++ b/tasks/install.yml
@@ -37,7 +37,7 @@
     state: directory
     owner: root
     group: root
-    mode: 0755
+    mode: "0755"
   when: haproxy_global.chroot is defined and haproxy_global.chroot
 
 - name: Create service override directory
@@ -46,7 +46,7 @@
     state: directory
     owner: root
     group: root
-    mode: 0755
+    mode: "0755"
 
 - name: Copy service override
   ansible.builtin.copy:
@@ -57,4 +57,4 @@
       After=network-online.target
     owner: root
     group: root
-    mode: 0644
+    mode: "0644"
diff --git a/tasks/main.yml b/tasks/main.yml
index 2781e24..c1d4b85 100644
--- a/tasks/main.yml
+++ b/tasks/main.yml
@@ -1,5 +1,7 @@
 ---
-- include_tasks: install.yml
+- name: Install haproxy
+  ansible.builtin.include_tasks: install.yml
 
-- include_tasks: configure.yml
+- name: Configure haproxy
+  ansible.builtin.include_tasks: configure.yml
   when: haproxy_manage_config
diff --git a/tasks/standalone_tls.yml b/tasks/standalone_tls.yml
index 79a8fc0..ab46429 100644
--- a/tasks/standalone_tls.yml
+++ b/tasks/standalone_tls.yml
@@ -5,7 +5,7 @@
     dest: /etc/haproxy/haproxy.cfg
     owner: root
     group: root
-    mode: 0644
+    mode: "0644"
 
 - name: Restart haproxy
   ansible.builtin.systemd:
diff --git a/tasks/tls.yml b/tasks/tls.yml
index 864fc6c..9a776ce 100644
--- a/tasks/tls.yml
+++ b/tasks/tls.yml
@@ -1,10 +1,10 @@
 ---
-- name: "<{{ item }}> Gather Cert stats"
+- name: "Gather Cert stats for {{ item }}"
   ansible.builtin.stat:
     path: "/var/lib/acme/live/{{ item }}/haproxy"
   register: cert
 
-- name: "<{{ item }}> Run acmetool (Make sure your system is accessible from the internet!)"
+- name: "Run acmetool (make sure your system is accessible from the internet!) for {{ item }}"
   ansible.builtin.command: "acmetool want --batch {{ item }}"
   register: result
   changed_when: "result.stdout"
-- 
GitLab