ansible-playbook [core 2.16.18] config file = None configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/lib/python3.12/site-packages/ansible ansible collection location = /tmp/collections-CcY executable location = /usr/local/bin/ansible-playbook python version = 3.12.1 (main, Feb 21 2024, 14:18:26) [GCC 8.5.0 20210514 (Red Hat 8.5.0-21)] (/usr/bin/python3.12) jinja version = 3.1.6 libyaml = True No config file found; using defaults running playbook inside collection fedora.linux_system_roles Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'json', as we already have a stdout callback. Skipping callback 'jsonl', as we already have a stdout callback. Skipping callback 'default', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. PLAYBOOK: tests_input_file.yml ************************************************* 1 plays in /tmp/collections-CcY/ansible_collections/fedora/linux_system_roles/tests/postgresql/tests_input_file.yml PLAY [Ensure that the role runs with input file] ******************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-CcY/ansible_collections/fedora/linux_system_roles/tests/postgresql/tests_input_file.yml:2 Saturday 16 May 2026 15:21:18 -0400 (0:00:00.018) 0:00:00.018 ********** ok: [managed-node1] TASK [Run postgresql role with input file] ************************************* task path: /tmp/collections-CcY/ansible_collections/fedora/linux_system_roles/tests/postgresql/tests_input_file.yml:7 Saturday 16 May 2026 15:21:19 -0400 (0:00:01.099) 0:00:01.117 ********** included: /tmp/collections-CcY/ansible_collections/fedora/linux_system_roles/tests/postgresql/tasks/run_role_with_clear_facts.yml for managed-node1 TASK [Clear facts] ************************************************************* task path: /tmp/collections-CcY/ansible_collections/fedora/linux_system_roles/tests/postgresql/tasks/run_role_with_clear_facts.yml:9 Saturday 16 May 2026 15:21:19 -0400 (0:00:00.014) 0:00:01.131 ********** META: facts cleared TASK [Run the role] ************************************************************ task path: /tmp/collections-CcY/ansible_collections/fedora/linux_system_roles/tests/postgresql/tasks/run_role_with_clear_facts.yml:23 Saturday 16 May 2026 15:21:19 -0400 (0:00:00.000) 0:00:01.132 ********** skipping: [managed-node1] => { "changed": false, "false_condition": "__sr_failed_when is defined", "skip_reason": "Conditional result was False" } TASK [Run the role normally] *************************************************** task path: /tmp/collections-CcY/ansible_collections/fedora/linux_system_roles/tests/postgresql/tasks/run_role_with_clear_facts.yml:33 Saturday 16 May 2026 15:21:19 -0400 (0:00:00.035) 0:00:01.168 ********** TASK [fedora.linux_system_roles.postgresql : Set platform/version specific variables] *** task path: /tmp/collections-CcY/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/main.yml:5 Saturday 16 May 2026 15:21:19 -0400 (0:00:00.154) 0:00:01.322 ********** included: /tmp/collections-CcY/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-CcY/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/set_vars.yml:2 Saturday 16 May 2026 15:21:20 -0400 (0:00:00.035) 0:00:01.358 ********** ok: [managed-node1] TASK [fedora.linux_system_roles.postgresql : Record role begin fingerprint] **** task path: /tmp/collections-CcY/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/set_vars.yml:7 Saturday 16 May 2026 15:21:20 -0400 (0:00:00.785) 0:00:02.143 ********** ok: [managed-node1] => { "changed": false } TASK [fedora.linux_system_roles.postgresql : Check if system is ostree] ******** task path: /tmp/collections-CcY/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/set_vars.yml:16 Saturday 16 May 2026 15:21:21 -0400 (0:00:00.419) 0:00:02.563 ********** 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-CcY/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/set_vars.yml:21 Saturday 16 May 2026 15:21:21 -0400 (0:00:00.418) 0:00:02.982 ********** ok: [managed-node1] => { "ansible_facts": { "__postgresql_is_ostree": false }, "changed": false } TASK [fedora.linux_system_roles.postgresql : Run systemctl] ******************** task path: /tmp/collections-CcY/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/set_vars.yml:28 Saturday 16 May 2026 15:21:21 -0400 (0:00:00.019) 0:00:03.002 ********** ok: [managed-node1] => { "changed": false, "cmd": [ "systemctl", "is-system-running" ], "delta": "0:00:00.008276", "end": "2026-05-16 15:21:22.045608", "failed_when_result": false, "rc": 0, "start": "2026-05-16 15:21:22.037332" } STDOUT: running TASK [fedora.linux_system_roles.postgresql : Require installed systemd] ******** task path: /tmp/collections-CcY/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/set_vars.yml:36 Saturday 16 May 2026 15:21:22 -0400 (0:00:00.431) 0:00:03.434 ********** skipping: [managed-node1] => { "changed": false, "false_condition": "\"No such file or directory\" in __is_system_running.msg | d(\"\")", "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-CcY/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/set_vars.yml:41 Saturday 16 May 2026 15:21:22 -0400 (0:00:00.019) 0:00:03.453 ********** 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-CcY/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/set_vars.yml:46 Saturday 16 May 2026 15:21:22 -0400 (0:00:00.018) 0:00:03.472 ********** skipping: [managed-node1] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [managed-node1] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "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-CcY/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-CcY/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-CcY/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/set_vars.yml:61 Saturday 16 May 2026 15:21:22 -0400 (0:00:00.038) 0:00:03.510 ********** ok: [managed-node1] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.postgresql : Check TLS crt file] *************** task path: /tmp/collections-CcY/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/set_vars.yml:66 Saturday 16 May 2026 15:21:22 -0400 (0:00:00.331) 0:00:03.841 ********** ok: [managed-node1] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.postgresql : Check TLS private key file] ******* task path: /tmp/collections-CcY/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/set_vars.yml:71 Saturday 16 May 2026 15:21:22 -0400 (0:00:00.326) 0:00:04.167 ********** ok: [managed-node1] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.postgresql : Gather the package facts] ********* task path: /tmp/collections-CcY/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/main.yml:8 Saturday 16 May 2026 15:21:23 -0400 (0:00:00.328) 0:00:04.496 ********** 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-CcY/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/main.yml:12 Saturday 16 May 2026 15:21:24 -0400 (0:00:01.631) 0:00:06.128 ********** skipping: [managed-node1] => { "changed": false, "false_condition": "postgresql_version | string not in __postgresql_versions_el8", "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-CcY/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/main.yml:20 Saturday 16 May 2026 15:21:24 -0400 (0:00:00.030) 0:00:06.158 ********** skipping: [managed-node1] => { "changed": false, "false_condition": "ansible_facts[\"distribution_major_version\"] == \"9\"", "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-CcY/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/main.yml:28 Saturday 16 May 2026 15:21:24 -0400 (0:00:00.022) 0:00:06.181 ********** skipping: [managed-node1] => { "changed": false, "false_condition": "ansible_facts[\"distribution_major_version\"] == \"10\"", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.postgresql : Check requested and installed version of Postgresql] *** task path: /tmp/collections-CcY/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/main.yml:38 Saturday 16 May 2026 15:21:24 -0400 (0:00:00.026) 0:00:06.208 ********** skipping: [managed-node1] => { "changed": false, "false_condition": "'postgresql' in ansible_facts.packages", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.postgresql : Ensure required packages are installed] *** task path: /tmp/collections-CcY/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/main.yml:49 Saturday 16 May 2026 15:21:24 -0400 (0:00:00.026) 0:00:06.235 ********** 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: postgresql-server-13.7-2.module_el8.6.0+1152+d0162c0a.x86_64" ] } lsrpackages: @postgresql:13/server TASK [fedora.linux_system_roles.postgresql : Init DB on booted systems (with postgresql-setup)] *** task path: /tmp/collections-CcY/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/main.yml:58 Saturday 16 May 2026 15:21:31 -0400 (0:00:06.364) 0:00:12.600 ********** changed: [managed-node1] => { "changed": true, "cmd": [ "postgresql-setup", "--initdb" ], "delta": "0:00:00.746968", "end": "2026-05-16 15:21:32.316773", "rc": 0, "start": "2026-05-16 15:21:31.569805" } 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-CcY/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/main.yml:67 Saturday 16 May 2026 15:21:32 -0400 (0:00:01.114) 0:00:13.715 ********** skipping: [managed-node1] => { "changed": false, "false_condition": "not __postgresql_has_setup_cmd | bool", "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-CcY/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/main.yml:81 Saturday 16 May 2026 15:21:32 -0400 (0:00:00.022) 0:00:13.738 ********** skipping: [managed-node1] => { "changed": false, "false_condition": "not __postgresql_is_booted | bool", "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-CcY/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/main.yml:98 Saturday 16 May 2026 15:21:32 -0400 (0:00:00.019) 0:00:13.758 ********** skipping: [managed-node1] => { "changed": false, "false_condition": "not __postgresql_is_booted | bool", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.postgresql : Enable and start existing instance of postgresql server] *** task path: /tmp/collections-CcY/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/main.yml:109 Saturday 16 May 2026 15:21:32 -0400 (0:00:00.022) 0:00:13.780 ********** changed: [managed-node1] => { "changed": true, "enabled": true, "name": "postgresql", "state": "started", "status": { "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "sysinit.target basic.target systemd-journald.socket system.slice network.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": "14004", "LimitNPROCSoft": "14004", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14004", "LimitSIGPENDINGSoft": "14004", "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": "system.slice sysinit.target", "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": "22406", "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-CcY/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/main.yml:118 Saturday 16 May 2026 15:21:33 -0400 (0:00:01.357) 0:00:15.137 ********** skipping: [managed-node1] => { "changed": false, "false_condition": "postgresql_password is not none", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.postgresql : Set password for super user] ****** task path: /tmp/collections-CcY/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/main.yml:123 Saturday 16 May 2026 15:21:33 -0400 (0:00:00.021) 0:00:15.158 ********** skipping: [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-CcY/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/main.yml:135 Saturday 16 May 2026 15:21:33 -0400 (0:00:00.020) 0:00:15.179 ********** skipping: [managed-node1] => { "changed": false, "false_condition": "postgresql_password is not none", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.postgresql : Fail input_file on non-booted hosts] *** task path: /tmp/collections-CcY/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/main.yml:143 Saturday 16 May 2026 15:21:33 -0400 (0:00:00.019) 0:00:15.198 ********** skipping: [managed-node1] => { "changed": false, "false_condition": "not __postgresql_is_booted | bool", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.postgresql : Run provided SQL script] ********** task path: /tmp/collections-CcY/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/main.yml:150 Saturday 16 May 2026 15:21:33 -0400 (0:00:00.015) 0:00:15.214 ********** included: /tmp/collections-CcY/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/input_sql_file.yml for managed-node1 TASK [fedora.linux_system_roles.postgresql : Verify if postgresql_password is set] *** task path: /tmp/collections-CcY/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/input_sql_file.yml:2 Saturday 16 May 2026 15:21:33 -0400 (0:00:00.034) 0:00:15.249 ********** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [fedora.linux_system_roles.postgresql : Create a tempfile for the SQL file on the host] *** task path: /tmp/collections-CcY/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/input_sql_file.yml:11 Saturday 16 May 2026 15:21:33 -0400 (0:00:00.023) 0:00:15.272 ********** ok: [managed-node1] => { "changed": false, "gid": 0, "group": "root", "mode": "0600", "owner": "root", "path": "/tmp/ansible.x5rcacl8", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 0, "state": "file", "uid": 0 } TASK [fedora.linux_system_roles.postgresql : Copy the sql input file to the host simple.sql] *** task path: /tmp/collections-CcY/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/input_sql_file.yml:17 Saturday 16 May 2026 15:21:34 -0400 (0:00:00.415) 0:00:15.687 ********** ok: [managed-node1] => { "changed": false, "checksum": "e7131f8287026af851061303b1a50ebc23645b27", "dest": "/tmp/ansible.x5rcacl8", "gid": 26, "group": "postgres", "md5sum": "8e230cd8d81e022a97840c6b0bdc03f1", "mode": "0600", "owner": "postgres", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 113, "src": "/root/.ansible/tmp/ansible-tmp-1778959294.3815796-11959-151230503513119/source", "state": "file", "uid": 26 } TASK [fedora.linux_system_roles.postgresql : Run SQL script] ******************* task path: /tmp/collections-CcY/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/input_sql_file.yml:28 Saturday 16 May 2026 15:21:35 -0400 (0:00:00.808) 0:00:16.495 ********** ok: [managed-node1] => { "changed": false, "cmd": [ "psql", "-U", "postgres", "-f", "/tmp/ansible.x5rcacl8" ], "delta": "0:00:00.017499", "end": "2026-05-16 15:21:35.477344", "rc": 0, "start": "2026-05-16 15:21:35.459845" } STDOUT: CREATE TABLE INSERT 0 1 TASK [fedora.linux_system_roles.postgresql : Print the output of psql command for simple.sql] *** task path: /tmp/collections-CcY/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/input_sql_file.yml:38 Saturday 16 May 2026 15:21:35 -0400 (0:00:00.376) 0:00:16.872 ********** ok: [managed-node1] => {} MSG: {'changed': False, 'stdout': 'CREATE TABLE\nINSERT 0 1', 'stderr': '', 'rc': 0, 'cmd': ['psql', '-U', 'postgres', '-f', '/tmp/ansible.x5rcacl8'], 'start': '2026-05-16 15:21:35.459845', 'end': '2026-05-16 15:21:35.477344', 'delta': '0:00:00.017499', 'msg': '', 'stdout_lines': ['CREATE TABLE', 'INSERT 0 1'], 'stderr_lines': [], 'failed': False} TASK [fedora.linux_system_roles.postgresql : Remove sql script from the host simple.sql] *** task path: /tmp/collections-CcY/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/input_sql_file.yml:42 Saturday 16 May 2026 15:21:35 -0400 (0:00:00.021) 0:00:16.894 ********** changed: [managed-node1] => { "changed": true, "path": "/tmp/ansible.x5rcacl8", "state": "absent" } TASK [fedora.linux_system_roles.postgresql : Manage certificates] ************** task path: /tmp/collections-CcY/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/main.yml:154 Saturday 16 May 2026 15:21:35 -0400 (0:00:00.434) 0:00:17.329 ********** included: /tmp/collections-CcY/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/certificate.yml for managed-node1 TASK [Generate certificates] *************************************************** task path: /tmp/collections-CcY/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/certificate.yml:8 Saturday 16 May 2026 15:21:36 -0400 (0:00:00.034) 0:00:17.363 ********** skipping: [managed-node1] => { "changed": false, "false_condition": "postgresql_certificates | length > 0", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.postgresql : Install certificate from the default path] *** task path: /tmp/collections-CcY/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/certificate.yml:14 Saturday 16 May 2026 15:21:36 -0400 (0:00:00.017) 0:00:17.380 ********** skipping: [managed-node1] => { "changed": false, "false_condition": "postgresql_certificates | length > 0", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.postgresql : Ensure private key directory is traversable by postgres] *** task path: /tmp/collections-CcY/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/certificate.yml:24 Saturday 16 May 2026 15:21:36 -0400 (0:00:00.017) 0:00:17.398 ********** skipping: [managed-node1] => { "changed": false, "false_condition": "postgresql_certificates | length > 0", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.postgresql : Ensure private key is readable by postgres] *** task path: /tmp/collections-CcY/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/certificate.yml:33 Saturday 16 May 2026 15:21:36 -0400 (0:00:00.016) 0:00:17.414 ********** skipping: [managed-node1] => { "changed": false, "false_condition": "postgresql_certificates | length > 0", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.postgresql : Install certificate from the default path] *** task path: /tmp/collections-CcY/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/certificate.yml:44 Saturday 16 May 2026 15:21:36 -0400 (0:00:00.016) 0:00:17.431 ********** skipping: [managed-node1] => { "changed": false, "false_condition": "postgresql_certificates | length > 0", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.postgresql : Install certificate from custom path] *** task path: /tmp/collections-CcY/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/certificate.yml:54 Saturday 16 May 2026 15:21:36 -0400 (0:00:00.017) 0:00:17.449 ********** skipping: [managed-node1] => { "changed": false, "false_condition": "postgresql_certificates | length > 0", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.postgresql : Install certificate from custom path] *** task path: /tmp/collections-CcY/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/certificate.yml:62 Saturday 16 May 2026 15:21:36 -0400 (0:00:00.018) 0:00:17.468 ********** skipping: [managed-node1] => { "changed": false, "false_condition": "postgresql_certificates | length > 0", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.postgresql : Install certificate file] ********* task path: /tmp/collections-CcY/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/certificate.yml:79 Saturday 16 May 2026 15:21:36 -0400 (0:00:00.038) 0:00:17.506 ********** skipping: [managed-node1] => { "changed": false, "false_condition": "__postgresql_cert.stat.exists", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.postgresql : Install postgresql server private key] *** task path: /tmp/collections-CcY/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/certificate.yml:86 Saturday 16 May 2026 15:21:36 -0400 (0:00:00.016) 0:00:17.522 ********** skipping: [managed-node1] => { "changed": false, "false_condition": "__postgresql_cert.stat.exists", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.postgresql : Configure pg_hba.conf] ************ task path: /tmp/collections-CcY/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/main.yml:157 Saturday 16 May 2026 15:21:36 -0400 (0:00:00.015) 0:00:17.538 ********** skipping: [managed-node1] => { "changed": false, "false_condition": "postgresql_pg_hba_conf is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.postgresql : Create postgresql directory in /etc] *** task path: /tmp/collections-CcY/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/main.yml:169 Saturday 16 May 2026 15:21:36 -0400 (0:00:00.019) 0:00:17.557 ********** ok: [managed-node1] => { "changed": false, "gid": 0, "group": "root", "mode": "0755", "owner": "root", "path": "/etc/postgresql", "secontext": "unconfined_u:object_r:etc_t:s0", "size": 6, "state": "directory", "uid": 0 } TASK [fedora.linux_system_roles.postgresql : Link generated conf file with server one] *** task path: /tmp/collections-CcY/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/main.yml:175 Saturday 16 May 2026 15:21:36 -0400 (0:00:00.340) 0:00:17.898 ********** Notification for handler Restart postgresql has been saved. changed: [managed-node1] => { "backup": "", "changed": true } MSG: line added TASK [fedora.linux_system_roles.postgresql : Generate postgresql system-roles-internal.conf] *** task path: /tmp/collections-CcY/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/main.yml:182 Saturday 16 May 2026 15:21:36 -0400 (0:00:00.437) 0:00:18.335 ********** changed: [managed-node1] => { "changed": true, "checksum": "15e33b3455fb7c5143e3ac9e2ae5ffc9cadbfa88", "dest": "/etc/postgresql/system-roles-internal.conf", "gid": 26, "group": "postgres", "md5sum": "34119af9a9e88c9e0fe9b3de8eb29e95", "mode": "0600", "owner": "postgres", "secontext": "system_u:object_r:postgresql_etc_t:s0", "size": 102, "src": "/root/.ansible/tmp/ansible-tmp-1778959297.0300019-12040-121328430330288/source", "state": "file", "uid": 26 } TASK [fedora.linux_system_roles.postgresql : Generate postgresql system-roles.conf] *** task path: /tmp/collections-CcY/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/main.yml:195 Saturday 16 May 2026 15:21:37 -0400 (0:00:00.690) 0:00:19.025 ********** skipping: [managed-node1] => { "changed": false, "false_condition": "postgresql_server_conf is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.postgresql : Link generated conf file with server one] *** task path: /tmp/collections-CcY/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/main.yml:205 Saturday 16 May 2026 15:21:37 -0400 (0:00:00.021) 0:00:19.047 ********** skipping: [managed-node1] => { "changed": false, "false_condition": "postgresql_server_conf is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.postgresql : Record role success fingerprint] *** task path: /tmp/collections-CcY/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/main.yml:211 Saturday 16 May 2026 15:21:37 -0400 (0:00:00.023) 0:00:19.071 ********** ok: [managed-node1] => { "changed": false } TASK [Flush handlers] ********************************************************** task path: /tmp/collections-CcY/ansible_collections/fedora/linux_system_roles/tests/postgresql/tests_input_file.yml:13 Saturday 16 May 2026 15:21:38 -0400 (0:00:00.340) 0:00:19.411 ********** NOTIFIED HANDLER fedora.linux_system_roles.postgresql : Restart postgresql for managed-node1 META: triggered running handlers for managed-node1 RUNNING HANDLER [fedora.linux_system_roles.postgresql : Restart postgresql] **** task path: /tmp/collections-CcY/ansible_collections/fedora/linux_system_roles/roles/postgresql/handlers/main.yml:3 Saturday 16 May 2026 15:21:38 -0400 (0:00:00.004) 0:00:19.416 ********** changed: [managed-node1] => { "changed": true, "name": "postgresql", "state": "started", "status": { "ActiveEnterTimestamp": "Sat 2026-05-16 15:21:33 EDT", "ActiveEnterTimestampMonotonic": "299751631", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "systemd-journald.socket sysinit.target basic.target network.target system.slice", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Sat 2026-05-16 15:21:33 EDT", "AssertTimestampMonotonic": "299699767", "Before": "shutdown.target multi-user.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": "yes", "ConditionTimestamp": "Sat 2026-05-16 15:21:33 EDT", "ConditionTimestampMonotonic": "299699766", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlGroup": "/system.slice/postgresql.service", "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": "24997", "ExecMainStartTimestamp": "Sat 2026-05-16 15:21:33 EDT", "ExecMainStartTimestampMonotonic": "299709067", "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=[Sat 2026-05-16 15:21:33 EDT] ; stop_time=[n/a] ; pid=24997 ; 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=[Sat 2026-05-16 15:21:33 EDT] ; stop_time=[Sat 2026-05-16 15:21:33 EDT] ; pid=24994 ; code=exited ; status=0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/postgresql.service", "FreezerState": "running", "GID": "26", "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", "InactiveExitTimestamp": "Sat 2026-05-16 15:21:33 EDT", "InactiveExitTimestampMonotonic": "299700737", "InvocationID": "8f014307bf094eef96dbda9f0a8b2feb", "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": "14004", "LimitNPROCSoft": "14004", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14004", "LimitSIGPENDINGSoft": "14004", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "24997", "MemoryAccounting": "yes", "MemoryCurrent": "19193856", "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": "system.slice sysinit.target", "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]", "StateChangeTimestamp": "Sat 2026-05-16 15:21:33 EDT", "StateChangeTimestampMonotonic": "299751631", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "8", "TasksMax": "22406", "TimeoutStartUSec": "infinity", "TimeoutStopUSec": "infinity", "TimerSlackNSec": "50000", "Transient": "no", "Type": "notify", "UID": "26", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "enabled", "User": "postgres", "UtmpMode": "init", "WantedBy": "multi-user.target", "WatchdogTimestamp": "Sat 2026-05-16 15:21:33 EDT", "WatchdogTimestampMonotonic": "299751628", "WatchdogUSec": "0" } } TASK [Get content of database] ************************************************* task path: /tmp/collections-CcY/ansible_collections/fedora/linux_system_roles/tests/postgresql/tests_input_file.yml:16 Saturday 16 May 2026 15:21:39 -0400 (0:00:01.022) 0:00:20.438 ********** ok: [managed-node1] => { "changed": false, "cmd": "set -euo pipefail\necho \"SELECT * FROM mytable;\" | psql\n", "delta": "0:00:00.012695", "end": "2026-05-16 15:21:39.410150", "rc": 0, "start": "2026-05-16 15:21:39.397455" } STDOUT: mynumber | name ----------+------ 1 | test (1 row) TASK [Check content of database] *********************************************** task path: /tmp/collections-CcY/ansible_collections/fedora/linux_system_roles/tests/postgresql/tests_input_file.yml:25 Saturday 16 May 2026 15:21:39 -0400 (0:00:00.365) 0:00:20.804 ********** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Clean up] **************************************************************** task path: /tmp/collections-CcY/ansible_collections/fedora/linux_system_roles/tests/postgresql/tests_input_file.yml:42 Saturday 16 May 2026 15:21:39 -0400 (0:00:00.019) 0:00:20.824 ********** included: /tmp/collections-CcY/ansible_collections/fedora/linux_system_roles/tests/postgresql/tasks/clean_instance.yml for managed-node1 TASK [Run handlers] ************************************************************ task path: /tmp/collections-CcY/ansible_collections/fedora/linux_system_roles/tests/postgresql/tasks/clean_instance.yml:3 Saturday 16 May 2026 15:21:39 -0400 (0:00:00.025) 0:00:20.849 ********** META: triggered running handlers for managed-node1 TASK [Uninstall postgresql] **************************************************** task path: /tmp/collections-CcY/ansible_collections/fedora/linux_system_roles/tests/postgresql/tasks/clean_instance.yml:6 Saturday 16 May 2026 15:21:39 -0400 (0:00:00.004) 0:00:20.853 ********** changed: [managed-node1] => { "changed": true, "rc": 0, "results": [ "Module postgresql:13/server removed.", "Removed: postgresql-13.7-2.module_el8.6.0+1152+d0162c0a.x86_64", "Removed: postgresql-server-13.7-2.module_el8.6.0+1152+d0162c0a.x86_64" ] } TASK [Stop and disable postgresql service] ************************************* task path: /tmp/collections-CcY/ansible_collections/fedora/linux_system_roles/tests/postgresql/tasks/clean_instance.yml:20 Saturday 16 May 2026 15:21:44 -0400 (0:00:04.810) 0:00:25.664 ********** skipping: [managed-node1] => { "changed": false, "false_condition": "__postgresql_is_ostree | d(false)", "skip_reason": "Conditional result was False" } TASK [Remove data directory] *************************************************** task path: /tmp/collections-CcY/ansible_collections/fedora/linux_system_roles/tests/postgresql/tasks/clean_instance.yml:27 Saturday 16 May 2026 15:21:44 -0400 (0:00:00.018) 0:00:25.683 ********** changed: [managed-node1] => { "changed": true, "path": "/var/lib/pgsql/data", "state": "absent" } TASK [Remove config files] ***************************************************** task path: /tmp/collections-CcY/ansible_collections/fedora/linux_system_roles/tests/postgresql/tasks/clean_instance.yml:32 Saturday 16 May 2026 15:21:44 -0400 (0:00:00.402) 0:00:26.086 ********** ok: [managed-node1] => (item=/var/lib/pgsql/data/postgresql.conf) => { "ansible_loop_var": "item", "changed": false, "item": "/var/lib/pgsql/data/postgresql.conf", "path": "/var/lib/pgsql/data/postgresql.conf", "state": "absent" } ok: [managed-node1] => (item=/var/lib/pgsql/data/pg_hba.conf) => { "ansible_loop_var": "item", "changed": false, "item": "/var/lib/pgsql/data/pg_hba.conf", "path": "/var/lib/pgsql/data/pg_hba.conf", "state": "absent" } ok: [managed-node1] => (item=/etc/postgresql/system-roles.conf) => { "ansible_loop_var": "item", "changed": false, "item": "/etc/postgresql/system-roles.conf", "path": "/etc/postgresql/system-roles.conf", "state": "absent" } changed: [managed-node1] => (item=/etc/postgresql/system-roles-internal.conf) => { "ansible_loop_var": "item", "changed": true, "item": "/etc/postgresql/system-roles-internal.conf", "path": "/etc/postgresql/system-roles-internal.conf", "state": "absent" } TASK [Dump logs] *************************************************************** task path: /tmp/collections-CcY/ansible_collections/fedora/linux_system_roles/tests/postgresql/tasks/clean_instance.yml:42 Saturday 16 May 2026 15:21:46 -0400 (0:00:01.315) 0:00:27.402 ********** ok: [managed-node1] => { "changed": false, "cmd": [ "journalctl", "-u", "postgresql" ], "delta": "0:00:00.006911", "end": "2026-05-16 15:21:46.350104", "rc": 0, "start": "2026-05-16 15:21:46.343193" } STDOUT: -- Logs begin at Sat 2026-05-16 15:16:34 EDT, end at Sat 2026-05-16 15:21:46 EDT. -- May 16 15:20:04 ip-10-31-11-69.testing-farm.us-east-1.aws.redhat.com systemd[1]: Starting PostgreSQL database server... May 16 15:20:04 ip-10-31-11-69.testing-farm.us-east-1.aws.redhat.com postmaster[10380]: 2026-05-16 15:20:04.793 EDT [10380] LOG: redirecting log output to logging collector process May 16 15:20:04 ip-10-31-11-69.testing-farm.us-east-1.aws.redhat.com postmaster[10380]: 2026-05-16 15:20:04.793 EDT [10380] HINT: Future log output will appear in directory "log". May 16 15:20:04 ip-10-31-11-69.testing-farm.us-east-1.aws.redhat.com systemd[1]: Started PostgreSQL database server. May 16 15:20:23 ip-10-31-11-69.testing-farm.us-east-1.aws.redhat.com systemd[1]: Stopping PostgreSQL database server... May 16 15:20:23 ip-10-31-11-69.testing-farm.us-east-1.aws.redhat.com systemd[1]: postgresql.service: Killing process 10381 (postmaster) with signal SIGKILL. May 16 15:20:23 ip-10-31-11-69.testing-farm.us-east-1.aws.redhat.com systemd[1]: postgresql.service: Succeeded. May 16 15:20:23 ip-10-31-11-69.testing-farm.us-east-1.aws.redhat.com systemd[1]: Stopped PostgreSQL database server. May 16 15:20:23 ip-10-31-11-69.testing-farm.us-east-1.aws.redhat.com systemd[1]: Starting PostgreSQL database server... May 16 15:20:23 ip-10-31-11-69.testing-farm.us-east-1.aws.redhat.com postmaster[13942]: 2026-05-16 15:20:23.375 EDT [13942] LOG: redirecting log output to logging collector process May 16 15:20:23 ip-10-31-11-69.testing-farm.us-east-1.aws.redhat.com postmaster[13942]: 2026-05-16 15:20:23.375 EDT [13942] HINT: Future log output will appear in directory "log". May 16 15:20:23 ip-10-31-11-69.testing-farm.us-east-1.aws.redhat.com systemd[1]: Started PostgreSQL database server. May 16 15:20:29 ip-10-31-11-69.testing-farm.us-east-1.aws.redhat.com systemd[1]: Stopping PostgreSQL database server... May 16 15:20:29 ip-10-31-11-69.testing-farm.us-east-1.aws.redhat.com systemd[1]: postgresql.service: Killing process 13943 (postmaster) with signal SIGKILL. May 16 15:20:29 ip-10-31-11-69.testing-farm.us-east-1.aws.redhat.com systemd[1]: postgresql.service: Succeeded. May 16 15:20:29 ip-10-31-11-69.testing-farm.us-east-1.aws.redhat.com systemd[1]: Stopped PostgreSQL database server. May 16 15:20:48 ip-10-31-11-69.testing-farm.us-east-1.aws.redhat.com systemd[1]: Starting PostgreSQL database server... May 16 15:20:48 ip-10-31-11-69.testing-farm.us-east-1.aws.redhat.com postmaster[18879]: 2026-05-16 15:20:48.259 EDT [18879] LOG: redirecting log output to logging collector process May 16 15:20:48 ip-10-31-11-69.testing-farm.us-east-1.aws.redhat.com postmaster[18879]: 2026-05-16 15:20:48.259 EDT [18879] HINT: Future log output will appear in directory "log". May 16 15:20:48 ip-10-31-11-69.testing-farm.us-east-1.aws.redhat.com systemd[1]: Started PostgreSQL database server. May 16 15:20:51 ip-10-31-11-69.testing-farm.us-east-1.aws.redhat.com systemd[1]: Stopping PostgreSQL database server... May 16 15:20:51 ip-10-31-11-69.testing-farm.us-east-1.aws.redhat.com systemd[1]: postgresql.service: Killing process 18880 (postmaster) with signal SIGKILL. May 16 15:20:51 ip-10-31-11-69.testing-farm.us-east-1.aws.redhat.com systemd[1]: postgresql.service: Succeeded. May 16 15:20:51 ip-10-31-11-69.testing-farm.us-east-1.aws.redhat.com systemd[1]: Stopped PostgreSQL database server. May 16 15:20:51 ip-10-31-11-69.testing-farm.us-east-1.aws.redhat.com systemd[1]: Starting PostgreSQL database server... May 16 15:20:51 ip-10-31-11-69.testing-farm.us-east-1.aws.redhat.com postmaster[19687]: 2026-05-16 15:20:51.903 EDT [19687] LOG: redirecting log output to logging collector process May 16 15:20:51 ip-10-31-11-69.testing-farm.us-east-1.aws.redhat.com postmaster[19687]: 2026-05-16 15:20:51.903 EDT [19687] HINT: Future log output will appear in directory "log". May 16 15:20:51 ip-10-31-11-69.testing-farm.us-east-1.aws.redhat.com systemd[1]: Started PostgreSQL database server. May 16 15:21:13 ip-10-31-11-69.testing-farm.us-east-1.aws.redhat.com systemd[1]: Stopping PostgreSQL database server... May 16 15:21:13 ip-10-31-11-69.testing-farm.us-east-1.aws.redhat.com systemd[1]: postgresql.service: Killing process 19688 (postmaster) with signal SIGKILL. May 16 15:21:13 ip-10-31-11-69.testing-farm.us-east-1.aws.redhat.com systemd[1]: postgresql.service: Succeeded. May 16 15:21:13 ip-10-31-11-69.testing-farm.us-east-1.aws.redhat.com systemd[1]: Stopped PostgreSQL database server. May 16 15:21:33 ip-10-31-11-69.testing-farm.us-east-1.aws.redhat.com systemd[1]: Starting PostgreSQL database server... May 16 15:21:33 ip-10-31-11-69.testing-farm.us-east-1.aws.redhat.com postmaster[24997]: 2026-05-16 15:21:33.714 EDT [24997] LOG: redirecting log output to logging collector process May 16 15:21:33 ip-10-31-11-69.testing-farm.us-east-1.aws.redhat.com postmaster[24997]: 2026-05-16 15:21:33.714 EDT [24997] HINT: Future log output will appear in directory "log". May 16 15:21:33 ip-10-31-11-69.testing-farm.us-east-1.aws.redhat.com systemd[1]: Started PostgreSQL database server. May 16 15:21:38 ip-10-31-11-69.testing-farm.us-east-1.aws.redhat.com systemd[1]: Stopping PostgreSQL database server... May 16 15:21:38 ip-10-31-11-69.testing-farm.us-east-1.aws.redhat.com systemd[1]: postgresql.service: Killing process 24998 (postmaster) with signal SIGKILL. May 16 15:21:38 ip-10-31-11-69.testing-farm.us-east-1.aws.redhat.com systemd[1]: postgresql.service: Succeeded. May 16 15:21:38 ip-10-31-11-69.testing-farm.us-east-1.aws.redhat.com systemd[1]: Stopped PostgreSQL database server. May 16 15:21:38 ip-10-31-11-69.testing-farm.us-east-1.aws.redhat.com systemd[1]: Starting PostgreSQL database server... May 16 15:21:39 ip-10-31-11-69.testing-farm.us-east-1.aws.redhat.com postmaster[26404]: 2026-05-16 15:21:39.014 EDT [26404] LOG: redirecting log output to logging collector process May 16 15:21:39 ip-10-31-11-69.testing-farm.us-east-1.aws.redhat.com postmaster[26404]: 2026-05-16 15:21:39.014 EDT [26404] HINT: Future log output will appear in directory "log". May 16 15:21:39 ip-10-31-11-69.testing-farm.us-east-1.aws.redhat.com systemd[1]: Started PostgreSQL database server. May 16 15:21:43 ip-10-31-11-69.testing-farm.us-east-1.aws.redhat.com systemd[1]: Stopping PostgreSQL database server... May 16 15:21:43 ip-10-31-11-69.testing-farm.us-east-1.aws.redhat.com systemd[1]: postgresql.service: Killing process 26406 (postmaster) with signal SIGKILL. May 16 15:21:43 ip-10-31-11-69.testing-farm.us-east-1.aws.redhat.com systemd[1]: postgresql.service: Succeeded. May 16 15:21:43 ip-10-31-11-69.testing-farm.us-east-1.aws.redhat.com systemd[1]: Stopped PostgreSQL database server. PLAY RECAP ********************************************************************* managed-node1 : ok=37 changed=10 unreachable=0 failed=0 skipped=26 rescued=0 ignored=0 SYSTEM ROLES ERRORS BEGIN v1 [] SYSTEM ROLES ERRORS END v1 TASKS RECAP ******************************************************************** Saturday 16 May 2026 15:21:46 -0400 (0:00:00.334) 0:00:27.737 ********** =============================================================================== fedora.linux_system_roles.postgresql : Ensure required packages are installed --- 6.36s /tmp/collections-CcY/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/main.yml:49 Uninstall postgresql ---------------------------------------------------- 4.81s /tmp/collections-CcY/ansible_collections/fedora/linux_system_roles/tests/postgresql/tasks/clean_instance.yml:6 fedora.linux_system_roles.postgresql : Gather the package facts --------- 1.63s /tmp/collections-CcY/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/main.yml:8 fedora.linux_system_roles.postgresql : Enable and start existing instance of postgresql server --- 1.36s /tmp/collections-CcY/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/main.yml:109 Remove config files ----------------------------------------------------- 1.32s /tmp/collections-CcY/ansible_collections/fedora/linux_system_roles/tests/postgresql/tasks/clean_instance.yml:32 fedora.linux_system_roles.postgresql : Init DB on booted systems (with postgresql-setup) --- 1.11s /tmp/collections-CcY/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/main.yml:58 Gathering Facts --------------------------------------------------------- 1.10s /tmp/collections-CcY/ansible_collections/fedora/linux_system_roles/tests/postgresql/tests_input_file.yml:2 fedora.linux_system_roles.postgresql : Restart postgresql --------------- 1.02s /tmp/collections-CcY/ansible_collections/fedora/linux_system_roles/roles/postgresql/handlers/main.yml:3 fedora.linux_system_roles.postgresql : Copy the sql input file to the host simple.sql --- 0.81s /tmp/collections-CcY/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/input_sql_file.yml:17 fedora.linux_system_roles.postgresql : Ensure ansible_facts used by role --- 0.79s /tmp/collections-CcY/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/set_vars.yml:2 fedora.linux_system_roles.postgresql : Generate postgresql system-roles-internal.conf --- 0.69s /tmp/collections-CcY/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/main.yml:182 fedora.linux_system_roles.postgresql : Link generated conf file with server one --- 0.44s /tmp/collections-CcY/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/main.yml:175 fedora.linux_system_roles.postgresql : Remove sql script from the host simple.sql --- 0.43s /tmp/collections-CcY/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/input_sql_file.yml:42 fedora.linux_system_roles.postgresql : Run systemctl -------------------- 0.43s /tmp/collections-CcY/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/set_vars.yml:28 fedora.linux_system_roles.postgresql : Record role begin fingerprint ---- 0.42s /tmp/collections-CcY/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/set_vars.yml:7 fedora.linux_system_roles.postgresql : Check if system is ostree -------- 0.42s /tmp/collections-CcY/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/set_vars.yml:16 fedora.linux_system_roles.postgresql : Create a tempfile for the SQL file on the host --- 0.42s /tmp/collections-CcY/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/input_sql_file.yml:11 Remove data directory --------------------------------------------------- 0.40s /tmp/collections-CcY/ansible_collections/fedora/linux_system_roles/tests/postgresql/tasks/clean_instance.yml:27 fedora.linux_system_roles.postgresql : Run SQL script ------------------- 0.38s /tmp/collections-CcY/ansible_collections/fedora/linux_system_roles/roles/postgresql/tasks/input_sql_file.yml:28 Get content of database ------------------------------------------------- 0.37s /tmp/collections-CcY/ansible_collections/fedora/linux_system_roles/tests/postgresql/tests_input_file.yml:16