diff --git a/tasks/configure.yml b/tasks/configure.yml index 61a1fdf236416d1d32266866942527ea69452c51..a398c8641ac6c62048adc2cbb3d0ccb6e4a1d66f 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 33c3166915b464e0aa374eeb81fe85eb06e36d5f..a9027b83779ec6b500a17847ec0cfbe76e8b487f 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 2781e247e309555860b1202bb8e9044e9c4a62e3..c1d4b858ffde83e996edb43e24d131e89b4974a7 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 79a8fc053c00d2095db89e4ffbf1665d96071383..ab46429ee03e7beb58847d3dcd09c36c7215c973 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 864fc6caa559d22efd6dc0c6fe5df8b75dda7d3c..9a776cef897b170a3608db2cfa2c2433c2f0a8a8 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"