13 lines
297 B
YAML
13 lines
297 B
YAML
- name: create vcn folder
|
|
file:
|
|
path: /etc/tinc/vcn
|
|
state: directory
|
|
mode: '0700'
|
|
|
|
- name: create keys
|
|
shell: tincd -n vcn -K4096
|
|
|
|
- name: display public key
|
|
vars:
|
|
contents: "{{ lookup('file', '/etc/tinc/vcn/rsa_key.pub') }}"
|
|
debug: msg="vcn public key is {{ contents }}"
|