[TIDY] yaml auto-format
This commit is contained in:
parent
0326fb4ff2
commit
c038908b89
|
@ -1,2 +1,2 @@
|
|||
---
|
||||
# handlers file for tinc
|
||||
# handlers file for tinc
|
||||
|
|
|
@ -7,17 +7,19 @@ galaxy_info:
|
|||
min_ansible_version: 2.4
|
||||
|
||||
platforms:
|
||||
- name: Debian
|
||||
versions:
|
||||
- all
|
||||
- name: Darwin
|
||||
versions:
|
||||
- all
|
||||
- name: Debian
|
||||
versions:
|
||||
- all
|
||||
- name: Darwin
|
||||
versions:
|
||||
- all
|
||||
|
||||
galaxy_tags: []
|
||||
galaxy_tags:
|
||||
[]
|
||||
# List tags for your role here, one per line.
|
||||
# Be sure to remove the '[]' above, if you add tags to this list.
|
||||
|
||||
dependencies: []
|
||||
dependencies:
|
||||
[]
|
||||
# List your role dependencies here, one per line.
|
||||
# Be sure to remove the '[]' above, if you add tags to this list.
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
---
|
||||
# vars file for tinc
|
Loading…
Reference in a new issue