From ad69d571e9a4122e5c27eedda7b816b3e257501f Mon Sep 17 00:00:00 2001 From: Jack Ivanov Date: Fri, 13 Jan 2017 00:14:45 +0300 Subject: [PATCH] move easyrsa_p12_export_password to pre_tasks --- users.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/users.yml b/users.yml index 689e935d..e68e20ca 100644 --- a/users.yml +++ b/users.yml @@ -38,6 +38,7 @@ pre_tasks: - set_fact: IP_subject_alt_name: "{{ IP_subject }}" + easyrsa_p12_export_password: "{{ (ansible_date_time.iso8601_basic|sha1|to_uuid).split('-')[0] }}" roles: - { role: ssh_tunneling, tags: [ 'ssh_tunneling' ], when: ssh_tunneling_enabled is defined and ssh_tunneling_enabled == "y" } @@ -47,9 +48,6 @@ - name: Gather Facts setup: - - set_fact: - easyrsa_p12_export_password: "{{ (ansible_date_time.iso8601_basic|sha1|to_uuid).split('-')[0] }}" - - name: Cheking the signature algorithm local_action: > shell openssl x509 -text -in certs/82.196.1.93.crt | grep 'Signature Algorithm' | head -n1