mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-02 21:41:07 +02:00
27 lines
633 B
YAML
27 lines
633 B
YAML
- name: Find all infinito.timer units
|
|
find:
|
|
paths: /etc/systemd/system
|
|
patterns: '*.infinito.timer'
|
|
register: infinito_timers
|
|
|
|
- name: Disable and stop each infinito timer
|
|
systemd:
|
|
name: "{{ item.path | basename }}"
|
|
enabled: no
|
|
state: stopped
|
|
loop: "{{ infinito_timers.files }}"
|
|
loop_control:
|
|
label: "{{ item.path | basename }}"
|
|
|
|
- name: Remove all infinito.timer files
|
|
file:
|
|
path: "{{ item.path }}"
|
|
state: absent
|
|
loop: "{{ infinito_timers.files }}"
|
|
loop_control:
|
|
label: "{{ item.path | basename }}"
|
|
|
|
- name: Reload systemd daemon
|
|
command: systemctl daemon-reload
|
|
become: true
|