rewrite congrats

pull/241/head
Jack Ivanov 7 years ago
parent 8bbccc3cb9
commit 6cc3598cc6

@ -67,23 +67,20 @@ CA_PayloadIdentifier: "{{ 700000 | random | to_uuid | upper }}"
BetweenClients_DROP: Y
congrats: |
"#----------------------------------------------------------------------#"
"# Congratulations! #"
"# Your Algo server is running. #"
"# Config files and certificates are in the ./configs/ directory. #"
"# Go to https://whoer.net/ after connecting #"
"# and ensure that all your traffic passes through the VPN. #"
"# Local DNS resolver and Proxy IP address: {{ local_service_ip }} #"
"# The p12 and SSH keys password is {{ easyrsa_p12_export_password }} #"
"# The CA key password is {{ easyrsa_CA_password }} #"
"#----------------------------------------------------------------------#"
additional_information: |
"#----------------------------------------------------------------------#"
"# Shell access: ssh -i {{ ansible_ssh_private_key_file }} {{ ansible_ssh_user }}@{{ ansible_ssh_host }} #"
"#----------------------------------------------------------------------#"
congrats:
common: |
"# Congratulations! #"
"# Your Algo server is running. #"
"# Config files and certificates are in the ./configs/ directory. #"
"# Go to https://whoer.net/ after connecting #"
"# and ensure that all your traffic passes through the VPN. #"
"# Local DNS resolver and Proxy IP address: {{ local_service_ip }} #"
p12_pass: |
"# The p12 and SSH keys password is {{ easyrsa_p12_export_password }} #"
ca_key_pass: |
"# The CA key password is {{ easyrsa_CA_password }} #"
ssh_access: |
"# Shell access: ssh -i {{ ansible_ssh_private_key_file|default(omit) }} {{ ansible_ssh_user|default(omit) }}@{{ ansible_ssh_host|default(omit) }} #"
SSH_keys:
comment: algo@ssh

@ -49,6 +49,10 @@
include: playbooks/common.yml
tags: [ 'digitalocean', 'ec2', 'gce', 'azure', 'local', 'pre' ]
- set_fact:
cloud_deployment: true
tags: ['cloud']
roles:
- { role: security, tags: [ 'security' ] }
- { role: proxy, tags: [ 'proxy', 'adblock' ] }
@ -58,12 +62,14 @@
- { role: vpn, tags: [ 'vpn' ] }
post_tasks:
- debug: msg="{{ congrats.split('\n') }}"
- debug:
msg:
- "{{ congrats.common.split('\n') }}"
- " {{ congrats.p12_pass }}"
- " {% if Store_CAKEY is defined and Store_CAKEY == 'N' %}{% else %}{{ congrats.ca_key_pass }}{% endif %}"
- " {% if cloud_deployment is defined %}{{ congrats.ssh_access }}{% endif %}"
tags: always
- debug: msg="{{ additional_information.split('\n') }}"
tags: cloud
- name: Save the CA key password
local_action: >
shell echo "{{ easyrsa_CA_password }}" > /tmp/ca_password

Loading…
Cancel
Save