make Ansible linter happy / changelog to separate file / new versioning scheme

unmanaged-hosts
githubixx 6 years ago
parent 0b08c95a2a
commit 7605a76a03

@ -55,10 +55,10 @@
wg-generate-keys
- name: Register if private key already exists
local_action:
module: stat
stat:
path: "{{ private_key_file_path }}"
register: private_key_file_stat
delegate_to: localhost
tags:
- wg-generate-keys
@ -67,21 +67,21 @@
register: wg_private_key_result
with_inventory_hostnames:
- vpn
when: private_key_file_stat.stat.exists == False
when: not private_key_file_stat.stat.exists
tags:
- wg-generate-keys
- name: Set private key fact
set_fact:
wg_private_key: "{{ wg_private_key_result.results[0].stdout }}"
when: private_key_file_stat.stat.exists == False
when: not private_key_file_stat.stat.exists
tags:
- wg-generate-keys
- name: Generate WireGuard public key
shell: "echo '{{ wg_private_key }}' | wg pubkey"
register: wg_public_key_result
when: private_key_file_stat.stat.exists == False
when: not private_key_file_stat.stat.exists
with_inventory_hostnames:
- vpn
tags:
@ -90,31 +90,31 @@
- name: Set public key fact
set_fact:
wg_public_key: "{{ wg_public_key_result.results[0].stdout }}"
when: private_key_file_stat.stat.exists == False
when: not private_key_file_stat.stat.exists
tags:
- wg-generate-keys
- name: Store hosts private key locally
local_action:
module: template
template:
src: "wg-privatekey.j2"
dest: "{{ private_key_file_path }}"
owner: "{{ wireguard_cert_owner }}"
group: "{{ wireguard_cert_group }}"
mode: 0644
when: private_key_file_stat.stat.exists == False
when: not private_key_file_stat.stat.exists
delegate_to: localhost
tags:
- wg-generate-keys
- name: Store hosts public key locally
local_action:
module: template
template:
src: "wg-publickey.j2"
dest: "{{ public_key_file_path }}"
owner: "{{ wireguard_cert_owner }}"
group: "{{ wireguard_cert_group }}"
mode: 0644
when: private_key_file_stat.stat.exists == False
when: not private_key_file_stat.stat.exists
delegate_to: localhost
tags:
- wg-generate-keys

Loading…
Cancel
Save