Installing on a pristine Centos 8, I had to manually install the correct version of ansible and postgres 12, then change the service name from postgresql-12 to postgresql.
There are scripts looking for init.d/postgresql. Since Centos 8 implements SystemCtl , there should be no init.d's (and there are none)
2022-06-12 15:46:19,761-0400 INFO otopi.ovirt_engine_setup.engine_common.postgres postgres._initDbIfRequired:232 Initializing PostgreSQL
2022-06-12 15:46:19,761-0400 DEBUG otopi.plugins.ovirt_engine_setup.ovirt_engine.provisioning.postgres plugin.executeRaw:813 execute: ('/etc/init.d/postgresql', 'initdb'), executable='None', cwd='None', env=None
2022-06-12 15:46:19,767-0400 DEBUG otopi.plugins.ovirt_engine_setup.ovirt_engine.provisioning.postgres plugin.executeRaw:869 execute-result: ('/etc/init.d/postgresql', 'initdb'), exception
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/otopi/plugin.py", line 856, in executeRaw
preexec_fn=preexec_fn,
File "/usr/lib64/python3.6/subprocess.py", line 729, in __init__
restore_signals, start_new_session)
File "/usr/lib64/python3.6/subprocess.py", line 1364, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: '/etc/init.d/postgresql': '/etc/init.d/postgresql'
2022-06-12 15:46:19,789-0400 DEBUG otopi.context context._executeMethod:145 method exception
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/otopi/context.py", line 132, in _executeMethod
method['method']()
File "/usr/share/ovirt-engine/setup/bin/../plugins/ovirt-engine-setup/ovirt-engine/provisioning/postgres.py", line 192, in _misc
self._provisioning.provision()
File "/usr/share/ovirt-engine/setup/ovirt_engine_setup/engine_common/postgres.py", line 490, in provision
self._initDbIfRequired()
File "/usr/share/ovirt-engine/setup/ovirt_engine_setup/engine_common/postgres.py", line 257, in _initDbIfRequired
'initdb',
File "/usr/lib/python3.6/site-packages/otopi/plugin.py", line 912, in execute
**kwargs
File "/usr/lib/python3.6/site-packages/otopi/plugin.py", line 856, in executeRaw
preexec_fn=preexec_fn,
File "/usr/lib64/python3.6/subprocess.py", line 729, in __init__
restore_signals, start_new_session)
File "/usr/lib64/python3.6/subprocess.py", line 1364, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: '/etc/init.d/postgresql': '/etc/init.d/postgresql'
2022-06-12 15:46:19,790-0400 ERROR otopi.context context._executeMethod:154 Failed to execute stage 'Misc configuration': [Errno 2] No such file or directory: '/etc/init.d/postgresql': '/etc/init.d/postgresql'
2022-06-12 15:46:19,790-0400 DEBUG otopi.transaction transaction.abort:124 aborting 'DNF Transaction'
2