mirror of
https://github.com/trailofbits/algo.git
synced 2025-07-21 13:03:02 +02:00
rewrite congrats
This commit is contained in:
parent
8bbccc3cb9
commit
6cc3598cc6
2 changed files with 24 additions and 21 deletions
31
config.cfg
31
config.cfg
|
@ -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
|
||||
|
|
14
deploy.yml
14
deploy.yml
|
@ -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…
Add table
Reference in a new issue