mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-26 22:51:05 +01:00
20 lines
701 B
YAML
20 lines
701 B
YAML
---
|
|
- name: create {{path_system_maintenance_service_freezer_script}}
|
|
copy:
|
|
src: system-maintenance-service-freezer.py
|
|
dest: "{{path_system_maintenance_service_freezer_script}}"
|
|
|
|
- name: Configure system-maintenance-service for each action
|
|
loop:
|
|
- freeze
|
|
- defrost
|
|
template:
|
|
src: system-maintenance-service-freezer.service.j2
|
|
dest: "/etc/systemd/system/system-maintenance-service-{{ item }}.service"
|
|
notify: "restart system-maintenance-service-{{ item }} service"
|
|
when: run_once_systemd_freezer is not defined
|
|
|
|
- name: run the system_maintenance_service_freezer tasks once
|
|
set_fact:
|
|
run_once_systemd_freezer: true
|
|
when: run_once_systemd_freezer is not defined |