From 66e12d354bcf299bb2490b0043dbfb34b6e4e3e9 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Sun, 8 Oct 2023 17:48:49 +0200 Subject: [PATCH] Fixes to the names syntax. --- tasks/certificate_from_private_ca.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tasks/certificate_from_private_ca.yml b/tasks/certificate_from_private_ca.yml index cd8ee4d..d9688e2 100644 --- a/tasks/certificate_from_private_ca.yml +++ b/tasks/certificate_from_private_ca.yml @@ -1,12 +1,12 @@ --- -- name: Create the certificate using the private CA +- name: certificate_from_private_ca | Create the certificate using the private CA tags: [pki, tls, tls_certificate] block: - - name: Set the common group between mkcert-ca and ansible + - name: certificate_from_private_ca | Set the common group between mkcert-ca and ansible ansible.builtin.set_fact: ansible_common_remote_group: ansible - - name: Create the certificate (delegate to the CA vm) + - name: certificate_from_private_ca | Create the certificate (delegate to the CA vm) ansible.builtin.command: cmd: mkcert -cert-file /srv/mkcert-ca/{{ mkcert_cert_name }} -key-file /srv/mkcert-ca/{{ mkcert_key_name }} {{ mkcert_dsn_and_ip_list }} args: @@ -16,10 +16,10 @@ CAROOT: /srv/mkcert-ca/.local/share/mkcert delegate_to: "{{ mkcert_ca_host }}" -- name: Manage the certificate installation +- name: certificate_from_private_ca | Manage the certificate installation tags: [pki, tls, tls_certificate] block: - - name: Get the certificate and its key from the CA server + - name: certificate_from_private_ca | Get the certificate and its key from the CA server ansible.builtin.fetch: src: "/srv/mkcert-ca/{{ item }}" dest: "files/" @@ -29,7 +29,7 @@ - "{{ mkcert_key_name }}" delegate_to: "{{ mkcert_ca_host }}" - - name: Copy the certificate to the destination server + - name: certificate_from_private_ca | Copy the certificate to the destination server ansible.builtin.copy: src: "files/{{ mkcert_cert_name }}" dest: "{{ mkcert_cert_dest_path }}" @@ -37,7 +37,7 @@ group: root mode: 0444 - - name: Copy the certificate to the destination server + - name: certificate_from_private_ca | Copy the certificate to the destination server ansible.builtin.copy: src: "files/{{ mkcert_key_name }}" dest: "{{ mkcert_key_dest_path }}"