[TIDY] yaml auto-format
This commit is contained in:
parent
0326fb4ff2
commit
c038908b89
6 changed files with 17 additions and 21 deletions
|
@ -12,13 +12,12 @@
|
|||
- "setup-{{ ansible_distribution }}.yml"
|
||||
- "setup-{{ (override_os_family is defined) | ternary(override_os_family,ansible_os_family) }}.yml"
|
||||
|
||||
|
||||
- name: Main - Create tinc directories
|
||||
become: yes
|
||||
file:
|
||||
path: "{{ tinc_base_dir }}/{{ tinc_vpn_id }}/hosts"
|
||||
state: directory
|
||||
mode: '0755'
|
||||
mode: "0755"
|
||||
|
||||
- name: Main - Create new host keypair
|
||||
become: yes
|
||||
|
@ -48,30 +47,27 @@
|
|||
src: "{{ role_path }}/templates/hostfile.j2"
|
||||
dest: "{{ tinc_base_dir }}/{{ tinc_vpn_id }}/hosts/{{ ansible_hostname }}"
|
||||
|
||||
|
||||
- name: Main - Create tinc-up script
|
||||
become: yes
|
||||
template:
|
||||
src: "{{ role_path }}/templates/tinc-up.j2"
|
||||
dest: "{{ tinc_base_dir }}/{{ tinc_vpn_id }}/tinc-up"
|
||||
mode: '0755'
|
||||
mode: "0755"
|
||||
|
||||
- name: Main - Create tinc-down script
|
||||
become: yes
|
||||
template:
|
||||
src: "{{ role_path }}/templates/tinc-down.j2"
|
||||
dest: "{{ tinc_base_dir }}/{{ tinc_vpn_id }}/tinc-down"
|
||||
mode: '0755'
|
||||
mode: "0755"
|
||||
|
||||
|
||||
- name: Tinc - Fetch all hostfiles
|
||||
- name: Main - Fetch all hostfiles
|
||||
become: yes
|
||||
fetch:
|
||||
src: "{{ tinc_base_dir }}/{{ tinc_vpn_id }}/hosts/{{ ansible_hostname }}"
|
||||
dest: "{{ role_path }}/files/tmp/{{ ansible_hostname }}"
|
||||
flat: yes
|
||||
|
||||
|
||||
- name: "Main - Enable {{ tinc_vpn_id }}"
|
||||
become: yes
|
||||
block:
|
||||
|
|
|
@ -7,4 +7,4 @@
|
|||
state: present
|
||||
vars:
|
||||
packages:
|
||||
- tinc
|
||||
- tinc
|
||||
|
|
|
@ -8,4 +8,4 @@
|
|||
state: present
|
||||
vars:
|
||||
packages:
|
||||
- tinc
|
||||
- tinc
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue