mirror of
https://github.com/trailofbits/algo.git
synced 2025-06-07 15:43:54 +02:00
some fixes
This commit is contained in:
parent
94b3cc630c
commit
8e0cca6b66
3 changed files with 14 additions and 2 deletions
|
@ -68,7 +68,7 @@
|
|||
*Requirement variables:*
|
||||
- server_ip
|
||||
- server_user
|
||||
- IP_subject
|
||||
- IP_subject_alt_name
|
||||
|
||||
### Deployment
|
||||
|
||||
|
|
|
@ -6,6 +6,18 @@
|
|||
ansible_python_interpreter: "/usr/bin/python2.7"
|
||||
easyrsa_p12_export_password: "{{ easyrsa_p12_export_password }}"
|
||||
cloud_provider: local
|
||||
when: server_ip != "localhost"
|
||||
|
||||
- name: Add the instance to an inventory group
|
||||
add_host:
|
||||
name: "{{ server_ip }}"
|
||||
groups: vpn-host
|
||||
ansible_ssh_user: "{{ server_user }}"
|
||||
ansible_python_interpreter: "/usr/bin/python2.7"
|
||||
ansible_connection: local
|
||||
easyrsa_p12_export_password: "{{ easyrsa_p12_export_password }}"
|
||||
cloud_provider: local
|
||||
when: server_ip == "localhost"
|
||||
|
||||
- name: Waiting for SSH to become available
|
||||
local_action: "wait_for port=22 host={{ server_ip }} timeout=320"
|
||||
|
|
|
@ -96,7 +96,7 @@
|
|||
|
||||
- name: Build the server pair
|
||||
shell: >
|
||||
./easyrsa --subject-alt-name='DNS:{{ IP_subject_alt_name }},IP:{{ IP_subject_alt_name }}' build-server-full {{ IP_subject_alt_name }} nopass&&
|
||||
./easyrsa --subject-alt-name='DNS:{{ IP_subject_alt_name }},IP:{{ IP_subject_alt_name }}' build-server-full {{ IP_subject_alt_name }} nopass &&
|
||||
touch '{{ easyrsa_dir }}/easyrsa3/pki/server_initialized'
|
||||
args:
|
||||
chdir: '{{ easyrsa_dir }}/easyrsa3/'
|
||||
|
|
Loading…
Add table
Reference in a new issue