mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-30 23:38:13 +02:00
Renamed cymais to infinito and did some other optimations and logout implementations
This commit is contained in:
@@ -3,16 +3,16 @@
|
||||
include_tasks: reset.yml
|
||||
when: mode_reset | bool and run_once_sys_timer is not defined
|
||||
|
||||
- name: create {{service_name}}.cymais.timer
|
||||
- name: create {{service_name}}.infinito.timer
|
||||
template:
|
||||
src: dummy.timer.j2
|
||||
dest: "/etc/systemd/system/{{service_name}}.cymais.timer"
|
||||
dest: "/etc/systemd/system/{{service_name}}.infinito.timer"
|
||||
register: dummy_timer
|
||||
|
||||
- name: "restart timer"
|
||||
systemd:
|
||||
daemon_reload: yes
|
||||
name: "{{service_name}}.cymais.timer"
|
||||
name: "{{service_name}}.infinito.timer"
|
||||
state: restarted
|
||||
enabled: yes
|
||||
when: dummy_timer.changed or activate_all_timers | bool
|
||||
|
@@ -1,23 +1,23 @@
|
||||
- name: Find all cymais.timer units
|
||||
- name: Find all infinito.timer units
|
||||
find:
|
||||
paths: /etc/systemd/system
|
||||
patterns: '*.cymais.timer'
|
||||
register: cymais_timers
|
||||
patterns: '*.infinito.timer'
|
||||
register: infinito_timers
|
||||
|
||||
- name: Disable and stop each cymais timer
|
||||
- name: Disable and stop each infinito timer
|
||||
systemd:
|
||||
name: "{{ item.path | basename }}"
|
||||
enabled: no
|
||||
state: stopped
|
||||
loop: "{{ cymais_timers.files }}"
|
||||
loop: "{{ infinito_timers.files }}"
|
||||
loop_control:
|
||||
label: "{{ item.path | basename }}"
|
||||
|
||||
- name: Remove all cymais.timer files
|
||||
- name: Remove all infinito.timer files
|
||||
file:
|
||||
path: "{{ item.path }}"
|
||||
state: absent
|
||||
loop: "{{ cymais_timers.files }}"
|
||||
loop: "{{ infinito_timers.files }}"
|
||||
loop_control:
|
||||
label: "{{ item.path | basename }}"
|
||||
|
||||
|
Reference in New Issue
Block a user