# STDOUT: ---v---v---v---v---v--- ansible-playbook 2.9.27 config file = /etc/ansible/ansible.cfg configured module search path = ['/home/jenkins/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /opt/ansible-2.9/lib/python3.9/site-packages/ansible executable location = /opt/ansible-2.9/bin/ansible-playbook python version = 3.9.18 (main, Sep 7 2023, 00:00:00) [GCC 11.4.1 20230605 (Red Hat 11.4.1-2)] Using /etc/ansible/ansible.cfg as config file 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_set_file.yml *************************************************** 1 plays in /WORKDIR/git-postfix_files_feature84_84rje/tests/tests_set_file.yml PLAY [Create a postmapped file] ************************************************ TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-postfix_files_feature84_84rje/tests/tests_set_file.yml:2 Monday 01 July 2024 14:05:07 +0000 (0:00:00.013) 0:00:00.013 *********** ok: [sut] META: ran handlers TASK [Run the role with test postmap file] ************************************* task path: /WORKDIR/git-postfix_files_feature84_84rje/tests/tests_set_file.yml:12 Monday 01 July 2024 14:05:08 +0000 (0:00:00.555) 0:00:00.569 *********** TASK [linux-system-roles.postfix : Ensure ansible_facts required by role] ****** task path: /WORKDIR/git-postfix_files_feature84_84rje/tests/roles/linux-system-roles.postfix/tasks/main.yml:2 Monday 01 July 2024 14:05:08 +0000 (0:00:00.021) 0:00:00.591 *********** included: /WORKDIR/git-postfix_files_feature84_84rje/tests/roles/linux-system-roles.postfix/tasks/set_facts.yml for sut TASK [linux-system-roles.postfix : Ensure ansible_facts used by role are present] *** task path: /WORKDIR/git-postfix_files_feature84_84rje/tests/roles/linux-system-roles.postfix/tasks/set_facts.yml:3 Monday 01 July 2024 14:05:08 +0000 (0:00:00.015) 0:00:00.606 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.postfix : Check if system is ostree] ****************** task path: /WORKDIR/git-postfix_files_feature84_84rje/tests/roles/linux-system-roles.postfix/tasks/set_facts.yml:12 Monday 01 July 2024 14:05:08 +0000 (0:00:00.020) 0:00:00.626 *********** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [linux-system-roles.postfix : Set flag to indicate system is ostree] ****** task path: /WORKDIR/git-postfix_files_feature84_84rje/tests/roles/linux-system-roles.postfix/tasks/set_facts.yml:17 Monday 01 July 2024 14:05:08 +0000 (0:00:00.200) 0:00:00.826 *********** ok: [sut] => { "ansible_facts": { "__postfix_is_ostree": false }, "changed": false } TASK [linux-system-roles.postfix : Get status of package(s) ['postfix']] ******* task path: /WORKDIR/git-postfix_files_feature84_84rje/tests/roles/linux-system-roles.postfix/tasks/main.yml:16 Monday 01 July 2024 14:05:08 +0000 (0:00:00.031) 0:00:00.858 *********** skipping: [sut] => (item=postfix) => { "ansible_loop_var": "item", "changed": false, "item": "postfix", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.postfix : Remove package(s) to reset original confs ['postfix']] *** task path: /WORKDIR/git-postfix_files_feature84_84rje/tests/roles/linux-system-roles.postfix/tasks/main.yml:23 Monday 01 July 2024 14:05:08 +0000 (0:00:00.014) 0:00:00.873 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.postfix : Get status of config files] ***************** task path: /WORKDIR/git-postfix_files_feature84_84rje/tests/roles/linux-system-roles.postfix/tasks/main.yml:41 Monday 01 July 2024 14:05:08 +0000 (0:00:00.012) 0:00:00.885 *********** skipping: [sut] => (item=postfix) => { "ansible_loop_var": "item", "changed": false, "item": "postfix", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.postfix : Remove config files - make empty] *********** task path: /WORKDIR/git-postfix_files_feature84_84rje/tests/roles/linux-system-roles.postfix/tasks/main.yml:48 Monday 01 July 2024 14:05:08 +0000 (0:00:00.012) 0:00:00.898 *********** TASK [linux-system-roles.postfix : Configure firewall] ************************* task path: /WORKDIR/git-postfix_files_feature84_84rje/tests/roles/linux-system-roles.postfix/tasks/main.yml:60 Monday 01 July 2024 14:05:08 +0000 (0:00:00.011) 0:00:00.910 *********** included: /WORKDIR/git-postfix_files_feature84_84rje/tests/roles/linux-system-roles.postfix/tasks/firewall.yml for sut TASK [Ensure the postfix ports status with the firewall role] ****************** task path: /WORKDIR/git-postfix_files_feature84_84rje/tests/roles/linux-system-roles.postfix/tasks/firewall.yml:3 Monday 01 July 2024 14:05:08 +0000 (0:00:00.011) 0:00:00.921 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.postfix : Configure selinux] ************************** task path: /WORKDIR/git-postfix_files_feature84_84rje/tests/roles/linux-system-roles.postfix/tasks/main.yml:63 Monday 01 July 2024 14:05:08 +0000 (0:00:00.009) 0:00:00.931 *********** included: /WORKDIR/git-postfix_files_feature84_84rje/tests/roles/linux-system-roles.postfix/tasks/selinux.yml for sut TASK [linux-system-roles.postfix : Get the smtp related tcp service ports] ***** task path: /WORKDIR/git-postfix_files_feature84_84rje/tests/roles/linux-system-roles.postfix/tasks/selinux.yml:12 Monday 01 July 2024 14:05:08 +0000 (0:00:00.015) 0:00:00.947 *********** skipping: [sut] => (item=smtp) => { "ansible_loop_var": "item", "changed": false, "item": "smtp", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=smtps) => { "ansible_loop_var": "item", "changed": false, "item": "smtps", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=smtp-submission) => { "ansible_loop_var": "item", "changed": false, "item": "smtp-submission", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.postfix : Initialize _postfix_selinux] **************** task path: /WORKDIR/git-postfix_files_feature84_84rje/tests/roles/linux-system-roles.postfix/tasks/selinux.yml:24 Monday 01 July 2024 14:05:08 +0000 (0:00:00.015) 0:00:00.963 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.postfix : Add the smtp related service ports to _postfix_selinux] *** task path: /WORKDIR/git-postfix_files_feature84_84rje/tests/roles/linux-system-roles.postfix/tasks/selinux.yml:28 Monday 01 July 2024 14:05:08 +0000 (0:00:00.010) 0:00:00.973 *********** skipping: [sut] => (item={'changed': False, 'skipped': True, 'skip_reason': 'Conditional result was False', 'item': 'smtp', 'ansible_loop_var': 'item'}) => { "ansible_loop_var": "item", "changed": false, "item": { "ansible_loop_var": "item", "changed": false, "item": "smtp", "skip_reason": "Conditional result was False", "skipped": true }, "skip_reason": "Conditional result was False" } skipping: [sut] => (item={'changed': False, 'skipped': True, 'skip_reason': 'Conditional result was False', 'item': 'smtps', 'ansible_loop_var': 'item'}) => { "ansible_loop_var": "item", "changed": false, "item": { "ansible_loop_var": "item", "changed": false, "item": "smtps", "skip_reason": "Conditional result was False", "skipped": true }, "skip_reason": "Conditional result was False" } skipping: [sut] => (item={'changed': False, 'skipped': True, 'skip_reason': 'Conditional result was False', 'item': 'smtp-submission', 'ansible_loop_var': 'item'}) => { "ansible_loop_var": "item", "changed": false, "item": { "ansible_loop_var": "item", "changed": false, "item": "smtp-submission", "skip_reason": "Conditional result was False", "skipped": true }, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.postfix : Set hardcoded ports to _postfix_selinux for no firewall or rhel-6 or not redhat] *** task path: /WORKDIR/git-postfix_files_feature84_84rje/tests/roles/linux-system-roles.postfix/tasks/selinux.yml:39 Monday 01 July 2024 14:05:08 +0000 (0:00:00.017) 0:00:00.990 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure the service and the ports status with the selinux role] *********** task path: /WORKDIR/git-postfix_files_feature84_84rje/tests/roles/linux-system-roles.postfix/tasks/selinux.yml:54 Monday 01 July 2024 14:05:08 +0000 (0:00:00.009) 0:00:01.000 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.postfix : Install Postfix] **************************** task path: /WORKDIR/git-postfix_files_feature84_84rje/tests/roles/linux-system-roles.postfix/tasks/main.yml:66 Monday 01 July 2024 14:05:08 +0000 (0:00:00.009) 0:00:01.010 *********** ok: [sut] => { "changed": false, "rc": 0, "results": [ "2:postfix-2.10.1-9.el7.x86_64 providing postfix is already installed" ] } TASK [linux-system-roles.postfix : Enable Postfix] ***************************** task path: /WORKDIR/git-postfix_files_feature84_84rje/tests/roles/linux-system-roles.postfix/tasks/main.yml:73 Monday 01 July 2024 14:05:09 +0000 (0:00:00.468) 0:00:01.478 *********** ok: [sut] => { "changed": false, "enabled": true, "name": "postfix", "state": "started", "status": { "ActiveEnterTimestamp": "Mon 2024-07-01 09:58:24 EDT", "ActiveEnterTimestampMonotonic": "31222380", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "syslog.target systemd-journald.socket system.slice basic.target network.target", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Mon 2024-07-01 09:58:22 EDT", "AssertTimestampMonotonic": "28779257", "Before": "shutdown.target multi-user.target", "BlockIOAccounting": "no", "BlockIOWeight": "18446744073709551615", "CPUAccounting": "no", "CPUQuotaPerSecUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "18446744073709551615", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "18446744073709551615", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Mon 2024-07-01 09:58:22 EDT", "ConditionTimestampMonotonic": "28779256", "Conflicts": "sendmail.service exim.service shutdown.target", "ControlGroup": "/system.slice/postfix.service", "ControlPID": "0", "DefaultDependencies": "yes", "Delegate": "no", "Description": "Postfix Mail Transport Agent", "DevicePolicy": "auto", "EnvironmentFile": "/etc/sysconfig/network (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "1188", "ExecMainStartTimestamp": "Mon 2024-07-01 09:58:24 EDT", "ExecMainStartTimestampMonotonic": "31222322", "ExecMainStatus": "0", "ExecReload": "{ path=/usr/sbin/postfix ; argv[]=/usr/sbin/postfix reload ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStart": "{ path=/usr/sbin/postfix ; argv[]=/usr/sbin/postfix start ; ignore_errors=no ; start_time=[Mon 2024-07-01 09:58:23 EDT] ; stop_time=[Mon 2024-07-01 09:58:24 EDT] ; pid=885 ; code=exited ; status=0 }", "ExecStartPre": "{ path=/usr/libexec/postfix/chroot-update ; argv[]=/usr/libexec/postfix/chroot-update ; ignore_errors=yes ; start_time=[Mon 2024-07-01 09:58:23 EDT] ; stop_time=[Mon 2024-07-01 09:58:23 EDT] ; pid=881 ; code=exited ; status=0 }", "ExecStop": "{ path=/usr/sbin/postfix ; argv[]=/usr/sbin/postfix stop ; 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/postfix.service", "GuessMainPID": "yes", "IOScheduling": "0", "Id": "postfix.service", "IgnoreOnIsolate": "no", "IgnoreOnSnapshot": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Mon 2024-07-01 09:58:22 EDT", "InactiveExitTimestampMonotonic": "28780128", "JobTimeoutAction": "none", "JobTimeoutUSec": "0", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "18446744073709551615", "LimitCORE": "18446744073709551615", "LimitCPU": "18446744073709551615", "LimitDATA": "18446744073709551615", "LimitFSIZE": "18446744073709551615", "LimitLOCKS": "18446744073709551615", "LimitMEMLOCK": "65536", "LimitMSGQUEUE": "819200", "LimitNICE": "0", "LimitNOFILE": "4096", "LimitNPROC": "14311", "LimitRSS": "18446744073709551615", "LimitRTPRIO": "0", "LimitRTTIME": "18446744073709551615", "LimitSIGPENDING": "14311", "LimitSTACK": "18446744073709551615", "LoadState": "loaded", "MainPID": "1188", "MemoryAccounting": "no", "MemoryCurrent": "18446744073709551615", "MemoryLimit": "18446744073709551615", "MountFlags": "0", "Names": "postfix.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PIDFile": "/var/spool/postfix/pid/master.pid", "PermissionsStartOnly": "no", "PrivateDevices": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "ProtectHome": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "Requires": "system.slice basic.target", "Restart": "no", "RestartUSec": "100ms", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitInterval": "10000000", "StartupBlockIOWeight": "18446744073709551615", "StartupCPUShares": "18446744073709551615", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "no", "TasksCurrent": "18446744073709551615", "TasksMax": "18446744073709551615", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "forking", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "enabled", "WantedBy": "multi-user.target", "WatchdogTimestamp": "Mon 2024-07-01 09:58:24 EDT", "WatchdogTimestampMonotonic": "31222346", "WatchdogUSec": "0" } } TASK [linux-system-roles.postfix : Get current config] ************************* task path: /WORKDIR/git-postfix_files_feature84_84rje/tests/roles/linux-system-roles.postfix/tasks/main.yml:79 Monday 01 July 2024 14:05:09 +0000 (0:00:00.394) 0:00:01.873 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.postfix : Check given config against current config] *** task path: /WORKDIR/git-postfix_files_feature84_84rje/tests/roles/linux-system-roles.postfix/tasks/main.yml:86 Monday 01 July 2024 14:05:09 +0000 (0:00:00.011) 0:00:01.884 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.postfix : Configure additional files] ***************** task path: /WORKDIR/git-postfix_files_feature84_84rje/tests/roles/linux-system-roles.postfix/tasks/main.yml:105 Monday 01 July 2024 14:05:09 +0000 (0:00:00.010) 0:00:01.895 *********** changed: [sut] => (item=None) => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true } NOTIFIED HANDLER linux-system-roles.postfix : Check postfix for sut NOTIFIED HANDLER linux-system-roles.postfix : Restart postfix for sut changed: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true } TASK [linux-system-roles.postfix : Postmap files] ****************************** task path: /WORKDIR/git-postfix_files_feature84_84rje/tests/roles/linux-system-roles.postfix/tasks/main.yml:121 Monday 01 July 2024 14:05:10 +0000 (0:00:00.435) 0:00:02.331 *********** fatal: [sut]: FAILED! => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result" } RUNNING HANDLER [linux-system-roles.postfix : Check postfix] ******************* task path: /WORKDIR/git-postfix_files_feature84_84rje/tests/roles/linux-system-roles.postfix/handlers/main.yml:2 Monday 01 July 2024 14:05:10 +0000 (0:00:00.012) 0:00:02.343 *********** RUNNING HANDLER [linux-system-roles.postfix : Restart postfix] ***************** task path: /WORKDIR/git-postfix_files_feature84_84rje/tests/roles/linux-system-roles.postfix/handlers/main.yml:7 Monday 01 July 2024 14:05:10 +0000 (0:00:00.000) 0:00:02.343 *********** to retry, use: --limit @/tmp/tests_set_file.retry PLAY RECAP ********************************************************************* sut : ok=9 changed=1 unreachable=0 failed=1 skipped=13 rescued=0 ignored=0 Monday 01 July 2024 14:05:10 +0000 (0:00:00.000) 0:00:02.344 *********** =============================================================================== Gathering Facts --------------------------------------------------------- 0.56s /WORKDIR/git-postfix_files_feature84_84rje/tests/tests_set_file.yml:2 --------- linux-system-roles.postfix : Install Postfix ---------------------------- 0.47s /WORKDIR/git-postfix_files_feature84_84rje/tests/roles/linux-system-roles.postfix/tasks/main.yml:66 linux-system-roles.postfix : Configure additional files ----------------- 0.44s /WORKDIR/git-postfix_files_feature84_84rje/tests/roles/linux-system-roles.postfix/tasks/main.yml:105 linux-system-roles.postfix : Enable Postfix ----------------------------- 0.39s /WORKDIR/git-postfix_files_feature84_84rje/tests/roles/linux-system-roles.postfix/tasks/main.yml:73 linux-system-roles.postfix : Check if system is ostree ------------------ 0.20s /WORKDIR/git-postfix_files_feature84_84rje/tests/roles/linux-system-roles.postfix/tasks/set_facts.yml:12 linux-system-roles.postfix : Set flag to indicate system is ostree ------ 0.03s /WORKDIR/git-postfix_files_feature84_84rje/tests/roles/linux-system-roles.postfix/tasks/set_facts.yml:17 Run the role with test postmap file ------------------------------------- 0.02s /WORKDIR/git-postfix_files_feature84_84rje/tests/tests_set_file.yml:12 -------- linux-system-roles.postfix : Ensure ansible_facts used by role are present --- 0.02s /WORKDIR/git-postfix_files_feature84_84rje/tests/roles/linux-system-roles.postfix/tasks/set_facts.yml:3 linux-system-roles.postfix : Add the smtp related service ports to _postfix_selinux --- 0.02s /WORKDIR/git-postfix_files_feature84_84rje/tests/roles/linux-system-roles.postfix/tasks/selinux.yml:28 linux-system-roles.postfix : Get the smtp related tcp service ports ----- 0.02s /WORKDIR/git-postfix_files_feature84_84rje/tests/roles/linux-system-roles.postfix/tasks/selinux.yml:12 linux-system-roles.postfix : Ensure ansible_facts required by role ------ 0.02s /WORKDIR/git-postfix_files_feature84_84rje/tests/roles/linux-system-roles.postfix/tasks/main.yml:2 linux-system-roles.postfix : Configure selinux -------------------------- 0.02s /WORKDIR/git-postfix_files_feature84_84rje/tests/roles/linux-system-roles.postfix/tasks/main.yml:63 linux-system-roles.postfix : Get status of package(s) ['postfix'] ------- 0.01s /WORKDIR/git-postfix_files_feature84_84rje/tests/roles/linux-system-roles.postfix/tasks/main.yml:16 linux-system-roles.postfix : Get status of config files ----------------- 0.01s /WORKDIR/git-postfix_files_feature84_84rje/tests/roles/linux-system-roles.postfix/tasks/main.yml:41 linux-system-roles.postfix : Remove package(s) to reset original confs ['postfix'] --- 0.01s /WORKDIR/git-postfix_files_feature84_84rje/tests/roles/linux-system-roles.postfix/tasks/main.yml:23 linux-system-roles.postfix : Postmap files ------------------------------ 0.01s /WORKDIR/git-postfix_files_feature84_84rje/tests/roles/linux-system-roles.postfix/tasks/main.yml:121 linux-system-roles.postfix : Configure firewall ------------------------- 0.01s /WORKDIR/git-postfix_files_feature84_84rje/tests/roles/linux-system-roles.postfix/tasks/main.yml:60 linux-system-roles.postfix : Remove config files - make empty ----------- 0.01s /WORKDIR/git-postfix_files_feature84_84rje/tests/roles/linux-system-roles.postfix/tasks/main.yml:48 linux-system-roles.postfix : Get current config ------------------------- 0.01s /WORKDIR/git-postfix_files_feature84_84rje/tests/roles/linux-system-roles.postfix/tasks/main.yml:79 linux-system-roles.postfix : Check given config against current config --- 0.01s /WORKDIR/git-postfix_files_feature84_84rje/tests/roles/linux-system-roles.postfix/tasks/main.yml:86 ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- ---^---^---^---^---^---