Files
computer-playbook/roles/sys-lock/tasks/main.yml

12 lines
283 B
YAML

---
- name: create {{ PATH_SYSTEM_LOCK_SCRIPT }}
copy:
src: sys-lock.py
dest: "{{ PATH_SYSTEM_LOCK_SCRIPT }}"
when: run_once_sys_lock is not defined
- name: execute the script copying once
set_fact:
run_once_sys_lock: true
when: run_once_sys_lock is not defined