[TIDY] Update to ansible 4 module names

This commit is contained in:
Jannik Beyerstedt 2021-08-28 16:48:58 +02:00
parent be3d627bdb
commit 5553f66031
5 changed files with 18 additions and 18 deletions

View file

@ -2,12 +2,12 @@
# Tinc VPN Hostfile Distribution
- name: Distribute - Set different base dir for macOS
set_fact:
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
copy:
ansible.builtin.copy:
src: "{{ role_path }}/files/tmp/"
dest: "{{ tinc_base_dir }}/{{ tinc_vpn_id }}/hosts/"