[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:
Jannik Beyerstedt 2022-02-13 20:42:31 +01:00
parent 5553f66031
commit 120072e0d5
2 changed files with 3 additions and 3 deletions

View file

@ -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