Skip to content

Commit cf5666c

Browse files
committed
oraswdb-install: make init/systemd much more robust
It should work against unsupport OS as well.
1 parent ce17ca0 commit cf5666c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

roles/oraswdb-install/defaults/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
autostartup_service: false # automatic startup/stop databases service
4242
hostinitdaemon: "{% if ansible_os_family == 'RedHat' and ansible_distribution_major_version | int >= 7 %}systemd
4343
{%- elif ansible_os_family == 'Suse' and ansible_distribution_major_version | int >= 12 %}systemd
44-
{%- else %}init{% endif %}"
44+
{%- else %}{% if ansible_service_mgr is defined %}{{ ansible_service_mgr }}{% else %}init{% endif %}{% endif %}"
4545

4646
oracle_directories:
4747
- {name: "{{ oracle_stage }}", owner: "{{ oracle_user }}", group: "{{ oracle_group }}", mode: 775 }

0 commit comments

Comments
 (0)