ansible-playbook 2.9.27 config file = None configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/lib/python3.9/site-packages/ansible executable location = /usr/local/bin/ansible-playbook python version = 3.9.19 (main, May 16 2024, 11:40:09) [GCC 8.5.0 20210514 (Red Hat 8.5.0-22)] No config file found; using defaults [WARNING]: running playbook inside collection fedora.linux_system_roles Skipping callback 'actionable', as we already have a stdout callback. Skipping callback 'counter_enabled', as we already have a stdout callback. Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'full_skip', as we already have a stdout callback. Skipping callback 'json', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'null', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. Skipping callback 'selective', as we already have a stdout callback. Skipping callback 'skippy', as we already have a stdout callback. Skipping callback 'stderr', as we already have a stdout callback. Skipping callback 'unixy', as we already have a stdout callback. Skipping callback 'yaml', as we already have a stdout callback. PLAYBOOK: tests_certificate.yml ************************************************ 1 plays in /tmp/collections-0bl/ansible_collections/fedora/linux_system_roles/tests/postgresql/tests_certificate.yml PLAY [Test PostgreSQL server with ssl support using certificate role] ********** TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-0bl/ansible_collections/fedora/linux_system_roles/tests/postgresql/tests_certificate.yml:2 Saturday 22 August 2026 14:42:41 -0400 (0:00:00.017) 0:00:00.017 ******* ok: [managed-node1] META: ran handlers TASK [Deploy postgresql] ******************************************************* task path: /tmp/collections-0bl/ansible_collections/fedora/linux_system_roles/tests/postgresql/tests_certificate.yml:12 Saturday 22 August 2026 14:42:42 -0400 (0:00:00.979) 0:00:00.996 ******* included: /tmp/collections-0bl/ansible_collections/fedora/linux_system_roles/tests/postgresql/tasks/install_and_check.yml for managed-node1 TASK [Run postgresql role] ***************************************************** task path: /tmp/collections-0bl/ansible_collections/fedora/linux_system_roles/tests/postgresql/tasks/install_and_check.yml:5 Saturday 22 August 2026 14:42:42 -0400 (0:00:00.018) 0:00:01.015 ******* included: /tmp/collections-0bl/ansible_collections/fedora/linux_system_roles/tests/postgresql/tasks/run_role_with_clear_facts.yml for managed-node1 META: facts cleared TASK [Run the role] ************************************************************ task path: /tmp/collections-0bl/ansible_collections/fedora/linux_system_roles/tests/postgresql/tasks/run_role_with_clear_facts.yml:23 Saturday 22 August 2026 14:42:42 -0400 (0:00:00.040) 0:00:01.056 ******* skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Run the role normally] *************************************************** task path: /tmp/collections-0bl/ansible_collections/fedora/linux_system_roles/tests/postgresql/tasks/run_role_with_clear_facts.yml:33 Saturday 22 August 2026 14:42:42 -0400 (0:00:00.027) 0:00:01.084 ******* TASK [fedora.linux_system_roles.postgresql : Set platform/version specific variables] *** task path: /tmp/collections-0bl/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/main.yml:5 Saturday 22 August 2026 14:42:42 -0400 (0:00:00.135) 0:00:01.219 ******* included: /tmp/collections-0bl/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/set_vars.yml for managed-node1 TASK [fedora.linux_system_roles.postgresql : Ensure ansible_facts used by role] *** task path: /tmp/collections-0bl/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/set_vars.yml:2 Saturday 22 August 2026 14:42:42 -0400 (0:00:00.025) 0:00:01.244 ******* ok: [managed-node1] TASK [fedora.linux_system_roles.postgresql : Record role begin fingerprint] **** task path: /tmp/collections-0bl/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/set_vars.yml:7 Saturday 22 August 2026 14:42:43 -0400 (0:00:00.659) 0:00:01.904 ******* ok: [managed-node1] => { "changed": false, "fingerprint": { "ansible_check_mode": false, "ansible_version": "2.9.27", "date": "2026-08-22T14:42:43-04:00", "managed_node_distro": "CentOS-8", "play_hosts_number": 1, "role_name": "postgresql", "role_path": "/tmp/collections-0bl/ansible_collections/fedora/linux_system_roles/roles/postgresql", "status": "begin" } } TASK [fedora.linux_system_roles.postgresql : Check if system is ostree] ******** task path: /tmp/collections-0bl/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/set_vars.yml:20 Saturday 22 August 2026 14:42:43 -0400 (0:00:00.453) 0:00:02.357 ******* ok: [managed-node1] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.postgresql : Set flag to indicate system is ostree] *** task path: /tmp/collections-0bl/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/set_vars.yml:25 Saturday 22 August 2026 14:42:44 -0400 (0:00:00.444) 0:00:02.801 ******* ok: [managed-node1] => { "ansible_facts": { "__postgresql_is_ostree": false }, "changed": false } TASK [fedora.linux_system_roles.postgresql : Run systemctl] ******************** task path: /tmp/collections-0bl/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/set_vars.yml:32 Saturday 22 August 2026 14:42:44 -0400 (0:00:00.017) 0:00:02.819 ******* ok: [managed-node1] => { "changed": false, "cmd": [ "systemctl", "is-system-running" ], "delta": "0:00:00.008129", "end": "2026-08-22 14:42:44.407775", "failed_when_result": false, "rc": 0, "start": "2026-08-22 14:42:44.399646" } STDOUT: running TASK [fedora.linux_system_roles.postgresql : Require installed systemd] ******** task path: /tmp/collections-0bl/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/set_vars.yml:40 Saturday 22 August 2026 14:42:44 -0400 (0:00:00.395) 0:00:03.214 ******* skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.postgresql : Set flag to indicate that systemd runtime operations are available] *** task path: /tmp/collections-0bl/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/set_vars.yml:45 Saturday 22 August 2026 14:42:44 -0400 (0:00:00.023) 0:00:03.237 ******* ok: [managed-node1] => { "ansible_facts": { "__postgresql_is_booted": true }, "changed": false } TASK [fedora.linux_system_roles.postgresql : Set platform/version specific variables] *** task path: /tmp/collections-0bl/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/set_vars.yml:50 Saturday 22 August 2026 14:42:44 -0400 (0:00:00.023) 0:00:03.261 ******* skipping: [managed-node1] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [managed-node1] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS.yml", "skip_reason": "Conditional result was False" } ok: [managed-node1] => (item=CentOS_8.yml) => { "ansible_facts": { "__postgresql_packages": [ "@postgresql:{{ postgresql_version }}/server" ] }, "ansible_included_var_files": [ "/tmp/collections-0bl/ansible_collections/fedora/linux_system_roles/roles/postgresql/vars/CentOS_8.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_8.yml" } ok: [managed-node1] => (item=CentOS_8.yml) => { "ansible_facts": { "__postgresql_packages": [ "@postgresql:{{ postgresql_version }}/server" ] }, "ansible_included_var_files": [ "/tmp/collections-0bl/ansible_collections/fedora/linux_system_roles/roles/postgresql/vars/CentOS_8.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_8.yml" } TASK [fedora.linux_system_roles.postgresql : Check postgresql.conf] ************ task path: /tmp/collections-0bl/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/set_vars.yml:65 Saturday 22 August 2026 14:42:44 -0400 (0:00:00.055) 0:00:03.317 ******* ok: [managed-node1] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.postgresql : Check TLS crt file] *************** task path: /tmp/collections-0bl/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/set_vars.yml:70 Saturday 22 August 2026 14:42:44 -0400 (0:00:00.336) 0:00:03.653 ******* ok: [managed-node1] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.postgresql : Check TLS private key file] ******* task path: /tmp/collections-0bl/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/set_vars.yml:75 Saturday 22 August 2026 14:42:45 -0400 (0:00:00.314) 0:00:03.968 ******* ok: [managed-node1] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.postgresql : Gather the package facts] ********* task path: /tmp/collections-0bl/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/main.yml:8 Saturday 22 August 2026 14:42:45 -0400 (0:00:00.323) 0:00:04.291 ******* ok: [managed-node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.postgresql : Check if requested version is supported in the system (RHEL8)] *** task path: /tmp/collections-0bl/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/main.yml:12 Saturday 22 August 2026 14:42:47 -0400 (0:00:01.520) 0:00:05.812 ******* skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.postgresql : Check if requested version is supported in system (RHEL9)] *** task path: /tmp/collections-0bl/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/main.yml:20 Saturday 22 August 2026 14:42:47 -0400 (0:00:00.043) 0:00:05.855 ******* skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.postgresql : Check if requested version is supported in system (RHEL10)] *** task path: /tmp/collections-0bl/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/main.yml:28 Saturday 22 August 2026 14:42:47 -0400 (0:00:00.035) 0:00:05.891 ******* skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.postgresql : Check requested and installed version of Postgresql] *** task path: /tmp/collections-0bl/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/main.yml:38 Saturday 22 August 2026 14:42:47 -0400 (0:00:00.035) 0:00:05.927 ******* skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.postgresql : Ensure required packages are installed] *** task path: /tmp/collections-0bl/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/main.yml:49 Saturday 22 August 2026 14:42:47 -0400 (0:00:00.028) 0:00:05.955 ******* changed: [managed-node1] => { "changed": true, "rc": 0, "results": [ "Module postgresql:13/server installed.", "Installed: postgresql-13.7-2.module_el8.6.0+1152+d0162c0a.x86_64", "Installed: libpq-13.5-1.el8.x86_64", "Installed: postgresql-server-13.7-2.module_el8.6.0+1152+d0162c0a.x86_64", "Installed: libicu-60.3-2.el8_1.x86_64" ] } lsrpackages: @postgresql:13/server TASK [fedora.linux_system_roles.postgresql : Init DB on booted systems (with postgresql-setup)] *** task path: /tmp/collections-0bl/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/main.yml:58 Saturday 22 August 2026 14:43:06 -0400 (0:00:19.010) 0:00:24.965 ******* changed: [managed-node1] => { "changed": true, "cmd": [ "postgresql-setup", "--initdb" ], "delta": "0:00:00.743757", "end": "2026-08-22 14:43:07.307400", "rc": 0, "start": "2026-08-22 14:43:06.563643" } STDERR: * Initializing database in '/var/lib/pgsql/data' * Initialized, logs are in /var/lib/pgsql/initdb_postgresql.log TASK [fedora.linux_system_roles.postgresql : Init DB on booted systems (without postgresql-setup)] *** task path: /tmp/collections-0bl/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/main.yml:67 Saturday 22 August 2026 14:43:07 -0400 (0:00:01.149) 0:00:26.115 ******* skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.postgresql : Init DB on non-booted systems (with postgresql-setup)] *** task path: /tmp/collections-0bl/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/main.yml:81 Saturday 22 August 2026 14:43:07 -0400 (0:00:00.021) 0:00:26.136 ******* skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.postgresql : Init DB on non-booted systems (without postgresql-setup)] *** task path: /tmp/collections-0bl/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/main.yml:98 Saturday 22 August 2026 14:43:07 -0400 (0:00:00.019) 0:00:26.156 ******* skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.postgresql : Enable and start existing instance of postgresql server] *** task path: /tmp/collections-0bl/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/main.yml:109 Saturday 22 August 2026 14:43:07 -0400 (0:00:00.018) 0:00:26.174 ******* changed: [managed-node1] => { "changed": true, "enabled": true, "name": "postgresql", "state": "started", "status": { "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "systemd-journald.socket network.target system.slice basic.target sysinit.target", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Before": "shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "CPUAccounting": "no", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf", "CollectMode": "inactive", "ConditionResult": "no", "ConditionTimestampMonotonic": "0", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "PostgreSQL database server", "DevicePolicy": "auto", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "Environment": "PG_OOM_ADJUST_FILE=/proc/self/oom_score_adj PG_OOM_ADJUST_VALUE=0 PGDATA=/var/lib/pgsql/data", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "0", "ExecMainStartTimestampMonotonic": "0", "ExecMainStatus": "0", "ExecReload": "{ path=/bin/kill ; argv[]=/bin/kill -HUP $MAINPID ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStart": "{ path=/usr/bin/postmaster ; argv[]=/usr/bin/postmaster -D ${PGDATA} ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStartPre": "{ path=/usr/libexec/postgresql-check-db-dir ; argv[]=/usr/libexec/postgresql-check-db-dir postgresql ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/postgresql.service", "FreezerState": "running", "GID": "[not set]", "Group": "postgres", "GuessMainPID": "yes", "IOAccounting": "no", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IPAccounting": "no", "IPEgressBytes": "18446744073709551615", "IPEgressPackets": "18446744073709551615", "IPIngressBytes": "18446744073709551615", "IPIngressPackets": "18446744073709551615", "Id": "postgresql.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestampMonotonic": "0", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "mixed", "KillSignal": "2", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "0", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "262144", "LimitNOFILESoft": "1024", "LimitNPROC": "13917", "LimitNPROCSoft": "13917", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "13917", "LimitSIGPENDINGSoft": "13917", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "0", "MemoryAccounting": "yes", "MemoryCurrent": "[not set]", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "postgresql.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "main", "OOMScoreAdjust": "-1000", "OnFailureJobMode": "replace", "PermissionsStartOnly": "no", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "sysinit.target system.slice", "Restart": "no", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestampMonotonic": "0", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "dead", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "[not set]", "TasksMax": "22268", "TimeoutStartUSec": "infinity", "TimeoutStopUSec": "infinity", "TimerSlackNSec": "50000", "Transient": "no", "Type": "notify", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "disabled", "User": "postgres", "UtmpMode": "init", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.postgresql : Fail on non-booted hosts] ********* task path: /tmp/collections-0bl/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/main.yml:118 Saturday 22 August 2026 14:43:08 -0400 (0:00:01.148) 0:00:27.323 ******* skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.postgresql : Set password for super user] ****** task path: /tmp/collections-0bl/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/main.yml:123 Saturday 22 August 2026 14:43:08 -0400 (0:00:00.020) 0:00:27.343 ******* ok: [managed-node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.postgresql : Enable logging in by password] **** task path: /tmp/collections-0bl/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/main.yml:135 Saturday 22 August 2026 14:43:08 -0400 (0:00:00.343) 0:00:27.686 ******* NOTIFIED HANDLER fedora.linux_system_roles.postgresql : Restart postgresql for managed-node1 changed: [managed-node1] => { "backup_file": "/var/lib/pgsql/data/pg_hba.conf.10687.2026-08-22@14:43:09~", "changed": true } MSG: 6 replacements made TASK [fedora.linux_system_roles.postgresql : Fail input_file on non-booted hosts] *** task path: /tmp/collections-0bl/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/main.yml:143 Saturday 22 August 2026 14:43:09 -0400 (0:00:00.423) 0:00:28.110 ******* skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.postgresql : Run provided SQL script] ********** task path: /tmp/collections-0bl/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/main.yml:150 Saturday 22 August 2026 14:43:09 -0400 (0:00:00.019) 0:00:28.129 ******* skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.postgresql : Manage certificates] ************** task path: /tmp/collections-0bl/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/main.yml:154 Saturday 22 August 2026 14:43:09 -0400 (0:00:00.019) 0:00:28.149 ******* included: /tmp/collections-0bl/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/certificate.yml for managed-node1 TASK [Generate certificates] *************************************************** task path: /tmp/collections-0bl/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/certificate.yml:8 Saturday 22 August 2026 14:43:09 -0400 (0:00:00.035) 0:00:28.184 ******* ERROR! the role 'fedora.linux_system_roles.certificate' was not found in fedora.linux_system_roles:ansible.legacy:/tmp/collections-0bl/ansible_collections/fedora/linux_system_roles/tests/postgresql/roles:/root/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:/tmp/collections-0bl/ansible_collections/fedora/linux_system_roles/tests/postgresql The error appears to be in '/tmp/collections-0bl/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/certificate.yml': line 10, column 15, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: include_role: name: fedora.linux_system_roles.certificate ^ here TASK [Clean up] **************************************************************** task path: /tmp/collections-0bl/ansible_collections/fedora/linux_system_roles/tests/postgresql/tasks/install_and_check.yml:99 Saturday 22 August 2026 14:43:09 -0400 (0:00:00.052) 0:00:28.236 ******* skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Stop tracking certificate] *********************************************** task path: /tmp/collections-0bl/ansible_collections/fedora/linux_system_roles/tests/postgresql/tests_certificate.yml:44 Saturday 22 August 2026 14:43:09 -0400 (0:00:00.018) 0:00:28.255 ******* fatal: [managed-node1]: FAILED! => { "changed": false, "cmd": "getcert stop-tracking -f /etc/pki/tls/certs/test_crt.crt", "rc": 2 } MSG: [Errno 2] No such file or directory: b'getcert': b'getcert' RUNNING HANDLER [fedora.linux_system_roles.postgresql : Restart postgresql] **** task path: /tmp/collections-0bl/ansible_collections/fedora/linux_system_roles/roles/postgresql/handlers/main.yml:3 Saturday 22 August 2026 14:43:09 -0400 (0:00:00.331) 0:00:28.586 ******* PLAY RECAP ********************************************************************* managed-node1 : ok=21 changed=4 unreachable=0 failed=1 skipped=13 rescued=0 ignored=0 SYSTEM ROLES ERRORS BEGIN v1 [ { "ansible_version": "2.9.27", "end_time": "2026-08-22T18:43:09.828823+00:00Z", "host": "managed-node1", "message": "[Errno 2] No such file or directory: b'getcert': b'getcert'", "rc": 2, "start_time": "2026-08-22T18:43:09.498271+00:00Z", "task_name": "Stop tracking certificate", "task_path": "/tmp/collections-0bl/ansible_collections/fedora/linux_system_roles/tests/postgresql/tests_certificate.yml:44" } ] SYSTEM ROLES ERRORS END v1 Saturday 22 August 2026 14:43:09 -0400 (0:00:00.001) 0:00:28.587 ******* =============================================================================== fedora.linux_system_roles.postgresql : Ensure required packages are installed -- 19.01s /tmp/collections-0bl/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/main.yml:49 fedora.linux_system_roles.postgresql : Gather the package facts --------- 1.52s /tmp/collections-0bl/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/main.yml:8 fedora.linux_system_roles.postgresql : Init DB on booted systems (with postgresql-setup) --- 1.15s /tmp/collections-0bl/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/main.yml:58 fedora.linux_system_roles.postgresql : Enable and start existing instance of postgresql server --- 1.15s /tmp/collections-0bl/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/main.yml:109 Gathering Facts --------------------------------------------------------- 0.98s /tmp/collections-0bl/ansible_collections/fedora/linux_system_roles/tests/postgresql/tests_certificate.yml:2 fedora.linux_system_roles.postgresql : Ensure ansible_facts used by role --- 0.66s /tmp/collections-0bl/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/set_vars.yml:2 fedora.linux_system_roles.postgresql : Record role begin fingerprint ---- 0.45s /tmp/collections-0bl/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/set_vars.yml:7 fedora.linux_system_roles.postgresql : Check if system is ostree -------- 0.44s /tmp/collections-0bl/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/set_vars.yml:20 fedora.linux_system_roles.postgresql : Enable logging in by password ---- 0.42s /tmp/collections-0bl/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/main.yml:135 fedora.linux_system_roles.postgresql : Run systemctl -------------------- 0.40s /tmp/collections-0bl/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/set_vars.yml:32 fedora.linux_system_roles.postgresql : Set password for super user ------ 0.34s /tmp/collections-0bl/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/main.yml:123 fedora.linux_system_roles.postgresql : Check postgresql.conf ------------ 0.34s /tmp/collections-0bl/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/set_vars.yml:65 Stop tracking certificate ----------------------------------------------- 0.33s /tmp/collections-0bl/ansible_collections/fedora/linux_system_roles/tests/postgresql/tests_certificate.yml:44 fedora.linux_system_roles.postgresql : Check TLS private key file ------- 0.32s /tmp/collections-0bl/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/set_vars.yml:75 fedora.linux_system_roles.postgresql : Check TLS crt file --------------- 0.32s /tmp/collections-0bl/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/set_vars.yml:70 Run the role normally --------------------------------------------------- 0.14s /tmp/collections-0bl/ansible_collections/fedora/linux_system_roles/tests/postgresql/tasks/run_role_with_clear_facts.yml:33 fedora.linux_system_roles.postgresql : Set platform/version specific variables --- 0.06s /tmp/collections-0bl/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/set_vars.yml:50 Generate certificates --------------------------------------------------- 0.05s /tmp/collections-0bl/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/certificate.yml:8 fedora.linux_system_roles.postgresql : Check if requested version is supported in the system (RHEL8) --- 0.04s /tmp/collections-0bl/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/main.yml:12 Run postgresql role ----------------------------------------------------- 0.04s /tmp/collections-0bl/ansible_collections/fedora/linux_system_roles/tests/postgresql/tasks/install_and_check.yml:5 -- Logs begin at Sat 2026-08-22 14:39:46 EDT, end at Sat 2026-08-22 14:43:10 EDT. -- Aug 22 14:42:41 managed-node1 sshd[7369]: Accepted publickey for root from 10.31.14.24 port 51702 ssh2: ECDSA SHA256:w2NbBkF4bbFZR6dIdIdvHW8l+SwPjcLmalq/rjGvVAc Aug 22 14:42:41 managed-node1 systemd-logind[586]: New session 8 of user root. -- Subject: A new session 8 has been created for user root -- Defined-By: systemd -- Support: https://access.redhat.com/support -- Documentation: https://www.freedesktop.org/wiki/Software/systemd/multiseat -- -- A new session with the ID 8 has been created for the user root. -- -- The leading process of the session is 7369. Aug 22 14:42:41 managed-node1 systemd[1]: Started Session 8 of user root. -- Subject: Unit session-8.scope has finished start-up -- Defined-By: systemd -- Support: https://access.redhat.com/support -- -- Unit session-8.scope has finished starting up. -- -- The start-up result is done. Aug 22 14:42:41 managed-node1 sshd[7369]: pam_unix(sshd:session): session opened for user root by (uid=0) Aug 22 14:42:42 managed-node1 platform-python[7514]: ansible-setup Invoked with gather_subset=['all'] gather_timeout=10 filter=* fact_path=/etc/ansible/facts.d Aug 22 14:42:42 managed-node1 platform-python[7701]: ansible-setup Invoked with gather_subset=['!all', '!min', 'hardware', 'distribution', 'distribution_major_version', 'distribution_version', 'os_family'] gather_timeout=10 filter=* fact_path=/etc/ansible/facts.d Aug 22 14:42:43 managed-node1 platform-python[7838]: ansible-fedora.linux_system_roles.sr_fingerprint Invoked with status=begin role_name=postgresql role_path=/tmp/collections-0bl/ansible_collections/fedora/linux_system_roles/roles/postgresql ansible_play_hosts_all=['managed-node1'] distribution=CentOS distribution_version=8 write_log_file=True log_file=/var/log/sysroles.jsonl max_log_size=2000000 Aug 22 14:42:43 managed-node1 platform-python[7838]: ansible-fedora.linux_system_roles.sr_fingerprint date=2026-08-22T14:42:43-04:00 role_name=postgresql role_path=/tmp/collections-0bl/ansible_collections/fedora/linux_system_roles/roles/postgresql status=begin ansible_version=2.9.27 managed_node_distro=CentOS-8 play_hosts_number=1 ansible_check_mode=False Aug 22 14:42:44 managed-node1 platform-python[7961]: ansible-stat Invoked with path=/run/ostree-booted follow=False get_md5=False get_checksum=True get_mime=True get_attributes=True checksum_algorithm=sha1 Aug 22 14:42:44 managed-node1 platform-python[8084]: ansible-command Invoked with _raw_params=systemctl is-system-running warn=True _uses_shell=False stdin_add_newline=True strip_empty_ends=True argv=None chdir=None executable=None creates=None removes=None stdin=None Aug 22 14:42:44 managed-node1 platform-python[8208]: ansible-stat Invoked with path=/var/lib/pgsql/data/postgresql.conf follow=False get_md5=False get_checksum=True get_mime=True get_attributes=True checksum_algorithm=sha1 Aug 22 14:42:45 managed-node1 platform-python[8331]: ansible-stat Invoked with path=.crt follow=False get_md5=False get_checksum=True get_mime=True get_attributes=True checksum_algorithm=sha1 Aug 22 14:42:45 managed-node1 platform-python[8454]: ansible-stat Invoked with path=.key follow=False get_md5=False get_checksum=True get_mime=True get_attributes=True checksum_algorithm=sha1 Aug 22 14:42:47 managed-node1 platform-python[8702]: ansible-setup Invoked with filter=ansible_pkg_mgr gather_subset=['!all'] gather_timeout=10 fact_path=/etc/ansible/facts.d Aug 22 14:42:48 managed-node1 platform-python[8770]: ansible-dnf Invoked with name= state=present allow_downgrade=False autoremove=False bugfix=False disable_gpg_check=False disable_plugin=[] disablerepo=[] download_only=False enable_plugin=[] enablerepo=[] exclude=[] installroot=/ install_repoquery=True install_weak_deps=True security=False skip_broken=False update_cache=False update_only=False validate_certs=True lock_timeout=30 conf_file=None disable_excludes=None download_dir=None list=None releasever=None Aug 22 14:43:04 managed-node1 groupadd[8831]: group added to /etc/group: name=postgres, GID=26 Aug 22 14:43:04 managed-node1 groupadd[8831]: group added to /etc/gshadow: name=postgres Aug 22 14:43:04 managed-node1 groupadd[8831]: new group: name=postgres, GID=26 Aug 22 14:43:04 managed-node1 useradd[8837]: new user: name=postgres, UID=26, GID=26, home=/var/lib/pgsql, shell=/bin/bash Aug 22 14:43:05 managed-node1 systemd[1]: Started /usr/bin/systemctl start man-db-cache-update. -- Subject: Unit run-r9bbe937115714a3bbf54dafb44fe1e03.service has finished start-up -- Defined-By: systemd -- Support: https://access.redhat.com/support -- -- Unit run-r9bbe937115714a3bbf54dafb44fe1e03.service has finished starting up. -- -- The start-up result is done. Aug 22 14:43:05 managed-node1 systemd[1]: cgroup compatibility translation between legacy and unified hierarchy settings activated. See cgroup-compat debug messages for details. Aug 22 14:43:05 managed-node1 systemd[1]: Starting man-db-cache-update.service... -- Subject: Unit man-db-cache-update.service has begun start-up -- Defined-By: systemd -- Support: https://access.redhat.com/support -- -- Unit man-db-cache-update.service has begun starting up. Aug 22 14:43:05 managed-node1 systemd[1]: Reloading. Aug 22 14:43:06 managed-node1 platform-python[9962]: ansible-command Invoked with creates=/var/lib/pgsql/data/postgresql.conf _raw_params=postgresql-setup --initdb warn=True _uses_shell=False stdin_add_newline=True strip_empty_ends=True argv=None chdir=None executable=None removes=None stdin=None Aug 22 14:43:06 managed-node1 runuser[10136]: pam_unix(runuser-l:session): session opened for user postgres by root(uid=0) Aug 22 14:43:06 managed-node1 systemd[1]: man-db-cache-update.service: Succeeded. -- Subject: Unit succeeded -- Defined-By: systemd -- Support: https://access.redhat.com/support -- -- The unit man-db-cache-update.service has successfully entered the 'dead' state. Aug 22 14:43:06 managed-node1 systemd[1]: Started man-db-cache-update.service. -- Subject: Unit man-db-cache-update.service has finished start-up -- Defined-By: systemd -- Support: https://access.redhat.com/support -- -- Unit man-db-cache-update.service has finished starting up. -- -- The start-up result is done. Aug 22 14:43:06 managed-node1 systemd[1]: run-r9bbe937115714a3bbf54dafb44fe1e03.service: Succeeded. -- Subject: Unit succeeded -- Defined-By: systemd -- Support: https://access.redhat.com/support -- -- The unit run-r9bbe937115714a3bbf54dafb44fe1e03.service has successfully entered the 'dead' state. Aug 22 14:43:07 managed-node1 runuser[10136]: pam_unix(runuser-l:session): session closed for user postgres Aug 22 14:43:07 managed-node1 platform-python[10327]: ansible-setup Invoked with gather_subset=['!all'] filter=ansible_service_mgr gather_timeout=10 fact_path=/etc/ansible/facts.d Aug 22 14:43:08 managed-node1 platform-python[10395]: ansible-systemd Invoked with name=postgresql state=started enabled=True daemon_reload=False daemon_reexec=False no_block=False force=None masked=None user=None scope=None Aug 22 14:43:08 managed-node1 systemd[1]: Reloading. Aug 22 14:43:08 managed-node1 systemd[1]: Starting PostgreSQL database server... -- Subject: Unit postgresql.service has begun start-up -- Defined-By: systemd -- Support: https://access.redhat.com/support -- -- Unit postgresql.service has begun starting up. Aug 22 14:43:08 managed-node1 postmaster[10429]: 2026-08-22 14:43:08.490 EDT [10429] LOG: redirecting log output to logging collector process Aug 22 14:43:08 managed-node1 postmaster[10429]: 2026-08-22 14:43:08.490 EDT [10429] HINT: Future log output will appear in directory "log". Aug 22 14:43:08 managed-node1 systemd[1]: Started PostgreSQL database server. -- Subject: Unit postgresql.service has finished start-up -- Defined-By: systemd -- Support: https://access.redhat.com/support -- -- Unit postgresql.service has finished starting up. -- -- The start-up result is done. Aug 22 14:43:08 managed-node1 sudo[10559]: root : TTY=pts/0 ; PWD=/root ; USER=postgres ; COMMAND=/bin/sh -c 'echo BECOME-SUCCESS-burubeamiwacmigezmixstmgaxzftvot ; PGPASSWORD=redhat /usr/libexec/platform-python /var/tmp/ansible-tmp-1787424188.6238027-8656-272772656436034/AnsiballZ_command.py' Aug 22 14:43:08 managed-node1 sudo[10559]: pam_unix(sudo:session): session opened for user postgres by root(uid=0) Aug 22 14:43:08 managed-node1 sudo[10559]: pam_unix(sudo:session): session closed for user postgres Aug 22 14:43:09 managed-node1 platform-python[10687]: ansible-replace Invoked with path=/var/lib/pgsql/data/pg_hba.conf regexp=(peer|ident)$ replace=md5 backup=True encoding=utf-8 follow=False unsafe_writes=False after=None before=None validate=None mode=None owner=None group=None seuser=None serole=None selevel=None setype=None attributes=None src=None force=None content=NOT_LOGGING_PARAMETER remote_src=None delimiter=None directory_mode=None Aug 22 14:43:09 managed-node1 platform-python[10812]: ansible-command Invoked with _raw_params=getcert stop-tracking -f /etc/pki/tls/certs/test_crt.crt warn=True _uses_shell=False stdin_add_newline=True strip_empty_ends=True argv=None chdir=None executable=None creates=None removes=None stdin=None Aug 22 14:43:09 managed-node1 platform-python[10812]: ansible-command Error Executing CMD:getcert stop-tracking -f /etc/pki/tls/certs/test_crt.crt Exception:[Errno 2] No such file or directory: b'getcert': b'getcert' Aug 22 14:43:09 managed-node1 sshd[10834]: Accepted publickey for root from 10.31.14.24 port 58184 ssh2: RSA SHA256:9j1blwt3wcrRiGYZQ7ZGu9axm3cDklH6/z4c+Ee8CzE Aug 22 14:43:09 managed-node1 systemd-logind[586]: New session 9 of user root. -- Subject: A new session 9 has been created for user root -- Defined-By: systemd -- Support: https://access.redhat.com/support -- Documentation: https://www.freedesktop.org/wiki/Software/systemd/multiseat -- -- A new session with the ID 9 has been created for the user root. -- -- The leading process of the session is 10834. Aug 22 14:43:09 managed-node1 systemd[1]: Started Session 9 of user root. -- Subject: Unit session-9.scope has finished start-up -- Defined-By: systemd -- Support: https://access.redhat.com/support -- -- Unit session-9.scope has finished starting up. -- -- The start-up result is done. Aug 22 14:43:09 managed-node1 sshd[10834]: pam_unix(sshd:session): session opened for user root by (uid=0) Aug 22 14:43:10 managed-node1 sshd[10837]: Received disconnect from 10.31.14.24 port 58184:11: disconnected by user Aug 22 14:43:10 managed-node1 sshd[10837]: Disconnected from user root 10.31.14.24 port 58184 Aug 22 14:43:10 managed-node1 sshd[10834]: pam_unix(sshd:session): session closed for user root Aug 22 14:43:10 managed-node1 systemd[1]: session-9.scope: Succeeded. -- Subject: Unit succeeded -- Defined-By: systemd -- Support: https://access.redhat.com/support -- -- The unit session-9.scope has successfully entered the 'dead' state. Aug 22 14:43:10 managed-node1 systemd-logind[586]: Session 9 logged out. Waiting for processes to exit. Aug 22 14:43:10 managed-node1 systemd-logind[586]: Removed session 9. -- Subject: Session 9 has been terminated -- Defined-By: systemd -- Support: https://access.redhat.com/support -- Documentation: https://www.freedesktop.org/wiki/Software/systemd/multiseat -- -- A session with the ID 9 has been terminated. Aug 22 14:43:10 managed-node1 sshd[10858]: Accepted publickey for root from 10.31.14.24 port 58196 ssh2: RSA SHA256:9j1blwt3wcrRiGYZQ7ZGu9axm3cDklH6/z4c+Ee8CzE Aug 22 14:43:10 managed-node1 systemd[1]: Started Session 10 of user root. -- Subject: Unit session-10.scope has finished start-up -- Defined-By: systemd -- Support: https://access.redhat.com/support -- -- Unit session-10.scope has finished starting up. -- -- The start-up result is done. Aug 22 14:43:10 managed-node1 systemd-logind[586]: New session 10 of user root. -- Subject: A new session 10 has been created for user root -- Defined-By: systemd -- Support: https://access.redhat.com/support -- Documentation: https://www.freedesktop.org/wiki/Software/systemd/multiseat -- -- A new session with the ID 10 has been created for the user root. -- -- The leading process of the session is 10858. Aug 22 14:43:10 managed-node1 sshd[10858]: pam_unix(sshd:session): session opened for user root by (uid=0)