mirror of
https://github.com/trailofbits/algo.git
synced 2025-04-11 11:47:08 +02:00
38 lines
1.1 KiB
YAML
38 lines
1.1 KiB
YAML
---
|
|
- name: Display the invocation environment
|
|
local_action:
|
|
module: shell
|
|
./algo-showenv.sh \
|
|
'algo_provider "{{ algo_provider }}"' \
|
|
'algo_ondemand_cellular "{{ algo_ondemand_cellular }}"' \
|
|
'algo_ondemand_wifi "{{ algo_ondemand_wifi }}"' \
|
|
'algo_ondemand_wifi_exclude "{{ algo_ondemand_wifi_exclude }}"' \
|
|
'algo_local_dns "{{ algo_local_dns }}"' \
|
|
'algo_ssh_tunneling "{{ algo_ssh_tunneling }}"' \
|
|
'algo_windows "{{ algo_windows }}"' \
|
|
'wireguard_enabled "{{ wireguard_enabled }}"' \
|
|
'dns_encryption "{{ dns_encryption }}"' \
|
|
> /dev/tty
|
|
|
|
- name: Install the requirements
|
|
local_action:
|
|
module: pip
|
|
state: latest
|
|
name:
|
|
- pyOpenSSL
|
|
- jinja2==2.8
|
|
- segno
|
|
tags: always
|
|
|
|
- name: Generate the SSH private key
|
|
openssl_privatekey:
|
|
path: "{{ SSH_keys.private }}"
|
|
size: 2048
|
|
mode: "0600"
|
|
type: RSA
|
|
|
|
- name: Generate the SSH public key
|
|
openssl_publickey:
|
|
path: "{{ SSH_keys.public }}"
|
|
privatekey_path: "{{ SSH_keys.private }}"
|
|
format: OpenSSH
|