+
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions changelogs/fragments/systemd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
bugfixes:
- "oraswdb_install: Configure systemd only for Single Instance without GI/Restart (oravirt#431)"
12 changes: 10 additions & 2 deletions roles/oraswdb_install/tasks/systemd.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
# Configure systemd only for Single-Instance without GI/Restart
# We need a minimum of 1 entry in db_homes_installed with state=present
- name: install_home_db | Configure oracle-rdbms auto-startup service (systemd.d)
ansible.builtin.template:
src: oracle-rdbms-service.j2
Expand All @@ -9,11 +11,17 @@
become_user: root
notify:
- systemd register and reload
with_items: "{{ db_homes_installed }}"
with_items:
- "{{ db_homes_installed | selectattr('state', 'equalto', 'present') | list | first | default([]) }}"
loop_control:
label: >-
{{ item.home | default('') }}
state: {{ item.state | default('') }}
when:
- autostartup_service
- oracle_install_option_gi | default('') | length == 0
- db_homes_installed | length > 0
- hostinitdaemon == "systemd"
- item.state|lower == 'present'
tags:
- autostartup_service
- seclimit # Update template when ulimits have been chagned as well.
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载