configurations-ansible/roles/hardening-basic/tasks/modprobe.yml

10 lines
292 B
YAML

- name: Check if {{ file }} exists
stat:
path: "{{ file }}"
register: file_name
- name: Download {{ file }}
when: not file_name.stat.exists
ansible.builtin.get_url:
url: "https://git.unitoo.it/unitoo/configurations/raw/branch/master/modprobe/{{file}}"
dest: "{{ file }}"