mirror of
https://github.com/phfroidmont/self-hosting.git
synced 2025-12-25 05:36:59 +01:00
Cleanup fetched tinc certificates
This commit is contained in:
parent
6ad25c79f6
commit
30b83f9067
1 changed files with 24 additions and 14 deletions
|
|
@ -93,13 +93,13 @@
|
||||||
notify:
|
notify:
|
||||||
- restart tinc
|
- restart tinc
|
||||||
|
|
||||||
|
- block:
|
||||||
- name: Fetch tinc hosts file after key creation
|
- name: Fetch tinc hosts file after key creation
|
||||||
fetch:
|
fetch:
|
||||||
src: /etc/tinc/{{ netname }}/hosts/{{ inventory_hostname }}
|
src: /etc/tinc/{{ netname }}/hosts/{{ inventory_hostname }}
|
||||||
dest: fetch/{{ inventory_hostname }}
|
dest: fetch/{{ inventory_hostname }}
|
||||||
flat: yes
|
flat: yes
|
||||||
notify:
|
changed_when: false
|
||||||
- reload tinc
|
|
||||||
|
|
||||||
- name: Sync the fetched tinc hosts files on each host
|
- name: Sync the fetched tinc hosts files on each host
|
||||||
synchronize:
|
synchronize:
|
||||||
|
|
@ -109,6 +109,16 @@
|
||||||
notify:
|
notify:
|
||||||
- reload tinc
|
- reload tinc
|
||||||
|
|
||||||
|
always:
|
||||||
|
- name: Remove fetched files
|
||||||
|
local_action:
|
||||||
|
module: file
|
||||||
|
path: fetch
|
||||||
|
state: absent
|
||||||
|
run_once: True
|
||||||
|
changed_when: false
|
||||||
|
|
||||||
|
|
||||||
- meta: flush_handlers
|
- meta: flush_handlers
|
||||||
|
|
||||||
- name: Start tinc on boot
|
- name: Start tinc on boot
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue