mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Renamed cymais to infinito and did some other optimations and logout implementations
This commit is contained in:
@@ -1,25 +1,25 @@
|
||||
- name: Find all cymais.service units
|
||||
- name: Find all infinito.service units
|
||||
find:
|
||||
paths: /etc/systemd/system
|
||||
patterns: '*.cymais.service'
|
||||
register: cymais_services
|
||||
patterns: '*.infinito.service'
|
||||
register: infinito_services
|
||||
|
||||
- name: Disable and stop each cymais service
|
||||
- name: Disable and stop each infinito service
|
||||
become: true
|
||||
systemd:
|
||||
name: "{{ item.path | basename }}"
|
||||
enabled: no
|
||||
state: stopped
|
||||
loop: "{{ cymais_services.files }}"
|
||||
loop: "{{ infinito_services.files }}"
|
||||
loop_control:
|
||||
label: "{{ item.path | basename }}"
|
||||
|
||||
- name: Remove all cymais.service files
|
||||
- name: Remove all infinito.service files
|
||||
become: true
|
||||
file:
|
||||
path: "{{ item.path }}"
|
||||
state: absent
|
||||
loop: "{{ cymais_services.files }}"
|
||||
loop: "{{ infinito_services.files }}"
|
||||
loop_control:
|
||||
label: "{{ item.path | basename }}"
|
||||
|
||||
|
Reference in New Issue
Block a user