diff --git a/tasks/main.yaml b/tasks/main.yaml index 1be9448..70aa56b 100644 --- a/tasks/main.yaml +++ b/tasks/main.yaml @@ -30,7 +30,7 @@ client_name: "{{ ansible_facts['fqdn'] }}" client_reg_opt: "-hostname" client_host: "{{ ansible_facts['fqdn'] }}" - client_cert_cn: "{{ inventory_hostname }}" + client_cert_cn: "{{ ansible_facts['fqdn'] }}" when: lunasa_client_ip is undefined - name: set client facts for IP override diff --git a/tasks/register_client.yaml b/tasks/register_client.yaml index 4ebe84e..8866e65 100644 --- a/tasks/register_client.yaml +++ b/tasks/register_client.yaml @@ -6,7 +6,7 @@ - name: Get the hsm server cert from the hsm_server shell: > sshpass -p '{{ hsm_admin_password }}' - scp -o StrictHostKeyChecking=false -c aes256-cbc + scp -O -o StrictHostKeyChecking=false -c aes256-cbc admin@{{ hsm_hostname }}:server.pem /usr/safenet/lunaclient/bin/{{ hsm_hostname }}.pem args: @@ -50,7 +50,7 @@ block: - name: Copy the NTL client cert to the HSM shell: > - sshpass -p '{{ hsm_admin_password }}' scp -c aes256-cbc + sshpass -p '{{ hsm_admin_password }}' scp -O -c aes256-cbc /usr/safenet/lunaclient/cert/client/{{ client_cert_cn }}.pem admin@{{ hsm_hostname }}:{{ client_host }}.pem