hasp_monitor.service中增加WantedBy=multi-user.target
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 }}"
|
||||
|
||||
Reference in New Issue
Block a user