Installation Ansible Automation Platform 2.5 nginx error

I’m installing on single RHEL 9.4 VM
Here is my inventory
[automationcontroller]
myserver.AAP ansible_connection=local ansible_host=192.168.1.18

[automationgateway]
gateway.AAP ansible_connection=local ansible_host=192.168.1.18

[database]
database ansible_connection=local ansible_host=192.168.1.18

[all:vars]
admin_password=‘admin’
redis_mode=standalone
pg_host=‘localhost’
pg_port=5432
pg_database=‘awx’
pg_username=‘awx’
pg_password=‘redhat’
#pg_sslmode=‘prefer’

registry_url=‘registry.redhat.io
registry_username=‘’
registry_password=‘’

Paramètres spécifiques de l’automation gateway

automationgateway_admin_password=‘admin’
automationgateway_pg_host=‘localhost’
automationgateway_pg_port=5432
automationgateway_pg_database=‘automationgateway’
automationgateway_pg_username=‘automationgateway’
automationgateway_pg_password=‘redhat’
#automationgateway_pg_sslmode=‘prefer’ i got this error when i run setup.sh error connecting to controller API . terminal shows : TASK [ansible.automation_platform_installer.automationgateway : Flush handlers] ***

RUNNING HANDLER [ansible.automation_platform_installer.automationgateway : reload nginx] ***
fatal: [gateway.AAP]: FAILED! => {“changed”: false, “msg”: “Unable to start service nginx.service: Job for nginx.service failed because the control process exited with error code.\nSee "systemctl status nginx.service" and "journalctl -xeu nginx.service" for details.\n”}

TASK [Run repo_management (teardown)] ******************************************

TASK [ansible.automation_platform_installer.repo_management : Disable Automation Platform repository] ***
skipping: [gateway.AAP] => {“changed”: false, “false_condition”: “extra_repos is defined”, “skip_reason”: “Conditional result was False”}

TASK [ansible.automation_platform_installer.repo_management : Disable Automation Platform RHSM repository] ***
changed: [gateway.AAP] => {“changed”: true, “cmd”: [“subscription-manager”, “repos”, “–disable”, “ansible-automation-platform-2.5-for-rhel-9-x86_64-rpms”], “delta”: “0:00:36.133129”, “end”: “2025-03-31 11:55:28.936333”, “msg”: “”, “rc”: 0, “start”: “2025-03-31 11:54:52.803204”, “stderr”: “”, “stderr_lines”: , “stdout”: “Le référentiel « ansible-automation-platform-2.5-for-rhel-9-x86_64-rpms » est désactivé pour ce système.”, “stdout_lines”: [“Le référentiel « ansible-automation-platform-2.5-for-rhel-9-x86_64-rpms » est désactivé pour ce système.”]}

PLAY RECAP *********************************************************************
database : ok=81 changed=8 unreachable=0 failed=0 skipped=76 rescued=0 ignored=0
gateway.AAP : ok=178 changed=24 unreachable=0 failed=1 skipped=199 rescued=0 ignored=0
localhost : ok=0 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0
myserver.AAP : ok=85 changed=9 unreachable=0 failed=0 skipped=109 rescued=0 ignored=0

[error] Oops! An error occurred while running setup.
Setup log saved to /var/log/tower/setup-2025-03-31-11:32:08.log.
[teja@gateway ansible-automation-platform-setup-2.5-10]$ but when i fix nginx error by killing process envoy and modifying uwsgi stream and rerun setup.sh again the error is the same about nginx . is the problem i’m installing gateway and controller on the same VM ? I tried to use different ips for controller and gateway but same result