hasp_monitor.service中增加WantedBy=multi-user.target

This commit is contained in:
luwenpeng
2023-06-23 00:14:04 +08:00
parent 0cd8d9724b
commit 344417dee6
2 changed files with 10 additions and 1 deletions

View File

@@ -98,7 +98,7 @@ wire_graft_rpm_version:
libwire_graft: libwire_graft-1.5.10.60fa715
hasp_tools_rpm_version:
hasp_tools: hasp-tools-1.0.4.4c8c7f8
hasp_tools: hasp-tools-1.0.6.74991f8
tsg_os_clixon_rpm_version:
cligen: cligen-5.8.0-release

View File

@@ -31,6 +31,15 @@
state: present
disable_gpg_check: yes
- name: "replace action: replace service WantedBy from multi-user.target to workload.target"
replace:
path: "{{ item }}"
regexp: 'WantedBy=multi-user.target'
replace: 'WantedBy=workload.target'
with_items:
- /usr/lib/systemd/system/hasp_monitor.service
when: runtime_env != 'TSG-X-P0906'
- name: "Create /etc/tsg/licence/ directory if it does not exist"
file:
path: "{{ item }}"