mirror of
https://github.com/trailofbits/algo.git
synced 2025-06-05 06:33:56 +02:00
Update-users fixed #52
This commit is contained in:
parent
16627783f5
commit
cd706dbf82
1 changed files with 13 additions and 3 deletions
14
users.yml
14
users.yml
|
@ -7,11 +7,12 @@
|
|||
vars_prompt:
|
||||
|
||||
- name: "server_ip"
|
||||
prompt: "\nEnter IP address of your server:\n"
|
||||
prompt: "Enter IP address of your server: (use localhost for local installation)\n"
|
||||
default: localhost
|
||||
private: no
|
||||
|
||||
- name: "server_user"
|
||||
prompt: "What user should we use to login on the server?:\n"
|
||||
prompt: "What user should we use to login on the server? (ignore if you're deploying to localhost):\n"
|
||||
default: "root"
|
||||
private: no
|
||||
|
||||
|
@ -20,6 +21,10 @@
|
|||
default: "vpn"
|
||||
private: yes
|
||||
|
||||
- name: "IP_subject"
|
||||
prompt: "Enter public IP address of your server: (IMPORTANT! This IP is used to verify the certificate)\n"
|
||||
private: no
|
||||
|
||||
tasks:
|
||||
- name: Add the server to the vpn-host group
|
||||
add_host:
|
||||
|
@ -28,6 +33,7 @@
|
|||
ansible_ssh_user: "{{ server_user }}"
|
||||
ansible_python_interpreter: "/usr/bin/python2.7"
|
||||
easyrsa_p12_export_password: "{{ easyrsa_p12_export_password }}"
|
||||
IP_subject: "{{ IP_subject }}"
|
||||
|
||||
- name: Wait for SSH to become available
|
||||
local_action: "wait_for port=22 host={{ server_ip }} timeout=320"
|
||||
|
@ -40,6 +46,10 @@
|
|||
vars_files:
|
||||
- config.cfg
|
||||
|
||||
pre_tasks:
|
||||
- set_fact:
|
||||
IP_subject_alt_name: "{{ IP_subject }}"
|
||||
|
||||
tasks:
|
||||
- name: Build the client's pair
|
||||
shell: >
|
||||
|
|
Loading…
Add table
Reference in a new issue