mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-31 15:48:57 +02:00
Refactor systemctl services and categories due to alarm bugs
This commit restructures systemctl service definitions and category mappings. Motivation: Alarm-related bugs revealed inconsistencies in service and role handling. Preparation step: lays the groundwork for fixing the alarm issues by aligning categories, roles, and service templates.
This commit is contained in:
19
roles/sys-ctl-bkp-docker-2-loc/tasks/02_pkgmgr_routines.yml
Normal file
19
roles/sys-ctl-bkp-docker-2-loc/tasks/02_pkgmgr_routines.yml
Normal file
@@ -0,0 +1,19 @@
|
||||
- block:
|
||||
- name: "pkgmgr install {{ BKP_DOCKER_2_LOC_PKG }}"
|
||||
include_role:
|
||||
name: pkgmgr-install
|
||||
vars:
|
||||
package_name: "{{ BKP_DOCKER_2_LOC_PKG }}"
|
||||
|
||||
- name: "Retrieve {{ BKP_DOCKER_2_LOC_PKG }} path from pkgmgr"
|
||||
command: "pkgmgr path {{ BKP_DOCKER_2_LOC_PKG }}"
|
||||
register: pkgmgr_output
|
||||
changed_when: false
|
||||
|
||||
- name: Set fact for backup_docker_to_local_folder
|
||||
set_fact:
|
||||
backup_docker_to_local_folder: "{{ pkgmgr_output.stdout }}/"
|
||||
changed_when: false
|
||||
when: backup_docker_to_local_folder is not defined
|
||||
vars:
|
||||
BKP_DOCKER_2_LOC_PKG: backup-docker-to-local
|
Reference in New Issue
Block a user