Ansible_PUBLIC/roles/vcn/tasks/main.yml

14 lines
297 B
YAML
Raw Normal View History

2020-03-13 20:05:35 +01:00
- 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 }}"