mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-13 00:11:05 +01:00
20 lines
637 B
YAML
20 lines
637 B
YAML
---
|
|
- name: create {{freezer_script}}
|
|
copy:
|
|
src: system-maintenance-service-freezer.py
|
|
dest: "{{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 |