move easyrsa_p12_export_password to pre_tasks

This commit is contained in:
Jack Ivanov 2017-01-13 00:14:45 +03:00
parent b9ad5b7071
commit ad69d571e9

View file

@ -38,6 +38,7 @@
pre_tasks: pre_tasks:
- set_fact: - set_fact:
IP_subject_alt_name: "{{ IP_subject }}" IP_subject_alt_name: "{{ IP_subject }}"
easyrsa_p12_export_password: "{{ (ansible_date_time.iso8601_basic|sha1|to_uuid).split('-')[0] }}"
roles: roles:
- { role: ssh_tunneling, tags: [ 'ssh_tunneling' ], when: ssh_tunneling_enabled is defined and ssh_tunneling_enabled == "y" } - { role: ssh_tunneling, tags: [ 'ssh_tunneling' ], when: ssh_tunneling_enabled is defined and ssh_tunneling_enabled == "y" }
@ -47,9 +48,6 @@
- name: Gather Facts - name: Gather Facts
setup: setup:
- set_fact:
easyrsa_p12_export_password: "{{ (ansible_date_time.iso8601_basic|sha1|to_uuid).split('-')[0] }}"
- name: Cheking the signature algorithm - name: Cheking the signature algorithm
local_action: > local_action: >
shell openssl x509 -text -in certs/82.196.1.93.crt | grep 'Signature Algorithm' | head -n1 shell openssl x509 -text -in certs/82.196.1.93.crt | grep 'Signature Algorithm' | head -n1