WireGuard: Generate QR codes (#1129)

* WireGuard: Generate QR codes

* Update client-android.md
pull/1141/head
Jack Ivanov 6 years ago committed by Dan Guido
parent dbd68aa97d
commit 1442586682

@ -3,5 +3,4 @@
## Installation via profiles
1. [Install the WireGuard VPN Client](https://play.google.com/store/apps/details?id=com.wireguard.android).
2. Copy `wireguard/{username}.conf` to your phone's internal storage.
3. Open the WireGuard app and add a connection using your AlgoVPN configuration file.
2. Open QR code `configs/<ip_address>/wireguard/<username>.png` and scan it in the WireGuard app

@ -10,3 +10,4 @@ pyopenssl
jinja2==2.8
shade
pycrypto
segno

@ -42,6 +42,20 @@
delegate_to: localhost
become: false
- name: Generate QR codes
shell: >
umask 077;
which segno &&
segno --scale=5 --output={{ item.1 }}.png \
"{{ lookup('template', 'client.conf.j2') }}" || true
changed_when: false
with_indexed_items: "{{ users }}"
delegate_to: localhost
become: false
args:
chdir: "{{ wireguard_config_path }}"
executable: bash
- name: WireGuard enabled and started
service:
name: "{{ service_name }}"

Loading…
Cancel
Save