[TIDY] yaml auto-format

This commit is contained in:
Jannik Beyerstedt 2019-11-12 21:34:32 +01:00
parent 0326fb4ff2
commit c038908b89
6 changed files with 17 additions and 21 deletions

View File

@ -1,2 +1,2 @@
--- ---
# handlers file for tinc # handlers file for tinc

View File

@ -7,17 +7,19 @@ galaxy_info:
min_ansible_version: 2.4 min_ansible_version: 2.4
platforms: platforms:
- name: Debian - name: Debian
versions: versions:
- all - all
- name: Darwin - name: Darwin
versions: versions:
- all - all
galaxy_tags: [] galaxy_tags:
[]
# List tags for your role here, one per line. # List tags for your role here, one per line.
# Be sure to remove the '[]' above, if you add tags to this list. # Be sure to remove the '[]' above, if you add tags to this list.
dependencies: [] dependencies:
[]
# List your role dependencies here, one per line. # List your role dependencies here, one per line.
# Be sure to remove the '[]' above, if you add tags to this list. # Be sure to remove the '[]' above, if you add tags to this list.

View File

@ -12,13 +12,12 @@
- "setup-{{ ansible_distribution }}.yml" - "setup-{{ ansible_distribution }}.yml"
- "setup-{{ (override_os_family is defined) | ternary(override_os_family,ansible_os_family) }}.yml" - "setup-{{ (override_os_family is defined) | ternary(override_os_family,ansible_os_family) }}.yml"
- name: Main - Create tinc directories - name: Main - Create tinc directories
become: yes become: yes
file: file:
path: "{{ tinc_base_dir }}/{{ tinc_vpn_id }}/hosts" path: "{{ tinc_base_dir }}/{{ tinc_vpn_id }}/hosts"
state: directory state: directory
mode: '0755' mode: "0755"
- name: Main - Create new host keypair - name: Main - Create new host keypair
become: yes become: yes
@ -48,30 +47,27 @@
src: "{{ role_path }}/templates/hostfile.j2" src: "{{ role_path }}/templates/hostfile.j2"
dest: "{{ tinc_base_dir }}/{{ tinc_vpn_id }}/hosts/{{ ansible_hostname }}" dest: "{{ tinc_base_dir }}/{{ tinc_vpn_id }}/hosts/{{ ansible_hostname }}"
- name: Main - Create tinc-up script - name: Main - Create tinc-up script
become: yes become: yes
template: template:
src: "{{ role_path }}/templates/tinc-up.j2" src: "{{ role_path }}/templates/tinc-up.j2"
dest: "{{ tinc_base_dir }}/{{ tinc_vpn_id }}/tinc-up" dest: "{{ tinc_base_dir }}/{{ tinc_vpn_id }}/tinc-up"
mode: '0755' mode: "0755"
- name: Main - Create tinc-down script - name: Main - Create tinc-down script
become: yes become: yes
template: template:
src: "{{ role_path }}/templates/tinc-down.j2" src: "{{ role_path }}/templates/tinc-down.j2"
dest: "{{ tinc_base_dir }}/{{ tinc_vpn_id }}/tinc-down" dest: "{{ tinc_base_dir }}/{{ tinc_vpn_id }}/tinc-down"
mode: '0755' mode: "0755"
- name: Main - Fetch all hostfiles
- name: Tinc - Fetch all hostfiles
become: yes become: yes
fetch: fetch:
src: "{{ tinc_base_dir }}/{{ tinc_vpn_id }}/hosts/{{ ansible_hostname }}" src: "{{ tinc_base_dir }}/{{ tinc_vpn_id }}/hosts/{{ ansible_hostname }}"
dest: "{{ role_path }}/files/tmp/{{ ansible_hostname }}" dest: "{{ role_path }}/files/tmp/{{ ansible_hostname }}"
flat: yes flat: yes
- name: "Main - Enable {{ tinc_vpn_id }}" - name: "Main - Enable {{ tinc_vpn_id }}"
become: yes become: yes
block: block:

View File

@ -7,4 +7,4 @@
state: present state: present
vars: vars:
packages: packages:
- tinc - tinc

View File

@ -8,4 +8,4 @@
state: present state: present
vars: vars:
packages: packages:
- tinc - tinc

View File

@ -1,2 +0,0 @@
---
# vars file for tinc