mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-09-09 03:37:37 +02:00
THE HUGE REFACTORING CALENDER WEEK 33; Optimized Matrix and during this updated variables, and implemented better reset and cleanup mode handling, also solved some initial setup bugs
This commit is contained in:
12
roles/sys-systemctl/tasks/01_reset.yml
Normal file
12
roles/sys-systemctl/tasks/01_reset.yml
Normal file
@@ -0,0 +1,12 @@
|
||||
- name: "pkgmgr install '{{ SYS_SERVICE_SUFFIX }}'"
|
||||
include_role:
|
||||
name: pkgmgr-install
|
||||
vars:
|
||||
package_name: "{{ UNIT_SUFFIX_REMOVER_PACKAGE }}"
|
||||
|
||||
- name: Remove all '{{ SYS_SERVICE_SUFFIX }}' files with '{{ UNIT_SUFFIX_REMOVER_PACKAGE }}'
|
||||
command: "{{ UNIT_SUFFIX_REMOVER_PACKAGE }} -s '{{ SOFTWARE_NAME }}'"
|
||||
|
||||
- name: Reload systemd daemon
|
||||
command: systemctl daemon-reload
|
||||
become: true
|
6
roles/sys-systemctl/tasks/main.yml
Normal file
6
roles/sys-systemctl/tasks/main.yml
Normal file
@@ -0,0 +1,6 @@
|
||||
- block:
|
||||
- name: "reset (if enabled)"
|
||||
include_tasks: 01_reset.yml
|
||||
when: MODE_RESET | bool
|
||||
- include_tasks: utils/run_once.yml
|
||||
when: run_once_sys_systemctl is not defined
|
Reference in New Issue
Block a user