mirror of
https://github.com/trailofbits/algo.git
synced 2025-06-06 15:13: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:
|
vars_prompt:
|
||||||
|
|
||||||
- name: "server_ip"
|
- 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
|
private: no
|
||||||
|
|
||||||
- name: "server_user"
|
- 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"
|
default: "root"
|
||||||
private: no
|
private: no
|
||||||
|
|
||||||
|
@ -20,6 +21,10 @@
|
||||||
default: "vpn"
|
default: "vpn"
|
||||||
private: yes
|
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:
|
tasks:
|
||||||
- name: Add the server to the vpn-host group
|
- name: Add the server to the vpn-host group
|
||||||
add_host:
|
add_host:
|
||||||
|
@ -28,6 +33,7 @@
|
||||||
ansible_ssh_user: "{{ server_user }}"
|
ansible_ssh_user: "{{ server_user }}"
|
||||||
ansible_python_interpreter: "/usr/bin/python2.7"
|
ansible_python_interpreter: "/usr/bin/python2.7"
|
||||||
easyrsa_p12_export_password: "{{ easyrsa_p12_export_password }}"
|
easyrsa_p12_export_password: "{{ easyrsa_p12_export_password }}"
|
||||||
|
IP_subject: "{{ IP_subject }}"
|
||||||
|
|
||||||
- name: Wait for SSH to become available
|
- name: Wait for SSH to become available
|
||||||
local_action: "wait_for port=22 host={{ server_ip }} timeout=320"
|
local_action: "wait_for port=22 host={{ server_ip }} timeout=320"
|
||||||
|
@ -40,6 +46,10 @@
|
||||||
vars_files:
|
vars_files:
|
||||||
- config.cfg
|
- config.cfg
|
||||||
|
|
||||||
|
pre_tasks:
|
||||||
|
- set_fact:
|
||||||
|
IP_subject_alt_name: "{{ IP_subject }}"
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: Build the client's pair
|
- name: Build the client's pair
|
||||||
shell: >
|
shell: >
|
||||||
|
|
Loading…
Add table
Reference in a new issue