[TIDY] move when statements
Having the when condition of a task at the top instead of bottom is easiert to read.
This commit is contained in:
parent
5553f66031
commit
120072e0d5
2 changed files with 3 additions and 3 deletions
|
|
@ -2,9 +2,9 @@
|
|||
# Tinc VPN Hostfile Distribution
|
||||
|
||||
- name: Distribute - Set different base dir for macOS
|
||||
when: (override_os_family is defined) | ternary(override_os_family,ansible_os_family) == "Darwin"
|
||||
ansible.builtin.set_fact:
|
||||
tinc_base_dir: /usr/local/etc/tinc
|
||||
when: (override_os_family is defined) | ternary(override_os_family,ansible_os_family) == "Darwin"
|
||||
|
||||
- name: Distribute - Copy hostfiles to targets
|
||||
become: yes
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue