+ cd /tmp/tmpbd6b6rb_/tests; TEST_SSHD_USEDNS_NO=True TEST_SUBJECTS=/cache/centos-7.qcow2c TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_firewall-70-8387ddf-centos-7-0_yfi139/artifacts ANSIBLE_COLLECTIONS_PATHS=/tmp/tmpgmo5pgqm:~/.ansible/collections:/usr/share/ansible/collections ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 --skip-tags=tests::cleanup,tests::nvme /tmp/tmpbd6b6rb_/_setup.yml /tmp/tmpbd6b6rb_/tests/tests_ansible.yml ansible-playbook 2.9.27 config file = /etc/ansible/ansible.cfg configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 2.7.5 (default, Aug 13 2020, 02:51:10) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] Using /etc/ansible/ansible.cfg as config file [ERROR]: GNU xorriso 1.4.8 : RockRidge filesystem manipulator, libburnia project. xorriso : NOTE : Local character set is now assumed as: 'utf-8' 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: _setup.yml *********************************************************** 1 plays in /tmp/tmpbd6b6rb_/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpbd6b6rb_/_setup.yml:5 Tuesday 22 February 2022 19:13:31 +0000 (0:00:00.024) 0:00:00.024 ****** ok: [/cache/centos-7.qcow2c] => { "groups": { "all": [ "/cache/centos-7.qcow2c" ], "localhost": [ "/cache/centos-7.qcow2c" ], "subjects": [ "/cache/centos-7.qcow2c" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpbd6b6rb_/_setup.yml:7 Tuesday 22 February 2022 19:13:31 +0000 (0:00:00.039) 0:00:00.064 ****** skipping: [/cache/centos-7.qcow2c] => { "changed": false, "skip_reason": "Conditional result was False" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-7.qcow2c : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 Tuesday 22 February 2022 19:13:31 +0000 (0:00:00.033) 0:00:00.097 ****** =============================================================================== debug ------------------------------------------------------------------- 0.04s /tmp/tmpbd6b6rb_/_setup.yml:5 ------------------------------------------------- fail -------------------------------------------------------------------- 0.03s /tmp/tmpbd6b6rb_/_setup.yml:7 ------------------------------------------------- statically imported: /tmp/tmpbd6b6rb_/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml PLAYBOOK: tests_ansible.yml **************************************************** 1 plays in /tmp/tmpbd6b6rb_/tests/tests_ansible.yml PLAY [Ensure that the roles runs with default parameters] ********************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpbd6b6rb_/tests/tests_ansible.yml:1 Tuesday 22 February 2022 19:13:32 +0000 (0:00:00.139) 0:00:00.237 ****** ok: [/cache/centos-7.qcow2c] META: ran handlers TASK [linux-system-roles.firewall : Install firewalld] ************************* task path: /tmp/tmpbd6b6rb_/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:2 Tuesday 22 February 2022 19:13:33 +0000 (0:00:01.215) 0:00:01.452 ****** changed: [/cache/centos-7.qcow2c] => { "changed": true, "changes": { "installed": [ "firewalld" ] }, "rc": 0, "results": [ "Loaded plugins: fastestmirror\nLoading mirror speeds from cached hostfile\n * base: mirror.ash.fastserv.com\n * extras: mirror.jaleco.com\n * updates: mirror.siena.edu\nResolving Dependencies\n--> Running transaction check\n---> Package firewalld.noarch 0:0.6.3-13.el7_9 will be installed\n--> Processing Dependency: python-firewall = 0.6.3-13.el7_9 for package: firewalld-0.6.3-13.el7_9.noarch\n--> Processing Dependency: firewalld-filesystem = 0.6.3-13.el7_9 for package: firewalld-0.6.3-13.el7_9.noarch\n--> Processing Dependency: ipset for package: firewalld-0.6.3-13.el7_9.noarch\n--> Processing Dependency: ebtables for package: firewalld-0.6.3-13.el7_9.noarch\n--> Running transaction check\n---> Package ebtables.x86_64 0:2.0.10-16.el7 will be installed\n---> Package firewalld-filesystem.noarch 0:0.6.3-13.el7_9 will be installed\n---> Package ipset.x86_64 0:7.1-1.el7 will be installed\n--> Processing Dependency: ipset-libs(x86-64) = 7.1-1.el7 for package: ipset-7.1-1.el7.x86_64\n--> Processing Dependency: libipset.so.13(LIBIPSET_4.8)(64bit) for package: ipset-7.1-1.el7.x86_64\n--> Processing Dependency: libipset.so.13(LIBIPSET_2.0)(64bit) for package: ipset-7.1-1.el7.x86_64\n--> Processing Dependency: libipset.so.13()(64bit) for package: ipset-7.1-1.el7.x86_64\n---> Package python-firewall.noarch 0:0.6.3-13.el7_9 will be installed\n--> Processing Dependency: python-slip-dbus for package: python-firewall-0.6.3-13.el7_9.noarch\n--> Running transaction check\n---> Package ipset-libs.x86_64 0:7.1-1.el7 will be installed\n---> Package python-slip-dbus.noarch 0:0.4.0-4.el7 will be installed\n--> Processing Dependency: python-slip = 0.4.0-4.el7 for package: python-slip-dbus-0.4.0-4.el7.noarch\n--> Running transaction check\n---> Package python-slip.noarch 0:0.4.0-4.el7 will be installed\n--> Finished Dependency Resolution\n\nDependencies Resolved\n\n================================================================================\n Package Arch Version Repository Size\n================================================================================\nInstalling:\n firewalld noarch 0.6.3-13.el7_9 updates 449 k\nInstalling for dependencies:\n ebtables x86_64 2.0.10-16.el7 base 123 k\n firewalld-filesystem noarch 0.6.3-13.el7_9 updates 51 k\n ipset x86_64 7.1-1.el7 base 39 k\n ipset-libs x86_64 7.1-1.el7 base 64 k\n python-firewall noarch 0.6.3-13.el7_9 updates 355 k\n python-slip noarch 0.4.0-4.el7 base 31 k\n python-slip-dbus noarch 0.4.0-4.el7 base 32 k\n\nTransaction Summary\n================================================================================\nInstall 1 Package (+7 Dependent packages)\n\nTotal download size: 1.1 M\nInstalled size: 4.5 M\nDownloading packages:\nPublic key for firewalld-filesystem-0.6.3-13.el7_9.noarch.rpm is not installed\nPublic key for ipset-7.1-1.el7.x86_64.rpm is not installed\n--------------------------------------------------------------------------------\nTotal 4.0 MB/s | 1.1 MB 00:00 \nRetrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7\nRunning transaction check\nRunning transaction test\nTransaction test succeeded\nRunning transaction\n Installing : ebtables-2.0.10-16.el7.x86_64 1/8 \n Installing : ipset-libs-7.1-1.el7.x86_64 2/8 \n Installing : ipset-7.1-1.el7.x86_64 3/8 \n Installing : python-slip-0.4.0-4.el7.noarch 4/8 \n Installing : python-slip-dbus-0.4.0-4.el7.noarch 5/8 \n Installing : python-firewall-0.6.3-13.el7_9.noarch 6/8 \n Installing : firewalld-filesystem-0.6.3-13.el7_9.noarch 7/8 \n Installing : firewalld-0.6.3-13.el7_9.noarch 8/8 \n Verifying : ipset-7.1-1.el7.x86_64 1/8 \n Verifying : python-slip-dbus-0.4.0-4.el7.noarch 2/8 \n Verifying : firewalld-filesystem-0.6.3-13.el7_9.noarch 3/8 \n Verifying : firewalld-0.6.3-13.el7_9.noarch 4/8 \n Verifying : python-slip-0.4.0-4.el7.noarch 5/8 \n Verifying : python-firewall-0.6.3-13.el7_9.noarch 6/8 \n Verifying : ipset-libs-7.1-1.el7.x86_64 7/8 \n Verifying : ebtables-2.0.10-16.el7.x86_64 8/8 \n\nInstalled:\n firewalld.noarch 0:0.6.3-13.el7_9 \n\nDependency Installed:\n ebtables.x86_64 0:2.0.10-16.el7 \n firewalld-filesystem.noarch 0:0.6.3-13.el7_9 \n ipset.x86_64 0:7.1-1.el7 \n ipset-libs.x86_64 0:7.1-1.el7 \n python-firewall.noarch 0:0.6.3-13.el7_9 \n python-slip.noarch 0:0.4.0-4.el7 \n python-slip-dbus.noarch 0:0.4.0-4.el7 \n\nComplete!\n" ] } MSG: warning: /var/cache/yum/x86_64/7/updates/packages/firewalld-filesystem-0.6.3-13.el7_9.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY Importing GPG key 0xF4A80EB5: Userid : "CentOS-7 Key (CentOS 7 Official Signing Key) " Fingerprint: 6341 ab27 53d7 8a78 a7c2 7bb1 24c6 a8a7 f4a8 0eb5 Package : centos-release-7-8.2003.0.el7.centos.x86_64 (installed) From : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 TASK [linux-system-roles.firewall : Install python-firewall] ******************* task path: /tmp/tmpbd6b6rb_/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:7 Tuesday 22 February 2022 19:13:45 +0000 (0:00:12.616) 0:00:14.068 ****** ok: [/cache/centos-7.qcow2c] => { "changed": false, "rc": 0, "results": [ "python-firewall-0.6.3-13.el7_9.noarch providing python-firewall is already installed" ] } TASK [linux-system-roles.firewall : Install python3-firewall] ****************** task path: /tmp/tmpbd6b6rb_/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:13 Tuesday 22 February 2022 19:13:46 +0000 (0:00:00.674) 0:00:14.742 ****** skipping: [/cache/centos-7.qcow2c] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Enable and start firewalld service] ******** task path: /tmp/tmpbd6b6rb_/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:19 Tuesday 22 February 2022 19:13:46 +0000 (0:00:00.057) 0:00:14.800 ****** changed: [/cache/centos-7.qcow2c] => { "changed": true, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "polkit.service system.slice basic.target dbus.service", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Before": "multi-user.target network-pre.target shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "18446744073709551615", "BusName": "org.fedoraproject.FirewallD1", "CPUAccounting": "no", "CPUQuotaPerSecUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "18446744073709551615", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "18446744073709551615", "ConditionResult": "no", "ConditionTimestampMonotonic": "0", "Conflicts": "shutdown.target ebtables.service ipset.service iptables.service ip6tables.service", "ControlPID": "0", "DefaultDependencies": "yes", "Delegate": "no", "Description": "firewalld - dynamic firewall daemon", "DevicePolicy": "auto", "Documentation": "man:firewalld(1)", "EnvironmentFile": "/etc/sysconfig/firewalld (ignore_errors=yes)", "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/sbin/firewalld ; argv[]=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS ; 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/firewalld.service", "GuessMainPID": "yes", "IOScheduling": "0", "Id": "firewalld.service", "IgnoreOnIsolate": "no", "IgnoreOnSnapshot": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestampMonotonic": "0", "JobTimeoutAction": "none", "JobTimeoutUSec": "0", "KillMode": "mixed", "KillSignal": "15", "LimitAS": "18446744073709551615", "LimitCORE": "18446744073709551615", "LimitCPU": "18446744073709551615", "LimitDATA": "18446744073709551615", "LimitFSIZE": "18446744073709551615", "LimitLOCKS": "18446744073709551615", "LimitMEMLOCK": "65536", "LimitMSGQUEUE": "819200", "LimitNICE": "0", "LimitNOFILE": "4096", "LimitNPROC": "7163", "LimitRSS": "18446744073709551615", "LimitRTPRIO": "0", "LimitRTTIME": "18446744073709551615", "LimitSIGPENDING": "7163", "LimitSTACK": "18446744073709551615", "LoadState": "loaded", "MainPID": "0", "MemoryAccounting": "no", "MemoryCurrent": "18446744073709551615", "MemoryLimit": "18446744073709551615", "MountFlags": "0", "Names": "firewalld.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "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": "null", "StandardInput": "null", "StandardOutput": "null", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitInterval": "10000000", "StartupBlockIOWeight": "18446744073709551615", "StartupCPUShares": "18446744073709551615", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "dead", "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": "dbus", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "enabled", "WantedBy": "multi-user.target", "Wants": "network-pre.target", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0" } } TASK [linux-system-roles.firewall : Configure firewall] ************************ task path: /tmp/tmpbd6b6rb_/tests/roles/linux-system-roles.firewall/tasks/main.yml:3 Tuesday 22 February 2022 19:13:47 +0000 (0:00:00.910) 0:00:15.710 ****** TASK [Remove custom zone] ****************************************************** task path: /tmp/tmpbd6b6rb_/tests/tests_ansible.yml:14 Tuesday 22 February 2022 19:13:47 +0000 (0:00:00.045) 0:00:15.756 ****** changed: [/cache/centos-7.qcow2c] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--delete-zone=custom" ], "delta": "0:00:00.276126", "end": "2022-02-22 19:13:47.767207", "failed_when_result": false, "rc": 112, "start": "2022-02-22 19:13:47.491081" } STDERR: Error: INVALID_ZONE: custom MSG: non-zero return code TASK [Reset internal zone to defaults] ***************************************** task path: /tmp/tmpbd6b6rb_/tests/tests_ansible.yml:19 Tuesday 22 February 2022 19:13:48 +0000 (0:00:00.733) 0:00:16.489 ****** changed: [/cache/centos-7.qcow2c] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=internal" ], "delta": "0:00:00.322690", "end": "2022-02-22 19:13:48.403260", "failed_when_result": false, "rc": 22, "start": "2022-02-22 19:13:48.080570" } STDERR: Error: NO_DEFAULTS: internal MSG: non-zero return code TASK [Reset trusted zone to defaults] ****************************************** task path: /tmp/tmpbd6b6rb_/tests/tests_ansible.yml:24 Tuesday 22 February 2022 19:13:48 +0000 (0:00:00.644) 0:00:17.134 ****** changed: [/cache/centos-7.qcow2c] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=trusted" ], "delta": "0:00:00.260902", "end": "2022-02-22 19:13:48.990405", "failed_when_result": false, "rc": 22, "start": "2022-02-22 19:13:48.729503" } STDERR: Error: NO_DEFAULTS: trusted MSG: non-zero return code TASK [Reset dmz zone to defaults] ********************************************** task path: /tmp/tmpbd6b6rb_/tests/tests_ansible.yml:29 Tuesday 22 February 2022 19:13:49 +0000 (0:00:00.581) 0:00:17.715 ****** changed: [/cache/centos-7.qcow2c] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=dmz" ], "delta": "0:00:00.268041", "end": "2022-02-22 19:13:49.582840", "failed_when_result": false, "rc": 22, "start": "2022-02-22 19:13:49.314799" } STDERR: Error: NO_DEFAULTS: dmz MSG: non-zero return code TASK [Reset drop zone to defaults] ********************************************* task path: /tmp/tmpbd6b6rb_/tests/tests_ansible.yml:34 Tuesday 22 February 2022 19:13:50 +0000 (0:00:00.591) 0:00:18.307 ****** changed: [/cache/centos-7.qcow2c] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=drop" ], "delta": "0:00:00.273790", "end": "2022-02-22 19:13:50.186409", "failed_when_result": false, "rc": 22, "start": "2022-02-22 19:13:49.912619" } STDERR: Error: NO_DEFAULTS: drop MSG: non-zero return code TASK [Reset public zone to defaults] ******************************************* task path: /tmp/tmpbd6b6rb_/tests/tests_ansible.yml:39 Tuesday 22 February 2022 19:13:50 +0000 (0:00:00.611) 0:00:18.919 ****** changed: [/cache/centos-7.qcow2c] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=public" ], "delta": "0:00:00.279947", "end": "2022-02-22 19:13:50.802623", "failed_when_result": false, "rc": 0, "start": "2022-02-22 19:13:50.522676" } STDOUT: success TASK [Reset default zone to defaults] ****************************************** task path: /tmp/tmpbd6b6rb_/tests/tests_ansible.yml:44 Tuesday 22 February 2022 19:13:51 +0000 (0:00:00.609) 0:00:19.529 ****** changed: [/cache/centos-7.qcow2c] => { "changed": true, "cmd": "zone=$(firewall-cmd --get-default-zone)\nfirewall-cmd --permanent --load-zone-defaults=$zone\n", "delta": "0:00:00.589707", "end": "2022-02-22 19:13:51.723219", "failed_when_result": false, "rc": 22, "start": "2022-02-22 19:13:51.133512" } STDERR: Error: NO_DEFAULTS: public MSG: non-zero return code TASK [Create custom zone] ****************************************************** task path: /tmp/tmpbd6b6rb_/tests/tests_ansible.yml:52 Tuesday 22 February 2022 19:13:52 +0000 (0:00:00.922) 0:00:20.451 ****** changed: [/cache/centos-7.qcow2c] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--new-zone=custom" ], "delta": "0:00:00.256682", "end": "2022-02-22 19:13:52.314517", "failed_when_result": false, "rc": 0, "start": "2022-02-22 19:13:52.057835" } STDOUT: success TASK [Reload firewalld] ******************************************************** task path: /tmp/tmpbd6b6rb_/tests/tests_ansible.yml:57 Tuesday 22 February 2022 19:13:52 +0000 (0:00:00.590) 0:00:21.042 ****** changed: [/cache/centos-7.qcow2c] => { "changed": true, "cmd": [ "firewall-cmd", "--reload" ], "delta": "0:00:00.452112", "end": "2022-02-22 19:13:53.083369", "failed_when_result": false, "rc": 0, "start": "2022-02-22 19:13:52.631257" } STDOUT: success TASK [Permit traffic in default zone for https service] ************************ task path: /tmp/tmpbd6b6rb_/tests/tests_ansible.yml:64 Tuesday 22 February 2022 19:13:53 +0000 (0:00:00.768) 0:00:21.810 ****** changed: [/cache/centos-7.qcow2c] => { "changed": true, "failed_when_result": false } TASK [Permit traffic in default zone for https service, again] ***************** task path: /tmp/tmpbd6b6rb_/tests/tests_ansible.yml:72 Tuesday 22 February 2022 19:13:54 +0000 (0:00:00.637) 0:00:22.447 ****** ok: [/cache/centos-7.qcow2c] => { "changed": false, "failed_when_result": false } TASK [Permit traffic in default zone on port 8081/tcp] ************************* task path: /tmp/tmpbd6b6rb_/tests/tests_ansible.yml:80 Tuesday 22 February 2022 19:13:54 +0000 (0:00:00.498) 0:00:22.945 ****** changed: [/cache/centos-7.qcow2c] => { "changed": true, "failed_when_result": false } TASK [Permit traffic in default zone on port 8081/tcp, again] ****************** task path: /tmp/tmpbd6b6rb_/tests/tests_ansible.yml:88 Tuesday 22 February 2022 19:13:55 +0000 (0:00:00.498) 0:00:23.444 ****** ok: [/cache/centos-7.qcow2c] => { "changed": false, "failed_when_result": false } TASK [Allow port 161-162/udp in permanent default zone] ************************ task path: /tmp/tmpbd6b6rb_/tests/tests_ansible.yml:96 Tuesday 22 February 2022 19:13:55 +0000 (0:00:00.529) 0:00:23.974 ****** changed: [/cache/centos-7.qcow2c] => { "changed": true, "failed_when_result": false } TASK [Allow port 161-162/udp in permanent default zone, again] ***************** task path: /tmp/tmpbd6b6rb_/tests/tests_ansible.yml:104 Tuesday 22 February 2022 19:13:56 +0000 (0:00:00.509) 0:00:24.483 ****** ok: [/cache/centos-7.qcow2c] => { "changed": false, "failed_when_result": false } TASK [Do not permit traffic in default zone on port 8081/tcp] ****************** task path: /tmp/tmpbd6b6rb_/tests/tests_ansible.yml:112 Tuesday 22 February 2022 19:13:56 +0000 (0:00:00.543) 0:00:25.027 ****** changed: [/cache/centos-7.qcow2c] => { "changed": true, "failed_when_result": false } TASK [Do not permit traffic in default zone on port 8081/tcp, again] *********** task path: /tmp/tmpbd6b6rb_/tests/tests_ansible.yml:120 Tuesday 22 February 2022 19:13:57 +0000 (0:00:00.526) 0:00:25.553 ****** ok: [/cache/centos-7.qcow2c] => { "changed": false, "failed_when_result": false } TASK [Allow service http in permanent dmz zone] ******************************** task path: /tmp/tmpbd6b6rb_/tests/tests_ansible.yml:128 Tuesday 22 February 2022 19:13:57 +0000 (0:00:00.516) 0:00:26.069 ****** changed: [/cache/centos-7.qcow2c] => { "changed": true, "failed_when_result": false } TASK [Allow service http in permanent dmz zone, again] ************************* task path: /tmp/tmpbd6b6rb_/tests/tests_ansible.yml:137 Tuesday 22 February 2022 19:13:58 +0000 (0:00:00.530) 0:00:26.600 ****** ok: [/cache/centos-7.qcow2c] => { "changed": false, "failed_when_result": false } TASK [Allow service ftp with limitation using rich rule in permanent default zone] *** task path: /tmp/tmpbd6b6rb_/tests/tests_ansible.yml:146 Tuesday 22 February 2022 19:13:58 +0000 (0:00:00.547) 0:00:27.147 ****** changed: [/cache/centos-7.qcow2c] => { "changed": true, "failed_when_result": false } TASK [Allow service ftp with limitation using rich rule in permanent default zone, again] *** task path: /tmp/tmpbd6b6rb_/tests/tests_ansible.yml:155 Tuesday 22 February 2022 19:13:59 +0000 (0:00:00.539) 0:00:27.686 ****** ok: [/cache/centos-7.qcow2c] => { "changed": false, "failed_when_result": false } TASK [Allow source 192.0.2.0/24 in internal zone] ****************************** task path: /tmp/tmpbd6b6rb_/tests/tests_ansible.yml:164 Tuesday 22 February 2022 19:14:00 +0000 (0:00:00.528) 0:00:28.215 ****** changed: [/cache/centos-7.qcow2c] => { "changed": true, "failed_when_result": false } TASK [Allow source 192.0.2.0/24 in internal zone, again] *********************** task path: /tmp/tmpbd6b6rb_/tests/tests_ansible.yml:173 Tuesday 22 February 2022 19:14:00 +0000 (0:00:00.531) 0:00:28.747 ****** ok: [/cache/centos-7.qcow2c] => { "changed": false, "failed_when_result": false } TASK [Allow interface eth2 in permanent trusted zone] ************************** task path: /tmp/tmpbd6b6rb_/tests/tests_ansible.yml:182 Tuesday 22 February 2022 19:14:01 +0000 (0:00:00.536) 0:00:29.283 ****** changed: [/cache/centos-7.qcow2c] => { "changed": true, "failed_when_result": false } TASK [Allow interface eth2 in permanent trusted zone, again] ******************* task path: /tmp/tmpbd6b6rb_/tests/tests_ansible.yml:191 Tuesday 22 February 2022 19:14:01 +0000 (0:00:00.564) 0:00:29.847 ****** ok: [/cache/centos-7.qcow2c] => { "changed": false, "failed_when_result": false } TASK [Allow masquerading in permament dmz zone] ******************************** task path: /tmp/tmpbd6b6rb_/tests/tests_ansible.yml:200 Tuesday 22 February 2022 19:14:02 +0000 (0:00:00.572) 0:00:30.420 ****** changed: [/cache/centos-7.qcow2c] => { "changed": true, "failed_when_result": false } TASK [Allow masquerading in permament dmz zone, again] ************************* task path: /tmp/tmpbd6b6rb_/tests/tests_ansible.yml:209 Tuesday 22 February 2022 19:14:02 +0000 (0:00:00.522) 0:00:30.942 ****** ok: [/cache/centos-7.qcow2c] => { "changed": false, "failed_when_result": false } TASK [Ensure permanent custom zone exists (no change)] ************************* task path: /tmp/tmpbd6b6rb_/tests/tests_ansible.yml:218 Tuesday 22 February 2022 19:14:03 +0000 (0:00:00.538) 0:00:31.481 ****** ok: [/cache/centos-7.qcow2c] => { "changed": false, "failed_when_result": false } TASK [Ensure ICMP block inversion in permanent drop zone] ********************** task path: /tmp/tmpbd6b6rb_/tests/tests_ansible.yml:226 Tuesday 22 February 2022 19:14:03 +0000 (0:00:00.507) 0:00:31.989 ****** changed: [/cache/centos-7.qcow2c] => { "changed": true, "failed_when_result": false } TASK [Ensure ICMP block inversion in permanent drop zone, again] *************** task path: /tmp/tmpbd6b6rb_/tests/tests_ansible.yml:235 Tuesday 22 February 2022 19:14:04 +0000 (0:00:00.545) 0:00:32.535 ****** ok: [/cache/centos-7.qcow2c] => { "changed": false, "failed_when_result": false } TASK [Block ICMP echo-request in permanent drop zone] ************************** task path: /tmp/tmpbd6b6rb_/tests/tests_ansible.yml:244 Tuesday 22 February 2022 19:14:04 +0000 (0:00:00.542) 0:00:33.078 ****** changed: [/cache/centos-7.qcow2c] => { "changed": true, "failed_when_result": false } TASK [Block ICMP echo-request in permanent drop zone, again] ******************* task path: /tmp/tmpbd6b6rb_/tests/tests_ansible.yml:253 Tuesday 22 February 2022 19:14:05 +0000 (0:00:00.520) 0:00:33.598 ****** ok: [/cache/centos-7.qcow2c] => { "changed": false, "failed_when_result": false } TASK [Ensure default target in permanent internal zone (no change)] ************ task path: /tmp/tmpbd6b6rb_/tests/tests_ansible.yml:262 Tuesday 22 February 2022 19:14:05 +0000 (0:00:00.509) 0:00:34.108 ****** ok: [/cache/centos-7.qcow2c] => { "changed": false, "failed_when_result": false } TASK [Ensure target ACCEPT in permanent internal zone] ************************* task path: /tmp/tmpbd6b6rb_/tests/tests_ansible.yml:271 Tuesday 22 February 2022 19:14:06 +0000 (0:00:00.536) 0:00:34.645 ****** changed: [/cache/centos-7.qcow2c] => { "changed": true, "failed_when_result": false } TASK [Ensure target ACCEPT in permanent internal zone, again] ****************** task path: /tmp/tmpbd6b6rb_/tests/tests_ansible.yml:280 Tuesday 22 February 2022 19:14:07 +0000 (0:00:00.806) 0:00:35.451 ****** ok: [/cache/centos-7.qcow2c] => { "changed": false, "failed_when_result": false } TASK [Ensure default target in permanent internal zone] ************************ task path: /tmp/tmpbd6b6rb_/tests/tests_ansible.yml:289 Tuesday 22 February 2022 19:14:07 +0000 (0:00:00.510) 0:00:35.962 ****** changed: [/cache/centos-7.qcow2c] => { "changed": true, "failed_when_result": false } TASK [Ensure default target in permanent internal zone, again] ***************** task path: /tmp/tmpbd6b6rb_/tests/tests_ansible.yml:298 Tuesday 22 February 2022 19:14:08 +0000 (0:00:00.851) 0:00:36.813 ****** ok: [/cache/centos-7.qcow2c] => { "changed": false, "failed_when_result": false } TASK [Redirect port 443 to 8443 with Rich Rule in permanent and runtime public zone] *** task path: /tmp/tmpbd6b6rb_/tests/tests_ansible.yml:307 Tuesday 22 February 2022 19:14:09 +0000 (0:00:00.550) 0:00:37.364 ****** [DEPRECATION WARNING]: Alias 'immediate' is deprecated. See the module docs for more information. This feature will be removed in a future release. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. changed: [/cache/centos-7.qcow2c] => { "changed": true, "failed_when_result": false } TASK [Redirect port 443 to 8443 with Rich Rule in permanent and runtime public zone, again] *** task path: /tmp/tmpbd6b6rb_/tests/tests_ansible.yml:319 Tuesday 22 February 2022 19:14:09 +0000 (0:00:00.548) 0:00:37.913 ****** ok: [/cache/centos-7.qcow2c] => { "changed": false, "failed_when_result": false } TASK [Firewalld custom zone] *************************************************** task path: /tmp/tmpbd6b6rb_/tests/tests_ansible.yml:331 Tuesday 22 February 2022 19:14:10 +0000 (0:00:00.526) 0:00:38.439 ****** changed: [/cache/centos-7.qcow2c] => { "changed": true } TASK [assert firewalld custom zone] ******************************************** task path: /tmp/tmpbd6b6rb_/tests/tests_ansible.yml:339 Tuesday 22 February 2022 19:14:10 +0000 (0:00:00.753) 0:00:39.193 ****** ok: [/cache/centos-7.qcow2c] => { "changed": false } MSG: All assertions passed TASK [Add masquerade to custom zone] ******************************************* task path: /tmp/tmpbd6b6rb_/tests/tests_ansible.yml:344 Tuesday 22 February 2022 19:14:11 +0000 (0:00:00.048) 0:00:39.241 ****** changed: [/cache/centos-7.qcow2c] => { "changed": true, "failed_when_result": false } TASK [Add masquerade to custom zone, again] ************************************ task path: /tmp/tmpbd6b6rb_/tests/tests_ansible.yml:354 Tuesday 22 February 2022 19:14:11 +0000 (0:00:00.553) 0:00:39.794 ****** ok: [/cache/centos-7.qcow2c] => { "changed": false, "failed_when_result": false } TASK [set default zone] ******************************************************** task path: /tmp/tmpbd6b6rb_/tests/tests_ansible.yml:364 Tuesday 22 February 2022 19:14:12 +0000 (0:00:00.555) 0:00:40.350 ****** changed: [/cache/centos-7.qcow2c] => { "changed": true, "failed_when_result": false } TASK [set default zone, again] ************************************************* task path: /tmp/tmpbd6b6rb_/tests/tests_ansible.yml:371 Tuesday 22 February 2022 19:14:12 +0000 (0:00:00.599) 0:00:40.949 ****** ok: [/cache/centos-7.qcow2c] => { "changed": false, "failed_when_result": false } TASK [Remove custom zone] ****************************************************** task path: /tmp/tmpbd6b6rb_/tests/tests_ansible.yml:383 Tuesday 22 February 2022 19:14:13 +0000 (0:00:00.538) 0:00:41.488 ****** changed: [/cache/centos-7.qcow2c] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--delete-zone=custom" ], "delta": "0:00:00.274922", "end": "2022-02-22 19:14:13.357935", "failed_when_result": false, "rc": 0, "start": "2022-02-22 19:14:13.083013" } STDOUT: success TASK [Reset internal zone to defaults] ***************************************** task path: /tmp/tmpbd6b6rb_/tests/tests_ansible.yml:388 Tuesday 22 February 2022 19:14:13 +0000 (0:00:00.600) 0:00:42.089 ****** changed: [/cache/centos-7.qcow2c] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=internal" ], "delta": "0:00:00.278154", "end": "2022-02-22 19:14:13.965171", "failed_when_result": false, "rc": 0, "start": "2022-02-22 19:14:13.687017" } STDOUT: success TASK [Reset trusted zone to defaults] ****************************************** task path: /tmp/tmpbd6b6rb_/tests/tests_ansible.yml:393 Tuesday 22 February 2022 19:14:14 +0000 (0:00:00.608) 0:00:42.697 ****** changed: [/cache/centos-7.qcow2c] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=trusted" ], "delta": "0:00:00.269141", "end": "2022-02-22 19:14:14.558295", "failed_when_result": false, "rc": 0, "start": "2022-02-22 19:14:14.289154" } STDOUT: success TASK [Reset dmz zone to defaults] ********************************************** task path: /tmp/tmpbd6b6rb_/tests/tests_ansible.yml:398 Tuesday 22 February 2022 19:14:15 +0000 (0:00:00.592) 0:00:43.289 ****** changed: [/cache/centos-7.qcow2c] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=dmz" ], "delta": "0:00:00.276025", "end": "2022-02-22 19:14:15.165433", "failed_when_result": false, "rc": 0, "start": "2022-02-22 19:14:14.889408" } STDOUT: success TASK [Reset drop zone to defaults] ********************************************* task path: /tmp/tmpbd6b6rb_/tests/tests_ansible.yml:403 Tuesday 22 February 2022 19:14:15 +0000 (0:00:00.602) 0:00:43.892 ****** changed: [/cache/centos-7.qcow2c] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=drop" ], "delta": "0:00:00.257798", "end": "2022-02-22 19:14:15.734219", "failed_when_result": false, "rc": 0, "start": "2022-02-22 19:14:15.476421" } STDOUT: success TASK [Reset public zone to defaults] ******************************************* task path: /tmp/tmpbd6b6rb_/tests/tests_ansible.yml:408 Tuesday 22 February 2022 19:14:16 +0000 (0:00:00.566) 0:00:44.459 ****** changed: [/cache/centos-7.qcow2c] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=public" ], "delta": "0:00:00.285460", "end": "2022-02-22 19:14:16.339254", "failed_when_result": false, "rc": 0, "start": "2022-02-22 19:14:16.053794" } STDOUT: success TASK [Reset default zone to defaults] ****************************************** task path: /tmp/tmpbd6b6rb_/tests/tests_ansible.yml:413 Tuesday 22 February 2022 19:14:16 +0000 (0:00:00.604) 0:00:45.064 ****** changed: [/cache/centos-7.qcow2c] => { "changed": true, "cmd": "firewall-cmd --permanent --load-zone-defaults=public\n", "delta": "0:00:00.265386", "end": "2022-02-22 19:14:16.905901", "failed_when_result": false, "rc": 22, "start": "2022-02-22 19:14:16.640515" } STDERR: Error: NO_DEFAULTS: public MSG: non-zero return code TASK [Reload firewalld] ******************************************************** task path: /tmp/tmpbd6b6rb_/tests/tests_ansible.yml:420 Tuesday 22 February 2022 19:14:17 +0000 (0:00:00.568) 0:00:45.632 ****** changed: [/cache/centos-7.qcow2c] => { "changed": true, "cmd": [ "firewall-cmd", "--reload" ], "delta": "0:00:00.526900", "end": "2022-02-22 19:14:17.861313", "failed_when_result": false, "rc": 0, "start": "2022-02-22 19:14:17.334413" } STDOUT: success META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-7.qcow2c : ok=58 changed=36 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 Tuesday 22 February 2022 19:14:18 +0000 (0:00:00.957) 0:00:46.589 ****** =============================================================================== linux-system-roles.firewall : Install firewalld ------------------------ 12.62s /tmp/tmpbd6b6rb_/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:2 Gathering Facts --------------------------------------------------------- 1.22s /tmp/tmpbd6b6rb_/tests/tests_ansible.yml:1 ------------------------------------ Reload firewalld -------------------------------------------------------- 0.96s /tmp/tmpbd6b6rb_/tests/tests_ansible.yml:420 ---------------------------------- Reset default zone to defaults ------------------------------------------ 0.92s /tmp/tmpbd6b6rb_/tests/tests_ansible.yml:44 ----------------------------------- linux-system-roles.firewall : Enable and start firewalld service -------- 0.91s /tmp/tmpbd6b6rb_/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:19 Ensure default target in permanent internal zone ------------------------ 0.85s /tmp/tmpbd6b6rb_/tests/tests_ansible.yml:289 ---------------------------------- Ensure target ACCEPT in permanent internal zone ------------------------- 0.81s /tmp/tmpbd6b6rb_/tests/tests_ansible.yml:271 ---------------------------------- Reload firewalld -------------------------------------------------------- 0.77s /tmp/tmpbd6b6rb_/tests/tests_ansible.yml:57 ----------------------------------- Firewalld custom zone --------------------------------------------------- 0.75s /tmp/tmpbd6b6rb_/tests/tests_ansible.yml:331 ---------------------------------- Remove custom zone ------------------------------------------------------ 0.73s /tmp/tmpbd6b6rb_/tests/tests_ansible.yml:14 ----------------------------------- linux-system-roles.firewall : Install python-firewall ------------------- 0.67s /tmp/tmpbd6b6rb_/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:7 Reset internal zone to defaults ----------------------------------------- 0.64s /tmp/tmpbd6b6rb_/tests/tests_ansible.yml:19 ----------------------------------- Permit traffic in default zone for https service ------------------------ 0.64s /tmp/tmpbd6b6rb_/tests/tests_ansible.yml:64 ----------------------------------- Reset drop zone to defaults --------------------------------------------- 0.61s /tmp/tmpbd6b6rb_/tests/tests_ansible.yml:34 ----------------------------------- Reset public zone to defaults ------------------------------------------- 0.61s /tmp/tmpbd6b6rb_/tests/tests_ansible.yml:39 ----------------------------------- Reset internal zone to defaults ----------------------------------------- 0.61s /tmp/tmpbd6b6rb_/tests/tests_ansible.yml:388 ---------------------------------- Reset public zone to defaults ------------------------------------------- 0.60s /tmp/tmpbd6b6rb_/tests/tests_ansible.yml:408 ---------------------------------- Reset dmz zone to defaults ---------------------------------------------- 0.60s /tmp/tmpbd6b6rb_/tests/tests_ansible.yml:398 ---------------------------------- Remove custom zone ------------------------------------------------------ 0.60s /tmp/tmpbd6b6rb_/tests/tests_ansible.yml:383 ---------------------------------- set default zone -------------------------------------------------------- 0.60s /tmp/tmpbd6b6rb_/tests/tests_ansible.yml:364 ---------------------------------- + cd /tmp/tmpbd6b6rb_/tests; TEST_SSHD_USEDNS_NO=True TEST_SUBJECTS=/cache/centos-7.qcow2c TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_firewall-70-8387ddf-centos-7-0_yfi139/artifacts ANSIBLE_COLLECTIONS_PATHS=/tmp/tmpgmo5pgqm:~/.ansible/collections:/usr/share/ansible/collections ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 --skip-tags=tests::cleanup,tests::nvme /tmp/tmpbd6b6rb_/_setup.yml /tmp/tmpbd6b6rb_/tests/tests_default.yml ansible-playbook 2.9.27 config file = /etc/ansible/ansible.cfg configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 2.7.5 (default, Aug 13 2020, 02:51:10) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] Using /etc/ansible/ansible.cfg as config file [ERROR]: GNU xorriso 1.4.8 : RockRidge filesystem manipulator, libburnia project. xorriso : NOTE : Local character set is now assumed as: 'utf-8' 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: _setup.yml *********************************************************** 1 plays in /tmp/tmpbd6b6rb_/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpbd6b6rb_/_setup.yml:5 Tuesday 22 February 2022 19:14:32 +0000 (0:00:00.025) 0:00:00.026 ****** ok: [/cache/centos-7.qcow2c] => { "groups": { "all": [ "/cache/centos-7.qcow2c" ], "localhost": [ "/cache/centos-7.qcow2c" ], "subjects": [ "/cache/centos-7.qcow2c" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpbd6b6rb_/_setup.yml:7 Tuesday 22 February 2022 19:14:33 +0000 (0:00:00.038) 0:00:00.064 ****** skipping: [/cache/centos-7.qcow2c] => { "changed": false, "skip_reason": "Conditional result was False" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-7.qcow2c : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 Tuesday 22 February 2022 19:14:33 +0000 (0:00:00.034) 0:00:00.099 ****** =============================================================================== debug ------------------------------------------------------------------- 0.04s /tmp/tmpbd6b6rb_/_setup.yml:5 ------------------------------------------------- fail -------------------------------------------------------------------- 0.03s /tmp/tmpbd6b6rb_/_setup.yml:7 ------------------------------------------------- statically imported: /tmp/tmpbd6b6rb_/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml PLAYBOOK: tests_default.yml **************************************************** 1 plays in /tmp/tmpbd6b6rb_/tests/tests_default.yml PLAY [Ensure that the roles runs with default parameters] ********************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpbd6b6rb_/tests/tests_default.yml:1 Tuesday 22 February 2022 19:14:33 +0000 (0:00:00.109) 0:00:00.208 ****** ok: [/cache/centos-7.qcow2c] META: ran handlers TASK [linux-system-roles.firewall : Install firewalld] ************************* task path: /tmp/tmpbd6b6rb_/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:2 Tuesday 22 February 2022 19:14:34 +0000 (0:00:00.855) 0:00:01.064 ****** changed: [/cache/centos-7.qcow2c] => { "changed": true, "changes": { "installed": [ "firewalld" ] }, "rc": 0, "results": [ "Loaded plugins: fastestmirror\nLoading mirror speeds from cached hostfile\n * base: mirror.ash.fastserv.com\n * extras: mirror.jaleco.com\n * updates: mirror.siena.edu\nResolving Dependencies\n--> Running transaction check\n---> Package firewalld.noarch 0:0.6.3-13.el7_9 will be installed\n--> Processing Dependency: python-firewall = 0.6.3-13.el7_9 for package: firewalld-0.6.3-13.el7_9.noarch\n--> Processing Dependency: firewalld-filesystem = 0.6.3-13.el7_9 for package: firewalld-0.6.3-13.el7_9.noarch\n--> Processing Dependency: ipset for package: firewalld-0.6.3-13.el7_9.noarch\n--> Processing Dependency: ebtables for package: firewalld-0.6.3-13.el7_9.noarch\n--> Running transaction check\n---> Package ebtables.x86_64 0:2.0.10-16.el7 will be installed\n---> Package firewalld-filesystem.noarch 0:0.6.3-13.el7_9 will be installed\n---> Package ipset.x86_64 0:7.1-1.el7 will be installed\n--> Processing Dependency: ipset-libs(x86-64) = 7.1-1.el7 for package: ipset-7.1-1.el7.x86_64\n--> Processing Dependency: libipset.so.13(LIBIPSET_4.8)(64bit) for package: ipset-7.1-1.el7.x86_64\n--> Processing Dependency: libipset.so.13(LIBIPSET_2.0)(64bit) for package: ipset-7.1-1.el7.x86_64\n--> Processing Dependency: libipset.so.13()(64bit) for package: ipset-7.1-1.el7.x86_64\n---> Package python-firewall.noarch 0:0.6.3-13.el7_9 will be installed\n--> Processing Dependency: python-slip-dbus for package: python-firewall-0.6.3-13.el7_9.noarch\n--> Running transaction check\n---> Package ipset-libs.x86_64 0:7.1-1.el7 will be installed\n---> Package python-slip-dbus.noarch 0:0.4.0-4.el7 will be installed\n--> Processing Dependency: python-slip = 0.4.0-4.el7 for package: python-slip-dbus-0.4.0-4.el7.noarch\n--> Running transaction check\n---> Package python-slip.noarch 0:0.4.0-4.el7 will be installed\n--> Finished Dependency Resolution\n\nDependencies Resolved\n\n================================================================================\n Package Arch Version Repository Size\n================================================================================\nInstalling:\n firewalld noarch 0.6.3-13.el7_9 updates 449 k\nInstalling for dependencies:\n ebtables x86_64 2.0.10-16.el7 base 123 k\n firewalld-filesystem noarch 0.6.3-13.el7_9 updates 51 k\n ipset x86_64 7.1-1.el7 base 39 k\n ipset-libs x86_64 7.1-1.el7 base 64 k\n python-firewall noarch 0.6.3-13.el7_9 updates 355 k\n python-slip noarch 0.4.0-4.el7 base 31 k\n python-slip-dbus noarch 0.4.0-4.el7 base 32 k\n\nTransaction Summary\n================================================================================\nInstall 1 Package (+7 Dependent packages)\n\nTotal download size: 1.1 M\nInstalled size: 4.5 M\nDownloading packages:\nPublic key for firewalld-filesystem-0.6.3-13.el7_9.noarch.rpm is not installed\nPublic key for ipset-7.1-1.el7.x86_64.rpm is not installed\n--------------------------------------------------------------------------------\nTotal 5.6 MB/s | 1.1 MB 00:00 \nRetrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7\nRunning transaction check\nRunning transaction test\nTransaction test succeeded\nRunning transaction\n Installing : ebtables-2.0.10-16.el7.x86_64 1/8 \n Installing : ipset-libs-7.1-1.el7.x86_64 2/8 \n Installing : ipset-7.1-1.el7.x86_64 3/8 \n Installing : python-slip-0.4.0-4.el7.noarch 4/8 \n Installing : python-slip-dbus-0.4.0-4.el7.noarch 5/8 \n Installing : python-firewall-0.6.3-13.el7_9.noarch 6/8 \n Installing : firewalld-filesystem-0.6.3-13.el7_9.noarch 7/8 \n Installing : firewalld-0.6.3-13.el7_9.noarch 8/8 \n Verifying : ipset-7.1-1.el7.x86_64 1/8 \n Verifying : python-slip-dbus-0.4.0-4.el7.noarch 2/8 \n Verifying : firewalld-filesystem-0.6.3-13.el7_9.noarch 3/8 \n Verifying : firewalld-0.6.3-13.el7_9.noarch 4/8 \n Verifying : python-slip-0.4.0-4.el7.noarch 5/8 \n Verifying : python-firewall-0.6.3-13.el7_9.noarch 6/8 \n Verifying : ipset-libs-7.1-1.el7.x86_64 7/8 \n Verifying : ebtables-2.0.10-16.el7.x86_64 8/8 \n\nInstalled:\n firewalld.noarch 0:0.6.3-13.el7_9 \n\nDependency Installed:\n ebtables.x86_64 0:2.0.10-16.el7 \n firewalld-filesystem.noarch 0:0.6.3-13.el7_9 \n ipset.x86_64 0:7.1-1.el7 \n ipset-libs.x86_64 0:7.1-1.el7 \n python-firewall.noarch 0:0.6.3-13.el7_9 \n python-slip.noarch 0:0.4.0-4.el7 \n python-slip-dbus.noarch 0:0.4.0-4.el7 \n\nComplete!\n" ] } MSG: warning: /var/cache/yum/x86_64/7/updates/packages/firewalld-filesystem-0.6.3-13.el7_9.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY Importing GPG key 0xF4A80EB5: Userid : "CentOS-7 Key (CentOS 7 Official Signing Key) " Fingerprint: 6341 ab27 53d7 8a78 a7c2 7bb1 24c6 a8a7 f4a8 0eb5 Package : centos-release-7-8.2003.0.el7.centos.x86_64 (installed) From : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 TASK [linux-system-roles.firewall : Install python-firewall] ******************* task path: /tmp/tmpbd6b6rb_/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:7 Tuesday 22 February 2022 19:14:46 +0000 (0:00:12.290) 0:00:13.354 ****** ok: [/cache/centos-7.qcow2c] => { "changed": false, "rc": 0, "results": [ "python-firewall-0.6.3-13.el7_9.noarch providing python-firewall is already installed" ] } TASK [linux-system-roles.firewall : Install python3-firewall] ****************** task path: /tmp/tmpbd6b6rb_/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:13 Tuesday 22 February 2022 19:14:46 +0000 (0:00:00.654) 0:00:14.009 ****** skipping: [/cache/centos-7.qcow2c] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Enable and start firewalld service] ******** task path: /tmp/tmpbd6b6rb_/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:19 Tuesday 22 February 2022 19:14:47 +0000 (0:00:00.043) 0:00:14.052 ****** changed: [/cache/centos-7.qcow2c] => { "changed": true, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "dbus.service system.slice polkit.service basic.target", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Before": "multi-user.target network-pre.target shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "18446744073709551615", "BusName": "org.fedoraproject.FirewallD1", "CPUAccounting": "no", "CPUQuotaPerSecUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "18446744073709551615", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "18446744073709551615", "ConditionResult": "no", "ConditionTimestampMonotonic": "0", "Conflicts": "shutdown.target iptables.service ipset.service ebtables.service ip6tables.service", "ControlPID": "0", "DefaultDependencies": "yes", "Delegate": "no", "Description": "firewalld - dynamic firewall daemon", "DevicePolicy": "auto", "Documentation": "man:firewalld(1)", "EnvironmentFile": "/etc/sysconfig/firewalld (ignore_errors=yes)", "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/sbin/firewalld ; argv[]=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS ; 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/firewalld.service", "GuessMainPID": "yes", "IOScheduling": "0", "Id": "firewalld.service", "IgnoreOnIsolate": "no", "IgnoreOnSnapshot": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestampMonotonic": "0", "JobTimeoutAction": "none", "JobTimeoutUSec": "0", "KillMode": "mixed", "KillSignal": "15", "LimitAS": "18446744073709551615", "LimitCORE": "18446744073709551615", "LimitCPU": "18446744073709551615", "LimitDATA": "18446744073709551615", "LimitFSIZE": "18446744073709551615", "LimitLOCKS": "18446744073709551615", "LimitMEMLOCK": "65536", "LimitMSGQUEUE": "819200", "LimitNICE": "0", "LimitNOFILE": "4096", "LimitNPROC": "7163", "LimitRSS": "18446744073709551615", "LimitRTPRIO": "0", "LimitRTTIME": "18446744073709551615", "LimitSIGPENDING": "7163", "LimitSTACK": "18446744073709551615", "LoadState": "loaded", "MainPID": "0", "MemoryAccounting": "no", "MemoryCurrent": "18446744073709551615", "MemoryLimit": "18446744073709551615", "MountFlags": "0", "Names": "firewalld.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PermissionsStartOnly": "no", "PrivateDevices": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "ProtectHome": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "Requires": "basic.target system.slice", "Restart": "no", "RestartUSec": "100ms", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "null", "StandardInput": "null", "StandardOutput": "null", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitInterval": "10000000", "StartupBlockIOWeight": "18446744073709551615", "StartupCPUShares": "18446744073709551615", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "dead", "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": "dbus", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "enabled", "WantedBy": "multi-user.target", "Wants": "network-pre.target", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0" } } TASK [linux-system-roles.firewall : Configure firewall] ************************ task path: /tmp/tmpbd6b6rb_/tests/roles/linux-system-roles.firewall/tasks/main.yml:3 Tuesday 22 February 2022 19:14:47 +0000 (0:00:00.932) 0:00:14.985 ****** META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-7.qcow2c : ok=5 changed=2 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 Tuesday 22 February 2022 19:14:47 +0000 (0:00:00.036) 0:00:15.021 ****** =============================================================================== linux-system-roles.firewall : Install firewalld ------------------------ 12.29s /tmp/tmpbd6b6rb_/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:2 linux-system-roles.firewall : Enable and start firewalld service -------- 0.93s /tmp/tmpbd6b6rb_/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:19 Gathering Facts --------------------------------------------------------- 0.86s /tmp/tmpbd6b6rb_/tests/tests_default.yml:1 ------------------------------------ linux-system-roles.firewall : Install python-firewall ------------------- 0.65s /tmp/tmpbd6b6rb_/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:7 linux-system-roles.firewall : Install python3-firewall ------------------ 0.04s /tmp/tmpbd6b6rb_/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:13 debug ------------------------------------------------------------------- 0.04s /tmp/tmpbd6b6rb_/_setup.yml:5 ------------------------------------------------- linux-system-roles.firewall : Configure firewall ------------------------ 0.04s /tmp/tmpbd6b6rb_/tests/roles/linux-system-roles.firewall/tasks/main.yml:3 ----- fail -------------------------------------------------------------------- 0.03s /tmp/tmpbd6b6rb_/_setup.yml:7 ------------------------------------------------- + cd /tmp/tmpbd6b6rb_/tests; TEST_SSHD_USEDNS_NO=True TEST_SUBJECTS=/cache/centos-7.qcow2c TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_firewall-70-8387ddf-centos-7-0_yfi139/artifacts ANSIBLE_COLLECTIONS_PATHS=/tmp/tmpgmo5pgqm:~/.ansible/collections:/usr/share/ansible/collections ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 --skip-tags=tests::cleanup,tests::nvme /tmp/tmpbd6b6rb_/_setup.yml /tmp/tmpbd6b6rb_/tests/tests_target.yml ansible-playbook 2.9.27 config file = /etc/ansible/ansible.cfg configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 2.7.5 (default, Aug 13 2020, 02:51:10) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] Using /etc/ansible/ansible.cfg as config file [ERROR]: GNU xorriso 1.4.8 : RockRidge filesystem manipulator, libburnia project. xorriso : NOTE : Local character set is now assumed as: 'utf-8' 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: _setup.yml *********************************************************** 1 plays in /tmp/tmpbd6b6rb_/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpbd6b6rb_/_setup.yml:5 Tuesday 22 February 2022 19:15:02 +0000 (0:00:00.024) 0:00:00.024 ****** ok: [/cache/centos-7.qcow2c] => { "groups": { "all": [ "/cache/centos-7.qcow2c" ], "localhost": [ "/cache/centos-7.qcow2c" ], "subjects": [ "/cache/centos-7.qcow2c" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpbd6b6rb_/_setup.yml:7 Tuesday 22 February 2022 19:15:02 +0000 (0:00:00.039) 0:00:00.064 ****** skipping: [/cache/centos-7.qcow2c] => { "changed": false, "skip_reason": "Conditional result was False" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-7.qcow2c : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 Tuesday 22 February 2022 19:15:02 +0000 (0:00:00.033) 0:00:00.097 ****** =============================================================================== debug ------------------------------------------------------------------- 0.04s /tmp/tmpbd6b6rb_/_setup.yml:5 ------------------------------------------------- fail -------------------------------------------------------------------- 0.03s /tmp/tmpbd6b6rb_/_setup.yml:7 ------------------------------------------------- PLAYBOOK: tests_target.yml ***************************************************** 1 plays in /tmp/tmpbd6b6rb_/tests/tests_target.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpbd6b6rb_/tests/tests_target.yml:1 Tuesday 22 February 2022 19:15:02 +0000 (0:00:00.009) 0:00:00.107 ****** ok: [/cache/centos-7.qcow2c] META: ran handlers TASK [Call role to change target settings] ************************************* task path: /tmp/tmpbd6b6rb_/tests/tests_target.yml:3 Tuesday 22 February 2022 19:15:03 +0000 (0:00:00.957) 0:00:01.064 ****** statically imported: /tmp/tmpbd6b6rb_/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml TASK [linux-system-roles.firewall : Install firewalld] ************************* task path: /tmp/tmpbd6b6rb_/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:2 Tuesday 22 February 2022 19:15:03 +0000 (0:00:00.129) 0:00:01.193 ****** changed: [/cache/centos-7.qcow2c] => { "changed": true, "changes": { "installed": [ "firewalld" ] }, "rc": 0, "results": [ "Loaded plugins: fastestmirror\nLoading mirror speeds from cached hostfile\n * base: mirror.ash.fastserv.com\n * extras: mirror.jaleco.com\n * updates: mirrors.greenmountainaccess.net\nResolving Dependencies\n--> Running transaction check\n---> Package firewalld.noarch 0:0.6.3-13.el7_9 will be installed\n--> Processing Dependency: python-firewall = 0.6.3-13.el7_9 for package: firewalld-0.6.3-13.el7_9.noarch\n--> Processing Dependency: firewalld-filesystem = 0.6.3-13.el7_9 for package: firewalld-0.6.3-13.el7_9.noarch\n--> Processing Dependency: ipset for package: firewalld-0.6.3-13.el7_9.noarch\n--> Processing Dependency: ebtables for package: firewalld-0.6.3-13.el7_9.noarch\n--> Running transaction check\n---> Package ebtables.x86_64 0:2.0.10-16.el7 will be installed\n---> Package firewalld-filesystem.noarch 0:0.6.3-13.el7_9 will be installed\n---> Package ipset.x86_64 0:7.1-1.el7 will be installed\n--> Processing Dependency: ipset-libs(x86-64) = 7.1-1.el7 for package: ipset-7.1-1.el7.x86_64\n--> Processing Dependency: libipset.so.13(LIBIPSET_4.8)(64bit) for package: ipset-7.1-1.el7.x86_64\n--> Processing Dependency: libipset.so.13(LIBIPSET_2.0)(64bit) for package: ipset-7.1-1.el7.x86_64\n--> Processing Dependency: libipset.so.13()(64bit) for package: ipset-7.1-1.el7.x86_64\n---> Package python-firewall.noarch 0:0.6.3-13.el7_9 will be installed\n--> Processing Dependency: python-slip-dbus for package: python-firewall-0.6.3-13.el7_9.noarch\n--> Running transaction check\n---> Package ipset-libs.x86_64 0:7.1-1.el7 will be installed\n---> Package python-slip-dbus.noarch 0:0.4.0-4.el7 will be installed\n--> Processing Dependency: python-slip = 0.4.0-4.el7 for package: python-slip-dbus-0.4.0-4.el7.noarch\n--> Running transaction check\n---> Package python-slip.noarch 0:0.4.0-4.el7 will be installed\n--> Finished Dependency Resolution\n\nDependencies Resolved\n\n================================================================================\n Package Arch Version Repository Size\n================================================================================\nInstalling:\n firewalld noarch 0.6.3-13.el7_9 updates 449 k\nInstalling for dependencies:\n ebtables x86_64 2.0.10-16.el7 base 123 k\n firewalld-filesystem noarch 0.6.3-13.el7_9 updates 51 k\n ipset x86_64 7.1-1.el7 base 39 k\n ipset-libs x86_64 7.1-1.el7 base 64 k\n python-firewall noarch 0.6.3-13.el7_9 updates 355 k\n python-slip noarch 0.4.0-4.el7 base 31 k\n python-slip-dbus noarch 0.4.0-4.el7 base 32 k\n\nTransaction Summary\n================================================================================\nInstall 1 Package (+7 Dependent packages)\n\nTotal download size: 1.1 M\nInstalled size: 4.5 M\nDownloading packages:\nPublic key for ipset-7.1-1.el7.x86_64.rpm is not installed\nPublic key for firewalld-filesystem-0.6.3-13.el7_9.noarch.rpm is not installed\n--------------------------------------------------------------------------------\nTotal 353 kB/s | 1.1 MB 00:03 \nRetrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7\nRunning transaction check\nRunning transaction test\nTransaction test succeeded\nRunning transaction\n Installing : ebtables-2.0.10-16.el7.x86_64 1/8 \n Installing : ipset-libs-7.1-1.el7.x86_64 2/8 \n Installing : ipset-7.1-1.el7.x86_64 3/8 \n Installing : python-slip-0.4.0-4.el7.noarch 4/8 \n Installing : python-slip-dbus-0.4.0-4.el7.noarch 5/8 \n Installing : python-firewall-0.6.3-13.el7_9.noarch 6/8 \n Installing : firewalld-filesystem-0.6.3-13.el7_9.noarch 7/8 \n Installing : firewalld-0.6.3-13.el7_9.noarch 8/8 \n Verifying : ipset-7.1-1.el7.x86_64 1/8 \n Verifying : python-slip-dbus-0.4.0-4.el7.noarch 2/8 \n Verifying : firewalld-filesystem-0.6.3-13.el7_9.noarch 3/8 \n Verifying : firewalld-0.6.3-13.el7_9.noarch 4/8 \n Verifying : python-slip-0.4.0-4.el7.noarch 5/8 \n Verifying : python-firewall-0.6.3-13.el7_9.noarch 6/8 \n Verifying : ipset-libs-7.1-1.el7.x86_64 7/8 \n Verifying : ebtables-2.0.10-16.el7.x86_64 8/8 \n\nInstalled:\n firewalld.noarch 0:0.6.3-13.el7_9 \n\nDependency Installed:\n ebtables.x86_64 0:2.0.10-16.el7 \n firewalld-filesystem.noarch 0:0.6.3-13.el7_9 \n ipset.x86_64 0:7.1-1.el7 \n ipset-libs.x86_64 0:7.1-1.el7 \n python-firewall.noarch 0:0.6.3-13.el7_9 \n python-slip.noarch 0:0.4.0-4.el7 \n python-slip-dbus.noarch 0:0.4.0-4.el7 \n\nComplete!\n" ] } MSG: warning: /var/cache/yum/x86_64/7/base/packages/ipset-7.1-1.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY Importing GPG key 0xF4A80EB5: Userid : "CentOS-7 Key (CentOS 7 Official Signing Key) " Fingerprint: 6341 ab27 53d7 8a78 a7c2 7bb1 24c6 a8a7 f4a8 0eb5 Package : centos-release-7-8.2003.0.el7.centos.x86_64 (installed) From : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 TASK [linux-system-roles.firewall : Install python-firewall] ******************* task path: /tmp/tmpbd6b6rb_/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:7 Tuesday 22 February 2022 19:15:19 +0000 (0:00:16.321) 0:00:17.515 ****** ok: [/cache/centos-7.qcow2c] => { "changed": false, "rc": 0, "results": [ "python-firewall-0.6.3-13.el7_9.noarch providing python-firewall is already installed" ] } TASK [linux-system-roles.firewall : Install python3-firewall] ****************** task path: /tmp/tmpbd6b6rb_/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:13 Tuesday 22 February 2022 19:15:20 +0000 (0:00:00.647) 0:00:18.162 ****** skipping: [/cache/centos-7.qcow2c] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Enable and start firewalld service] ******** task path: /tmp/tmpbd6b6rb_/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:19 Tuesday 22 February 2022 19:15:20 +0000 (0:00:00.044) 0:00:18.207 ****** changed: [/cache/centos-7.qcow2c] => { "changed": true, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "polkit.service system.slice basic.target dbus.service", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Before": "multi-user.target shutdown.target network-pre.target", "BlockIOAccounting": "no", "BlockIOWeight": "18446744073709551615", "BusName": "org.fedoraproject.FirewallD1", "CPUAccounting": "no", "CPUQuotaPerSecUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "18446744073709551615", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "18446744073709551615", "ConditionResult": "no", "ConditionTimestampMonotonic": "0", "Conflicts": "ip6tables.service ebtables.service ipset.service shutdown.target iptables.service", "ControlPID": "0", "DefaultDependencies": "yes", "Delegate": "no", "Description": "firewalld - dynamic firewall daemon", "DevicePolicy": "auto", "Documentation": "man:firewalld(1)", "EnvironmentFile": "/etc/sysconfig/firewalld (ignore_errors=yes)", "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/sbin/firewalld ; argv[]=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS ; 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/firewalld.service", "GuessMainPID": "yes", "IOScheduling": "0", "Id": "firewalld.service", "IgnoreOnIsolate": "no", "IgnoreOnSnapshot": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestampMonotonic": "0", "JobTimeoutAction": "none", "JobTimeoutUSec": "0", "KillMode": "mixed", "KillSignal": "15", "LimitAS": "18446744073709551615", "LimitCORE": "18446744073709551615", "LimitCPU": "18446744073709551615", "LimitDATA": "18446744073709551615", "LimitFSIZE": "18446744073709551615", "LimitLOCKS": "18446744073709551615", "LimitMEMLOCK": "65536", "LimitMSGQUEUE": "819200", "LimitNICE": "0", "LimitNOFILE": "4096", "LimitNPROC": "7163", "LimitRSS": "18446744073709551615", "LimitRTPRIO": "0", "LimitRTTIME": "18446744073709551615", "LimitSIGPENDING": "7163", "LimitSTACK": "18446744073709551615", "LoadState": "loaded", "MainPID": "0", "MemoryAccounting": "no", "MemoryCurrent": "18446744073709551615", "MemoryLimit": "18446744073709551615", "MountFlags": "0", "Names": "firewalld.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PermissionsStartOnly": "no", "PrivateDevices": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "ProtectHome": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "Requires": "basic.target system.slice", "Restart": "no", "RestartUSec": "100ms", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "null", "StandardInput": "null", "StandardOutput": "null", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitInterval": "10000000", "StartupBlockIOWeight": "18446744073709551615", "StartupCPUShares": "18446744073709551615", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "dead", "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": "dbus", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "enabled", "WantedBy": "multi-user.target", "Wants": "network-pre.target", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0" } } TASK [linux-system-roles.firewall : Configure firewall] ************************ task path: /tmp/tmpbd6b6rb_/tests/roles/linux-system-roles.firewall/tasks/main.yml:3 Tuesday 22 February 2022 19:15:21 +0000 (0:00:00.961) 0:00:19.169 ****** ok: [/cache/centos-7.qcow2c] => (item={u'state': u'enabled', u'permanent': True, u'set_default_zone': u'public'}) => { "ansible_loop_var": "item", "changed": false, "item": { "permanent": true, "set_default_zone": "public", "state": "enabled" } } changed: [/cache/centos-7.qcow2c] => (item={u'state': u'enabled', u'permanent': True, u'target': u'DROP'}) => { "ansible_loop_var": "item", "changed": true, "item": { "permanent": true, "state": "enabled", "target": "DROP" } } TASK [Get target setting] ****************************************************** task path: /tmp/tmpbd6b6rb_/tests/tests_target.yml:15 Tuesday 22 February 2022 19:15:22 +0000 (0:00:01.386) 0:00:20.555 ****** ok: [/cache/centos-7.qcow2c] => { "changed": false, "cmd": [ "firewall-cmd", "--info-zone=public" ], "delta": "0:00:00.257049", "end": "2022-02-22 19:15:23.034459", "rc": 0, "start": "2022-02-22 19:15:22.777410" } STDOUT: public target: DROP icmp-block-inversion: no interfaces: sources: services: dhcpv6-client ssh ports: protocols: masquerade: no forward-ports: source-ports: icmp-blocks: rich rules: TASK [Verify target setting] *************************************************** task path: /tmp/tmpbd6b6rb_/tests/tests_target.yml:20 Tuesday 22 February 2022 19:15:23 +0000 (0:00:00.672) 0:00:21.228 ****** ok: [/cache/centos-7.qcow2c] => { "changed": false } MSG: All assertions passed TASK [Call role to reset target settings] ************************************** task path: /tmp/tmpbd6b6rb_/tests/tests_target.yml:26 Tuesday 22 February 2022 19:15:23 +0000 (0:00:00.046) 0:00:21.274 ****** statically imported: /tmp/tmpbd6b6rb_/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml TASK [linux-system-roles.firewall : Install firewalld] ************************* task path: /tmp/tmpbd6b6rb_/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:2 Tuesday 22 February 2022 19:15:23 +0000 (0:00:00.040) 0:00:21.314 ****** ok: [/cache/centos-7.qcow2c] => { "changed": false, "rc": 0, "results": [ "firewalld-0.6.3-13.el7_9.noarch providing firewalld is already installed" ] } TASK [linux-system-roles.firewall : Install python-firewall] ******************* task path: /tmp/tmpbd6b6rb_/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:7 Tuesday 22 February 2022 19:15:24 +0000 (0:00:00.647) 0:00:21.962 ****** ok: [/cache/centos-7.qcow2c] => { "changed": false, "rc": 0, "results": [ "python-firewall-0.6.3-13.el7_9.noarch providing python-firewall is already installed" ] } TASK [linux-system-roles.firewall : Install python3-firewall] ****************** task path: /tmp/tmpbd6b6rb_/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:13 Tuesday 22 February 2022 19:15:24 +0000 (0:00:00.637) 0:00:22.599 ****** skipping: [/cache/centos-7.qcow2c] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Enable and start firewalld service] ******** task path: /tmp/tmpbd6b6rb_/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:19 Tuesday 22 February 2022 19:15:24 +0000 (0:00:00.041) 0:00:22.640 ****** ok: [/cache/centos-7.qcow2c] => { "changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestamp": "Tue 2022-02-22 19:15:20 UTC", "ActiveEnterTimestampMonotonic": "29491457", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "polkit.service system.slice basic.target dbus.service", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Tue 2022-02-22 19:15:20 UTC", "AssertTimestampMonotonic": "29262279", "Before": "multi-user.target shutdown.target network-pre.target", "BlockIOAccounting": "no", "BlockIOWeight": "18446744073709551615", "BusName": "org.fedoraproject.FirewallD1", "CPUAccounting": "no", "CPUQuotaPerSecUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "18446744073709551615", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "18446744073709551615", "ConditionResult": "yes", "ConditionTimestamp": "Tue 2022-02-22 19:15:20 UTC", "ConditionTimestampMonotonic": "29262279", "Conflicts": "ip6tables.service ebtables.service ipset.service shutdown.target iptables.service", "ControlGroup": "/system.slice/firewalld.service", "ControlPID": "0", "DefaultDependencies": "yes", "Delegate": "no", "Description": "firewalld - dynamic firewall daemon", "DevicePolicy": "auto", "Documentation": "man:firewalld(1)", "EnvironmentFile": "/etc/sysconfig/firewalld (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "9083", "ExecMainStartTimestamp": "Tue 2022-02-22 19:15:20 UTC", "ExecMainStartTimestampMonotonic": "29263514", "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/sbin/firewalld ; argv[]=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS ; ignore_errors=no ; start_time=[Tue 2022-02-22 19:15:20 UTC] ; stop_time=[n/a] ; pid=9083 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/firewalld.service", "GuessMainPID": "yes", "IOScheduling": "0", "Id": "firewalld.service", "IgnoreOnIsolate": "no", "IgnoreOnSnapshot": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Tue 2022-02-22 19:15:20 UTC", "InactiveExitTimestampMonotonic": "29263550", "JobTimeoutAction": "none", "JobTimeoutUSec": "0", "KillMode": "mixed", "KillSignal": "15", "LimitAS": "18446744073709551615", "LimitCORE": "18446744073709551615", "LimitCPU": "18446744073709551615", "LimitDATA": "18446744073709551615", "LimitFSIZE": "18446744073709551615", "LimitLOCKS": "18446744073709551615", "LimitMEMLOCK": "65536", "LimitMSGQUEUE": "819200", "LimitNICE": "0", "LimitNOFILE": "4096", "LimitNPROC": "7163", "LimitRSS": "18446744073709551615", "LimitRTPRIO": "0", "LimitRTTIME": "18446744073709551615", "LimitSIGPENDING": "7163", "LimitSTACK": "18446744073709551615", "LoadState": "loaded", "MainPID": "9083", "MemoryAccounting": "no", "MemoryCurrent": "18446744073709551615", "MemoryLimit": "18446744073709551615", "MountFlags": "0", "Names": "firewalld.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PermissionsStartOnly": "no", "PrivateDevices": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "ProtectHome": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "Requires": "basic.target system.slice", "Restart": "no", "RestartUSec": "100ms", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "null", "StandardInput": "null", "StandardOutput": "null", "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": "dbus", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "enabled", "WantedBy": "multi-user.target", "Wants": "network-pre.target", "WatchdogTimestamp": "Tue 2022-02-22 19:15:20 UTC", "WatchdogTimestampMonotonic": "29491391", "WatchdogUSec": "0" } } TASK [linux-system-roles.firewall : Configure firewall] ************************ task path: /tmp/tmpbd6b6rb_/tests/roles/linux-system-roles.firewall/tasks/main.yml:3 Tuesday 22 February 2022 19:15:25 +0000 (0:00:00.411) 0:00:23.052 ****** failed: [/cache/centos-7.qcow2c] (item={u'state': u'absent', u'permanent': True, u'target': u'DROP'}) => { "ansible_loop_var": "item", "changed": false, "item": { "permanent": true, "state": "absent", "target": "DROP" } } MSG: state is absent but any of the following are missing: zone PLAY RECAP ********************************************************************* /cache/centos-7.qcow2c : ok=11 changed=3 unreachable=0 failed=1 skipped=3 rescued=0 ignored=0 Tuesday 22 February 2022 19:15:25 +0000 (0:00:00.428) 0:00:23.480 ****** =============================================================================== linux-system-roles.firewall : Install firewalld ------------------------ 16.32s /tmp/tmpbd6b6rb_/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:2 linux-system-roles.firewall : Configure firewall ------------------------ 1.39s /tmp/tmpbd6b6rb_/tests/roles/linux-system-roles.firewall/tasks/main.yml:3 ----- linux-system-roles.firewall : Enable and start firewalld service -------- 0.96s /tmp/tmpbd6b6rb_/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:19 Gathering Facts --------------------------------------------------------- 0.96s /tmp/tmpbd6b6rb_/tests/tests_target.yml:1 ------------------------------------- Get target setting ------------------------------------------------------ 0.67s /tmp/tmpbd6b6rb_/tests/tests_target.yml:15 ------------------------------------ linux-system-roles.firewall : Install firewalld ------------------------- 0.65s /tmp/tmpbd6b6rb_/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:2 linux-system-roles.firewall : Install python-firewall ------------------- 0.65s /tmp/tmpbd6b6rb_/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:7 linux-system-roles.firewall : Install python-firewall ------------------- 0.64s /tmp/tmpbd6b6rb_/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:7 linux-system-roles.firewall : Configure firewall ------------------------ 0.43s /tmp/tmpbd6b6rb_/tests/roles/linux-system-roles.firewall/tasks/main.yml:3 ----- linux-system-roles.firewall : Enable and start firewalld service -------- 0.41s /tmp/tmpbd6b6rb_/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:19 Call role to change target settings ------------------------------------- 0.13s /tmp/tmpbd6b6rb_/tests/tests_target.yml:3 ------------------------------------- Verify target setting --------------------------------------------------- 0.05s /tmp/tmpbd6b6rb_/tests/tests_target.yml:20 ------------------------------------ linux-system-roles.firewall : Install python3-firewall ------------------ 0.04s /tmp/tmpbd6b6rb_/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:13 linux-system-roles.firewall : Install python3-firewall ------------------ 0.04s /tmp/tmpbd6b6rb_/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:13 Call role to reset target settings -------------------------------------- 0.04s /tmp/tmpbd6b6rb_/tests/tests_target.yml:26 ------------------------------------ debug ------------------------------------------------------------------- 0.04s /tmp/tmpbd6b6rb_/_setup.yml:5 ------------------------------------------------- fail -------------------------------------------------------------------- 0.03s /tmp/tmpbd6b6rb_/_setup.yml:7 ------------------------------------------------- + cd /tmp/tmpbd6b6rb_/tests; TEST_SSHD_USEDNS_NO=True TEST_SUBJECTS=/cache/centos-7.qcow2c TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_firewall-70-8387ddf-centos-7-0_yfi139/artifacts ANSIBLE_COLLECTIONS_PATHS=/tmp/tmpgmo5pgqm:~/.ansible/collections:/usr/share/ansible/collections ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 --skip-tags=tests::cleanup,tests::nvme /tmp/tmpbd6b6rb_/_setup.yml /tmp/tmpbd6b6rb_/tests/tests_zone.yml ansible-playbook 2.9.27 config file = /etc/ansible/ansible.cfg configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 2.7.5 (default, Aug 13 2020, 02:51:10) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] Using /etc/ansible/ansible.cfg as config file [ERROR]: GNU xorriso 1.4.8 : RockRidge filesystem manipulator, libburnia project. xorriso : NOTE : Local character set is now assumed as: 'utf-8' 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: _setup.yml *********************************************************** 1 plays in /tmp/tmpbd6b6rb_/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpbd6b6rb_/_setup.yml:5 Tuesday 22 February 2022 19:15:40 +0000 (0:00:00.024) 0:00:00.024 ****** ok: [/cache/centos-7.qcow2c] => { "groups": { "all": [ "/cache/centos-7.qcow2c" ], "localhost": [ "/cache/centos-7.qcow2c" ], "subjects": [ "/cache/centos-7.qcow2c" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpbd6b6rb_/_setup.yml:7 Tuesday 22 February 2022 19:15:40 +0000 (0:00:00.038) 0:00:00.062 ****** skipping: [/cache/centos-7.qcow2c] => { "changed": false, "skip_reason": "Conditional result was False" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-7.qcow2c : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 Tuesday 22 February 2022 19:15:40 +0000 (0:00:00.035) 0:00:00.098 ****** =============================================================================== debug ------------------------------------------------------------------- 0.04s /tmp/tmpbd6b6rb_/_setup.yml:5 ------------------------------------------------- fail -------------------------------------------------------------------- 0.04s /tmp/tmpbd6b6rb_/_setup.yml:7 ------------------------------------------------- PLAYBOOK: tests_zone.yml ******************************************************* 1 plays in /tmp/tmpbd6b6rb_/tests/tests_zone.yml PLAY [Ensure that the roles runs with default parameters] ********************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpbd6b6rb_/tests/tests_zone.yml:1 Tuesday 22 February 2022 19:15:40 +0000 (0:00:00.016) 0:00:00.114 ****** ok: [/cache/centos-7.qcow2c] META: ran handlers TASK [include_role : linux-system-roles.firewall] ****************************** task path: /tmp/tmpbd6b6rb_/tests/tests_zone.yml:6 Tuesday 22 February 2022 19:15:41 +0000 (0:00:00.937) 0:00:01.052 ****** statically imported: /tmp/tmpbd6b6rb_/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml TASK [linux-system-roles.firewall : Install firewalld] ************************* task path: /tmp/tmpbd6b6rb_/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:2 Tuesday 22 February 2022 19:15:42 +0000 (0:00:00.124) 0:00:01.176 ****** changed: [/cache/centos-7.qcow2c] => { "changed": true, "changes": { "installed": [ "firewalld" ] }, "rc": 0, "results": [ "Loaded plugins: fastestmirror\nLoading mirror speeds from cached hostfile\n * base: mirror.ash.fastserv.com\n * extras: mirror.jaleco.com\n * updates: mirrors.greenmountainaccess.net\nResolving Dependencies\n--> Running transaction check\n---> Package firewalld.noarch 0:0.6.3-13.el7_9 will be installed\n--> Processing Dependency: python-firewall = 0.6.3-13.el7_9 for package: firewalld-0.6.3-13.el7_9.noarch\n--> Processing Dependency: firewalld-filesystem = 0.6.3-13.el7_9 for package: firewalld-0.6.3-13.el7_9.noarch\n--> Processing Dependency: ipset for package: firewalld-0.6.3-13.el7_9.noarch\n--> Processing Dependency: ebtables for package: firewalld-0.6.3-13.el7_9.noarch\n--> Running transaction check\n---> Package ebtables.x86_64 0:2.0.10-16.el7 will be installed\n---> Package firewalld-filesystem.noarch 0:0.6.3-13.el7_9 will be installed\n---> Package ipset.x86_64 0:7.1-1.el7 will be installed\n--> Processing Dependency: ipset-libs(x86-64) = 7.1-1.el7 for package: ipset-7.1-1.el7.x86_64\n--> Processing Dependency: libipset.so.13(LIBIPSET_4.8)(64bit) for package: ipset-7.1-1.el7.x86_64\n--> Processing Dependency: libipset.so.13(LIBIPSET_2.0)(64bit) for package: ipset-7.1-1.el7.x86_64\n--> Processing Dependency: libipset.so.13()(64bit) for package: ipset-7.1-1.el7.x86_64\n---> Package python-firewall.noarch 0:0.6.3-13.el7_9 will be installed\n--> Processing Dependency: python-slip-dbus for package: python-firewall-0.6.3-13.el7_9.noarch\n--> Running transaction check\n---> Package ipset-libs.x86_64 0:7.1-1.el7 will be installed\n---> Package python-slip-dbus.noarch 0:0.4.0-4.el7 will be installed\n--> Processing Dependency: python-slip = 0.4.0-4.el7 for package: python-slip-dbus-0.4.0-4.el7.noarch\n--> Running transaction check\n---> Package python-slip.noarch 0:0.4.0-4.el7 will be installed\n--> Finished Dependency Resolution\n\nDependencies Resolved\n\n================================================================================\n Package Arch Version Repository Size\n================================================================================\nInstalling:\n firewalld noarch 0.6.3-13.el7_9 updates 449 k\nInstalling for dependencies:\n ebtables x86_64 2.0.10-16.el7 base 123 k\n firewalld-filesystem noarch 0.6.3-13.el7_9 updates 51 k\n ipset x86_64 7.1-1.el7 base 39 k\n ipset-libs x86_64 7.1-1.el7 base 64 k\n python-firewall noarch 0.6.3-13.el7_9 updates 355 k\n python-slip noarch 0.4.0-4.el7 base 31 k\n python-slip-dbus noarch 0.4.0-4.el7 base 32 k\n\nTransaction Summary\n================================================================================\nInstall 1 Package (+7 Dependent packages)\n\nTotal download size: 1.1 M\nInstalled size: 4.5 M\nDownloading packages:\nPublic key for ipset-7.1-1.el7.x86_64.rpm is not installed\nPublic key for firewalld-filesystem-0.6.3-13.el7_9.noarch.rpm is not installed\n--------------------------------------------------------------------------------\nTotal 4.5 MB/s | 1.1 MB 00:00 \nRetrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7\nRunning transaction check\nRunning transaction test\nTransaction test succeeded\nRunning transaction\n Installing : ebtables-2.0.10-16.el7.x86_64 1/8 \n Installing : ipset-libs-7.1-1.el7.x86_64 2/8 \n Installing : ipset-7.1-1.el7.x86_64 3/8 \n Installing : python-slip-0.4.0-4.el7.noarch 4/8 \n Installing : python-slip-dbus-0.4.0-4.el7.noarch 5/8 \n Installing : python-firewall-0.6.3-13.el7_9.noarch 6/8 \n Installing : firewalld-filesystem-0.6.3-13.el7_9.noarch 7/8 \n Installing : firewalld-0.6.3-13.el7_9.noarch 8/8 \n Verifying : ipset-7.1-1.el7.x86_64 1/8 \n Verifying : python-slip-dbus-0.4.0-4.el7.noarch 2/8 \n Verifying : firewalld-filesystem-0.6.3-13.el7_9.noarch 3/8 \n Verifying : firewalld-0.6.3-13.el7_9.noarch 4/8 \n Verifying : python-slip-0.4.0-4.el7.noarch 5/8 \n Verifying : python-firewall-0.6.3-13.el7_9.noarch 6/8 \n Verifying : ipset-libs-7.1-1.el7.x86_64 7/8 \n Verifying : ebtables-2.0.10-16.el7.x86_64 8/8 \n\nInstalled:\n firewalld.noarch 0:0.6.3-13.el7_9 \n\nDependency Installed:\n ebtables.x86_64 0:2.0.10-16.el7 \n firewalld-filesystem.noarch 0:0.6.3-13.el7_9 \n ipset.x86_64 0:7.1-1.el7 \n ipset-libs.x86_64 0:7.1-1.el7 \n python-firewall.noarch 0:0.6.3-13.el7_9 \n python-slip.noarch 0:0.4.0-4.el7 \n python-slip-dbus.noarch 0:0.4.0-4.el7 \n\nComplete!\n" ] } MSG: warning: /var/cache/yum/x86_64/7/base/packages/ipset-7.1-1.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY Importing GPG key 0xF4A80EB5: Userid : "CentOS-7 Key (CentOS 7 Official Signing Key) " Fingerprint: 6341 ab27 53d7 8a78 a7c2 7bb1 24c6 a8a7 f4a8 0eb5 Package : centos-release-7-8.2003.0.el7.centos.x86_64 (installed) From : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 TASK [linux-system-roles.firewall : Install python-firewall] ******************* task path: /tmp/tmpbd6b6rb_/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:7 Tuesday 22 February 2022 19:15:54 +0000 (0:00:12.513) 0:00:13.690 ****** ok: [/cache/centos-7.qcow2c] => { "changed": false, "rc": 0, "results": [ "python-firewall-0.6.3-13.el7_9.noarch providing python-firewall is already installed" ] } TASK [linux-system-roles.firewall : Install python3-firewall] ****************** task path: /tmp/tmpbd6b6rb_/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:13 Tuesday 22 February 2022 19:15:55 +0000 (0:00:00.618) 0:00:14.308 ****** skipping: [/cache/centos-7.qcow2c] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Enable and start firewalld service] ******** task path: /tmp/tmpbd6b6rb_/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:19 Tuesday 22 February 2022 19:15:55 +0000 (0:00:00.043) 0:00:14.352 ****** changed: [/cache/centos-7.qcow2c] => { "changed": true, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "system.slice polkit.service dbus.service basic.target", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Before": "multi-user.target shutdown.target network-pre.target", "BlockIOAccounting": "no", "BlockIOWeight": "18446744073709551615", "BusName": "org.fedoraproject.FirewallD1", "CPUAccounting": "no", "CPUQuotaPerSecUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "18446744073709551615", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "18446744073709551615", "ConditionResult": "no", "ConditionTimestampMonotonic": "0", "Conflicts": "iptables.service shutdown.target ip6tables.service ipset.service ebtables.service", "ControlPID": "0", "DefaultDependencies": "yes", "Delegate": "no", "Description": "firewalld - dynamic firewall daemon", "DevicePolicy": "auto", "Documentation": "man:firewalld(1)", "EnvironmentFile": "/etc/sysconfig/firewalld (ignore_errors=yes)", "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/sbin/firewalld ; argv[]=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS ; 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/firewalld.service", "GuessMainPID": "yes", "IOScheduling": "0", "Id": "firewalld.service", "IgnoreOnIsolate": "no", "IgnoreOnSnapshot": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestampMonotonic": "0", "JobTimeoutAction": "none", "JobTimeoutUSec": "0", "KillMode": "mixed", "KillSignal": "15", "LimitAS": "18446744073709551615", "LimitCORE": "18446744073709551615", "LimitCPU": "18446744073709551615", "LimitDATA": "18446744073709551615", "LimitFSIZE": "18446744073709551615", "LimitLOCKS": "18446744073709551615", "LimitMEMLOCK": "65536", "LimitMSGQUEUE": "819200", "LimitNICE": "0", "LimitNOFILE": "4096", "LimitNPROC": "7163", "LimitRSS": "18446744073709551615", "LimitRTPRIO": "0", "LimitRTTIME": "18446744073709551615", "LimitSIGPENDING": "7163", "LimitSTACK": "18446744073709551615", "LoadState": "loaded", "MainPID": "0", "MemoryAccounting": "no", "MemoryCurrent": "18446744073709551615", "MemoryLimit": "18446744073709551615", "MountFlags": "0", "Names": "firewalld.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "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": "null", "StandardInput": "null", "StandardOutput": "null", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitInterval": "10000000", "StartupBlockIOWeight": "18446744073709551615", "StartupCPUShares": "18446744073709551615", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "dead", "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": "dbus", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "enabled", "WantedBy": "multi-user.target", "Wants": "network-pre.target", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0" } } TASK [linux-system-roles.firewall : Configure firewall] ************************ task path: /tmp/tmpbd6b6rb_/tests/roles/linux-system-roles.firewall/tasks/main.yml:3 Tuesday 22 February 2022 19:15:56 +0000 (0:00:00.910) 0:00:15.262 ****** TASK [Verify used firewalld zones] ********************************************* task path: /tmp/tmpbd6b6rb_/tests/tests_zone.yml:14 Tuesday 22 February 2022 19:15:56 +0000 (0:00:00.041) 0:00:15.304 ****** statically imported: /tmp/tmpbd6b6rb_/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml TASK [linux-system-roles.firewall : Install firewalld] ************************* task path: /tmp/tmpbd6b6rb_/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:2 Tuesday 22 February 2022 19:15:56 +0000 (0:00:00.062) 0:00:15.366 ****** ok: [/cache/centos-7.qcow2c] => { "changed": false, "rc": 0, "results": [ "firewalld-0.6.3-13.el7_9.noarch providing firewalld is already installed" ] } TASK [linux-system-roles.firewall : Install python-firewall] ******************* task path: /tmp/tmpbd6b6rb_/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:7 Tuesday 22 February 2022 19:15:59 +0000 (0:00:03.669) 0:00:19.036 ****** ok: [/cache/centos-7.qcow2c] => { "changed": false, "rc": 0, "results": [ "python-firewall-0.6.3-13.el7_9.noarch providing python-firewall is already installed" ] } TASK [linux-system-roles.firewall : Install python3-firewall] ****************** task path: /tmp/tmpbd6b6rb_/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:13 Tuesday 22 February 2022 19:16:00 +0000 (0:00:00.671) 0:00:19.707 ****** skipping: [/cache/centos-7.qcow2c] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Enable and start firewalld service] ******** task path: /tmp/tmpbd6b6rb_/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:19 Tuesday 22 February 2022 19:16:00 +0000 (0:00:00.045) 0:00:19.752 ****** ok: [/cache/centos-7.qcow2c] => { "changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestamp": "Tue 2022-02-22 19:15:55 UTC", "ActiveEnterTimestampMonotonic": "27147954", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "system.slice polkit.service dbus.service basic.target", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Tue 2022-02-22 19:15:55 UTC", "AssertTimestampMonotonic": "26936959", "Before": "multi-user.target shutdown.target network-pre.target", "BlockIOAccounting": "no", "BlockIOWeight": "18446744073709551615", "BusName": "org.fedoraproject.FirewallD1", "CPUAccounting": "no", "CPUQuotaPerSecUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "18446744073709551615", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "18446744073709551615", "ConditionResult": "yes", "ConditionTimestamp": "Tue 2022-02-22 19:15:55 UTC", "ConditionTimestampMonotonic": "26936955", "Conflicts": "iptables.service shutdown.target ip6tables.service ipset.service ebtables.service", "ControlGroup": "/system.slice/firewalld.service", "ControlPID": "0", "DefaultDependencies": "yes", "Delegate": "no", "Description": "firewalld - dynamic firewall daemon", "DevicePolicy": "auto", "Documentation": "man:firewalld(1)", "EnvironmentFile": "/etc/sysconfig/firewalld (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "9065", "ExecMainStartTimestamp": "Tue 2022-02-22 19:15:55 UTC", "ExecMainStartTimestampMonotonic": "26938334", "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/sbin/firewalld ; argv[]=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS ; ignore_errors=no ; start_time=[Tue 2022-02-22 19:15:55 UTC] ; stop_time=[n/a] ; pid=9065 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/firewalld.service", "GuessMainPID": "yes", "IOScheduling": "0", "Id": "firewalld.service", "IgnoreOnIsolate": "no", "IgnoreOnSnapshot": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Tue 2022-02-22 19:15:55 UTC", "InactiveExitTimestampMonotonic": "26938377", "JobTimeoutAction": "none", "JobTimeoutUSec": "0", "KillMode": "mixed", "KillSignal": "15", "LimitAS": "18446744073709551615", "LimitCORE": "18446744073709551615", "LimitCPU": "18446744073709551615", "LimitDATA": "18446744073709551615", "LimitFSIZE": "18446744073709551615", "LimitLOCKS": "18446744073709551615", "LimitMEMLOCK": "65536", "LimitMSGQUEUE": "819200", "LimitNICE": "0", "LimitNOFILE": "4096", "LimitNPROC": "7163", "LimitRSS": "18446744073709551615", "LimitRTPRIO": "0", "LimitRTTIME": "18446744073709551615", "LimitSIGPENDING": "7163", "LimitSTACK": "18446744073709551615", "LoadState": "loaded", "MainPID": "9065", "MemoryAccounting": "no", "MemoryCurrent": "18446744073709551615", "MemoryLimit": "18446744073709551615", "MountFlags": "0", "Names": "firewalld.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "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": "null", "StandardInput": "null", "StandardOutput": "null", "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": "dbus", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "enabled", "WantedBy": "multi-user.target", "Wants": "network-pre.target", "WatchdogTimestamp": "Tue 2022-02-22 19:15:55 UTC", "WatchdogTimestampMonotonic": "27147887", "WatchdogUSec": "0" } } TASK [linux-system-roles.firewall : Configure firewall] ************************ task path: /tmp/tmpbd6b6rb_/tests/roles/linux-system-roles.firewall/tasks/main.yml:3 Tuesday 22 February 2022 19:16:01 +0000 (0:00:00.426) 0:00:20.178 ****** ok: [/cache/centos-7.qcow2c] => (item={u'state': u'enabled', u'zone': u'internal'}) => { "ansible_loop_var": "item", "changed": false, "item": { "state": "enabled", "zone": "internal" } } ok: [/cache/centos-7.qcow2c] => (item={u'state': u'enabled', u'zone': u'external'}) => { "ansible_loop_var": "item", "changed": false, "item": { "state": "enabled", "zone": "external" } } ok: [/cache/centos-7.qcow2c] => (item={u'state': u'enabled', u'zone': u'trusted'}) => { "ansible_loop_var": "item", "changed": false, "item": { "state": "enabled", "zone": "trusted" } } TASK [Fail on missing zones] *************************************************** task path: /tmp/tmpbd6b6rb_/tests/tests_zone.yml:26 Tuesday 22 February 2022 19:16:02 +0000 (0:00:01.760) 0:00:21.938 ****** skipping: [/cache/centos-7.qcow2c] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Setup firewalld] ********************************************************* task path: /tmp/tmpbd6b6rb_/tests/tests_zone.yml:32 Tuesday 22 February 2022 19:16:02 +0000 (0:00:00.043) 0:00:21.982 ****** statically imported: /tmp/tmpbd6b6rb_/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml TASK [linux-system-roles.firewall : Install firewalld] ************************* task path: /tmp/tmpbd6b6rb_/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:2 Tuesday 22 February 2022 19:16:02 +0000 (0:00:00.068) 0:00:22.051 ****** ok: [/cache/centos-7.qcow2c] => { "changed": false, "rc": 0, "results": [ "firewalld-0.6.3-13.el7_9.noarch providing firewalld is already installed" ] } TASK [linux-system-roles.firewall : Install python-firewall] ******************* task path: /tmp/tmpbd6b6rb_/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:7 Tuesday 22 February 2022 19:16:03 +0000 (0:00:00.643) 0:00:22.695 ****** ok: [/cache/centos-7.qcow2c] => { "changed": false, "rc": 0, "results": [ "python-firewall-0.6.3-13.el7_9.noarch providing python-firewall is already installed" ] } TASK [linux-system-roles.firewall : Install python3-firewall] ****************** task path: /tmp/tmpbd6b6rb_/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:13 Tuesday 22 February 2022 19:16:04 +0000 (0:00:00.639) 0:00:23.334 ****** skipping: [/cache/centos-7.qcow2c] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Enable and start firewalld service] ******** task path: /tmp/tmpbd6b6rb_/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:19 Tuesday 22 February 2022 19:16:04 +0000 (0:00:00.050) 0:00:23.385 ****** ok: [/cache/centos-7.qcow2c] => { "changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestamp": "Tue 2022-02-22 19:15:55 UTC", "ActiveEnterTimestampMonotonic": "27147954", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "system.slice polkit.service dbus.service basic.target", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Tue 2022-02-22 19:15:55 UTC", "AssertTimestampMonotonic": "26936959", "Before": "multi-user.target shutdown.target network-pre.target", "BlockIOAccounting": "no", "BlockIOWeight": "18446744073709551615", "BusName": "org.fedoraproject.FirewallD1", "CPUAccounting": "no", "CPUQuotaPerSecUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "18446744073709551615", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "18446744073709551615", "ConditionResult": "yes", "ConditionTimestamp": "Tue 2022-02-22 19:15:55 UTC", "ConditionTimestampMonotonic": "26936955", "Conflicts": "iptables.service shutdown.target ip6tables.service ipset.service ebtables.service", "ControlGroup": "/system.slice/firewalld.service", "ControlPID": "0", "DefaultDependencies": "yes", "Delegate": "no", "Description": "firewalld - dynamic firewall daemon", "DevicePolicy": "auto", "Documentation": "man:firewalld(1)", "EnvironmentFile": "/etc/sysconfig/firewalld (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "9065", "ExecMainStartTimestamp": "Tue 2022-02-22 19:15:55 UTC", "ExecMainStartTimestampMonotonic": "26938334", "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/sbin/firewalld ; argv[]=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS ; ignore_errors=no ; start_time=[Tue 2022-02-22 19:15:55 UTC] ; stop_time=[n/a] ; pid=9065 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/firewalld.service", "GuessMainPID": "yes", "IOScheduling": "0", "Id": "firewalld.service", "IgnoreOnIsolate": "no", "IgnoreOnSnapshot": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Tue 2022-02-22 19:15:55 UTC", "InactiveExitTimestampMonotonic": "26938377", "JobTimeoutAction": "none", "JobTimeoutUSec": "0", "KillMode": "mixed", "KillSignal": "15", "LimitAS": "18446744073709551615", "LimitCORE": "18446744073709551615", "LimitCPU": "18446744073709551615", "LimitDATA": "18446744073709551615", "LimitFSIZE": "18446744073709551615", "LimitLOCKS": "18446744073709551615", "LimitMEMLOCK": "65536", "LimitMSGQUEUE": "819200", "LimitNICE": "0", "LimitNOFILE": "4096", "LimitNPROC": "7163", "LimitRSS": "18446744073709551615", "LimitRTPRIO": "0", "LimitRTTIME": "18446744073709551615", "LimitSIGPENDING": "7163", "LimitSTACK": "18446744073709551615", "LoadState": "loaded", "MainPID": "9065", "MemoryAccounting": "no", "MemoryCurrent": "18446744073709551615", "MemoryLimit": "18446744073709551615", "MountFlags": "0", "Names": "firewalld.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "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": "null", "StandardInput": "null", "StandardOutput": "null", "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": "dbus", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "enabled", "WantedBy": "multi-user.target", "Wants": "network-pre.target", "WatchdogTimestamp": "Tue 2022-02-22 19:15:55 UTC", "WatchdogTimestampMonotonic": "27147887", "WatchdogUSec": "0" } } TASK [linux-system-roles.firewall : Configure firewall] ************************ task path: /tmp/tmpbd6b6rb_/tests/roles/linux-system-roles.firewall/tasks/main.yml:3 Tuesday 22 February 2022 19:16:04 +0000 (0:00:00.430) 0:00:23.815 ****** changed: [/cache/centos-7.qcow2c] => (item={u'state': u'enabled', u'zone': u'internal', u'port': [u'443/tcp', u'443/udp'], u'service': [u'tftp', u'ftp'], u'forward_port': [u'447/tcp;;1.2.3.4', u'448/tcp;;1.2.3.5']}) => { "ansible_loop_var": "item", "changed": true, "item": { "forward_port": [ "447/tcp;;1.2.3.4", "448/tcp;;1.2.3.5" ], "port": [ "443/tcp", "443/udp" ], "service": [ "tftp", "ftp" ], "state": "enabled", "zone": "internal" } } ok: [/cache/centos-7.qcow2c] => (item={u'state': u'enabled', u'zone': u'internal', u'port': [u'443/tcp', u'443/udp'], u'service': [u'tftp', u'ftp'], u'forward_port': [u'447/tcp;;1.2.3.4', u'448/tcp;;1.2.3.5']}) => { "ansible_loop_var": "item", "changed": false, "item": { "forward_port": [ "447/tcp;;1.2.3.4", "448/tcp;;1.2.3.5" ], "port": [ "443/tcp", "443/udp" ], "service": [ "tftp", "ftp" ], "state": "enabled", "zone": "internal" } } changed: [/cache/centos-7.qcow2c] => (item={u'state': u'present', u'permanent': True, u'zone': u'customzone'}) => { "ansible_loop_var": "item", "changed": true, "item": { "permanent": true, "state": "present", "zone": "customzone" } } changed: [/cache/centos-7.qcow2c] => (item={u'masquerade': True, u'state': u'enabled', u'permanent': True, u'zone': u'customzone'}) => { "ansible_loop_var": "item", "changed": true, "item": { "masquerade": true, "permanent": true, "state": "enabled", "zone": "customzone" } } changed: [/cache/centos-7.qcow2c] => (item={u'state': u'enabled', u'set_default_zone': u'dmz'}) => { "ansible_loop_var": "item", "changed": true, "item": { "set_default_zone": "dmz", "state": "enabled" } } changed: [/cache/centos-7.qcow2c] => (item={u'state': u'enabled', u'service': u'http'}) => { "ansible_loop_var": "item", "changed": true, "item": { "service": "http", "state": "enabled" } } TASK [Fail if no changes are done] ********************************************* task path: /tmp/tmpbd6b6rb_/tests/tests_zone.yml:62 Tuesday 22 February 2022 19:16:08 +0000 (0:00:03.370) 0:00:27.186 ****** skipping: [/cache/centos-7.qcow2c] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Setup firewalld again] *************************************************** task path: /tmp/tmpbd6b6rb_/tests/tests_zone.yml:68 Tuesday 22 February 2022 19:16:08 +0000 (0:00:00.046) 0:00:27.232 ****** TASK [linux-system-roles.firewall : Install firewalld] ************************* task path: /tmp/tmpbd6b6rb_/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:2 Tuesday 22 February 2022 19:16:08 +0000 (0:00:00.069) 0:00:27.301 ****** ok: [/cache/centos-7.qcow2c] => { "changed": false, "rc": 0, "results": [ "firewalld-0.6.3-13.el7_9.noarch providing firewalld is already installed" ] } TASK [linux-system-roles.firewall : Install python-firewall] ******************* task path: /tmp/tmpbd6b6rb_/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:7 Tuesday 22 February 2022 19:16:08 +0000 (0:00:00.624) 0:00:27.925 ****** ok: [/cache/centos-7.qcow2c] => { "changed": false, "rc": 0, "results": [ "python-firewall-0.6.3-13.el7_9.noarch providing python-firewall is already installed" ] } TASK [linux-system-roles.firewall : Install python3-firewall] ****************** task path: /tmp/tmpbd6b6rb_/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:13 Tuesday 22 February 2022 19:16:09 +0000 (0:00:00.681) 0:00:28.607 ****** skipping: [/cache/centos-7.qcow2c] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Enable and start firewalld service] ******** task path: /tmp/tmpbd6b6rb_/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:19 Tuesday 22 February 2022 19:16:09 +0000 (0:00:00.047) 0:00:28.654 ****** ok: [/cache/centos-7.qcow2c] => { "changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestamp": "Tue 2022-02-22 19:15:55 UTC", "ActiveEnterTimestampMonotonic": "27147954", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "system.slice polkit.service dbus.service basic.target", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Tue 2022-02-22 19:15:55 UTC", "AssertTimestampMonotonic": "26936959", "Before": "multi-user.target shutdown.target network-pre.target", "BlockIOAccounting": "no", "BlockIOWeight": "18446744073709551615", "BusName": "org.fedoraproject.FirewallD1", "CPUAccounting": "no", "CPUQuotaPerSecUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "18446744073709551615", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "18446744073709551615", "ConditionResult": "yes", "ConditionTimestamp": "Tue 2022-02-22 19:15:55 UTC", "ConditionTimestampMonotonic": "26936955", "Conflicts": "iptables.service shutdown.target ip6tables.service ipset.service ebtables.service", "ControlGroup": "/system.slice/firewalld.service", "ControlPID": "0", "DefaultDependencies": "yes", "Delegate": "no", "Description": "firewalld - dynamic firewall daemon", "DevicePolicy": "auto", "Documentation": "man:firewalld(1)", "EnvironmentFile": "/etc/sysconfig/firewalld (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "9065", "ExecMainStartTimestamp": "Tue 2022-02-22 19:15:55 UTC", "ExecMainStartTimestampMonotonic": "26938334", "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/sbin/firewalld ; argv[]=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS ; ignore_errors=no ; start_time=[Tue 2022-02-22 19:15:55 UTC] ; stop_time=[n/a] ; pid=9065 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/firewalld.service", "GuessMainPID": "yes", "IOScheduling": "0", "Id": "firewalld.service", "IgnoreOnIsolate": "no", "IgnoreOnSnapshot": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Tue 2022-02-22 19:15:55 UTC", "InactiveExitTimestampMonotonic": "26938377", "JobTimeoutAction": "none", "JobTimeoutUSec": "0", "KillMode": "mixed", "KillSignal": "15", "LimitAS": "18446744073709551615", "LimitCORE": "18446744073709551615", "LimitCPU": "18446744073709551615", "LimitDATA": "18446744073709551615", "LimitFSIZE": "18446744073709551615", "LimitLOCKS": "18446744073709551615", "LimitMEMLOCK": "65536", "LimitMSGQUEUE": "819200", "LimitNICE": "0", "LimitNOFILE": "4096", "LimitNPROC": "7163", "LimitRSS": "18446744073709551615", "LimitRTPRIO": "0", "LimitRTTIME": "18446744073709551615", "LimitSIGPENDING": "7163", "LimitSTACK": "18446744073709551615", "LoadState": "loaded", "MainPID": "9065", "MemoryAccounting": "no", "MemoryCurrent": "18446744073709551615", "MemoryLimit": "18446744073709551615", "MountFlags": "0", "Names": "firewalld.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "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": "null", "StandardInput": "null", "StandardOutput": "null", "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": "dbus", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "enabled", "WantedBy": "multi-user.target", "Wants": "network-pre.target", "WatchdogTimestamp": "Tue 2022-02-22 19:15:55 UTC", "WatchdogTimestampMonotonic": "27147887", "WatchdogUSec": "0" } } TASK [linux-system-roles.firewall : Configure firewall] ************************ task path: /tmp/tmpbd6b6rb_/tests/roles/linux-system-roles.firewall/tasks/main.yml:3 Tuesday 22 February 2022 19:16:09 +0000 (0:00:00.415) 0:00:29.070 ****** ok: [/cache/centos-7.qcow2c] => (item={u'state': u'enabled', u'zone': u'internal', u'port': [u'443/tcp', u'443/udp'], u'service': [u'tftp', u'ftp'], u'forward_port': [u'447/tcp;;1.2.3.4', u'448/tcp;;1.2.3.5']}) => { "ansible_loop_var": "item", "changed": false, "item": { "forward_port": [ "447/tcp;;1.2.3.4", "448/tcp;;1.2.3.5" ], "port": [ "443/tcp", "443/udp" ], "service": [ "tftp", "ftp" ], "state": "enabled", "zone": "internal" } } ok: [/cache/centos-7.qcow2c] => (item={u'state': u'enabled', u'zone': u'internal', u'port': [u'443/tcp', u'443/udp'], u'service': [u'tftp', u'ftp'], u'forward_port': [u'447/tcp;;1.2.3.4', u'448/tcp;;1.2.3.5']}) => { "ansible_loop_var": "item", "changed": false, "item": { "forward_port": [ "447/tcp;;1.2.3.4", "448/tcp;;1.2.3.5" ], "port": [ "443/tcp", "443/udp" ], "service": [ "tftp", "ftp" ], "state": "enabled", "zone": "internal" } } ok: [/cache/centos-7.qcow2c] => (item={u'state': u'present', u'permanent': True, u'zone': u'customzone'}) => { "ansible_loop_var": "item", "changed": false, "item": { "permanent": true, "state": "present", "zone": "customzone" } } ok: [/cache/centos-7.qcow2c] => (item={u'masquerade': True, u'state': u'enabled', u'permanent': True, u'zone': u'customzone'}) => { "ansible_loop_var": "item", "changed": false, "item": { "masquerade": true, "permanent": true, "state": "enabled", "zone": "customzone" } } ok: [/cache/centos-7.qcow2c] => (item={u'state': u'enabled', u'set_default_zone': u'dmz'}) => { "ansible_loop_var": "item", "changed": false, "item": { "set_default_zone": "dmz", "state": "enabled" } } ok: [/cache/centos-7.qcow2c] => (item={u'state': u'enabled', u'service': u'http'}) => { "ansible_loop_var": "item", "changed": false, "item": { "service": "http", "state": "enabled" } } TASK [Fail on newly changes] *************************************************** task path: /tmp/tmpbd6b6rb_/tests/tests_zone.yml:98 Tuesday 22 February 2022 19:16:13 +0000 (0:00:03.142) 0:00:32.212 ****** skipping: [/cache/centos-7.qcow2c] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify firewalld zone internal services] ********************************* task path: /tmp/tmpbd6b6rb_/tests/tests_zone.yml:104 Tuesday 22 February 2022 19:16:13 +0000 (0:00:00.044) 0:00:32.256 ****** changed: [/cache/centos-7.qcow2c] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--zone=internal", "--list-services" ], "delta": "0:00:00.277726", "end": "2022-02-22 19:16:13.327725", "failed_when_result": false, "rc": 0, "start": "2022-02-22 19:16:13.049999" } STDOUT: dhcpv6-client ftp mdns samba-client ssh tftp TASK [Verify firewalld zone internal ports] ************************************ task path: /tmp/tmpbd6b6rb_/tests/tests_zone.yml:111 Tuesday 22 February 2022 19:16:13 +0000 (0:00:00.734) 0:00:32.991 ****** changed: [/cache/centos-7.qcow2c] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--zone=internal", "--list-ports" ], "delta": "0:00:00.264232", "end": "2022-02-22 19:16:13.939544", "failed_when_result": false, "rc": 0, "start": "2022-02-22 19:16:13.675312" } STDOUT: 443/tcp 443/udp TASK [Verify firewalld zone internal forward ports] **************************** task path: /tmp/tmpbd6b6rb_/tests/tests_zone.yml:118 Tuesday 22 February 2022 19:16:14 +0000 (0:00:00.609) 0:00:33.601 ****** changed: [/cache/centos-7.qcow2c] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--zone=internal", "--list-forward-ports" ], "delta": "0:00:00.287904", "end": "2022-02-22 19:16:14.567354", "failed_when_result": false, "rc": 0, "start": "2022-02-22 19:16:14.279450" } STDOUT: port=447:proto=tcp:toport=:toaddr=1.2.3.4 port=448:proto=tcp:toport=:toaddr=1.2.3.5 TASK [Verify custom zone has masquerade added to it] *************************** task path: /tmp/tmpbd6b6rb_/tests/tests_zone.yml:127 Tuesday 22 February 2022 19:16:15 +0000 (0:00:00.628) 0:00:34.229 ****** changed: [/cache/centos-7.qcow2c] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--zone=customzone", "--query-masquerade" ], "delta": "0:00:00.265197", "end": "2022-02-22 19:16:15.164756", "failed_when_result": false, "rc": 0, "start": "2022-02-22 19:16:14.899559" } STDOUT: yes TASK [Verify custom zone has masquerade added to it] *************************** task path: /tmp/tmpbd6b6rb_/tests/tests_zone.yml:133 Tuesday 22 February 2022 19:16:15 +0000 (0:00:00.596) 0:00:34.826 ****** changed: [/cache/centos-7.qcow2c] => { "changed": true, "cmd": [ "firewall-cmd", "--get-default-zone" ], "delta": "0:00:00.249368", "end": "2022-02-22 19:16:15.750008", "failed_when_result": false, "rc": 0, "start": "2022-02-22 19:16:15.500640" } STDOUT: dmz TASK [Verify that service http has been added to the default zone dmz] ********* task path: /tmp/tmpbd6b6rb_/tests/tests_zone.yml:139 Tuesday 22 February 2022 19:16:16 +0000 (0:00:00.584) 0:00:35.411 ****** changed: [/cache/centos-7.qcow2c] => { "changed": true, "cmd": [ "firewall-cmd", "--zone=dmz", "--query-service=http" ], "delta": "0:00:00.269497", "end": "2022-02-22 19:16:16.378567", "failed_when_result": false, "rc": 0, "start": "2022-02-22 19:16:16.109070" } STDOUT: yes TASK [Reset to zone defaults] ************************************************** task path: /tmp/tmpbd6b6rb_/tests/tests_zone.yml:148 Tuesday 22 February 2022 19:16:16 +0000 (0:00:00.630) 0:00:36.041 ****** changed: [/cache/centos-7.qcow2c] => { "changed": true, "cmd": "firewall-cmd --permanent --load-zone-defaults=internal\nfirewall-cmd --permanent --load-zone-defaults=external\nfirewall-cmd --permanent --load-zone-defaults=trusted\nfirewall-cmd --reload\n", "delta": "0:00:01.324036", "end": "2022-02-22 19:16:18.031382", "rc": 0, "start": "2022-02-22 19:16:16.707346" } STDOUT: success success STDERR: Error: NO_DEFAULTS: external Error: NO_DEFAULTS: trusted META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-7.qcow2c : ok=24 changed=10 unreachable=0 failed=0 skipped=9 rescued=0 ignored=0 Tuesday 22 February 2022 19:16:18 +0000 (0:00:01.644) 0:00:37.685 ****** =============================================================================== linux-system-roles.firewall : Install firewalld ------------------------ 12.51s /tmp/tmpbd6b6rb_/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:2 linux-system-roles.firewall : Install firewalld ------------------------- 3.67s /tmp/tmpbd6b6rb_/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:2 linux-system-roles.firewall : Configure firewall ------------------------ 3.14s /tmp/tmpbd6b6rb_/tests/roles/linux-system-roles.firewall/tasks/main.yml:3 ----- linux-system-roles.firewall : Configure firewall ------------------------ 1.76s /tmp/tmpbd6b6rb_/tests/roles/linux-system-roles.firewall/tasks/main.yml:3 ----- Reset to zone defaults -------------------------------------------------- 1.64s /tmp/tmpbd6b6rb_/tests/tests_zone.yml:148 ------------------------------------- Gathering Facts --------------------------------------------------------- 0.94s /tmp/tmpbd6b6rb_/tests/tests_zone.yml:1 --------------------------------------- linux-system-roles.firewall : Enable and start firewalld service -------- 0.91s /tmp/tmpbd6b6rb_/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:19 Verify firewalld zone internal services --------------------------------- 0.73s /tmp/tmpbd6b6rb_/tests/tests_zone.yml:104 ------------------------------------- linux-system-roles.firewall : Install python-firewall ------------------- 0.68s /tmp/tmpbd6b6rb_/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:7 linux-system-roles.firewall : Install python-firewall ------------------- 0.67s /tmp/tmpbd6b6rb_/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:7 Verify that service http has been added to the default zone dmz --------- 0.63s /tmp/tmpbd6b6rb_/tests/tests_zone.yml:139 ------------------------------------- Verify firewalld zone internal forward ports ---------------------------- 0.63s /tmp/tmpbd6b6rb_/tests/tests_zone.yml:118 ------------------------------------- linux-system-roles.firewall : Install firewalld ------------------------- 0.62s /tmp/tmpbd6b6rb_/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:2 linux-system-roles.firewall : Install python-firewall ------------------- 0.62s /tmp/tmpbd6b6rb_/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:7 Verify firewalld zone internal ports ------------------------------------ 0.61s /tmp/tmpbd6b6rb_/tests/tests_zone.yml:111 ------------------------------------- Verify custom zone has masquerade added to it --------------------------- 0.60s /tmp/tmpbd6b6rb_/tests/tests_zone.yml:127 ------------------------------------- Verify custom zone has masquerade added to it --------------------------- 0.58s /tmp/tmpbd6b6rb_/tests/tests_zone.yml:133 ------------------------------------- linux-system-roles.firewall : Enable and start firewalld service -------- 0.43s /tmp/tmpbd6b6rb_/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:19 linux-system-roles.firewall : Enable and start firewalld service -------- 0.42s /tmp/tmpbd6b6rb_/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:19 include_role : linux-system-roles.firewall ------------------------------ 0.12s /tmp/tmpbd6b6rb_/tests/tests_zone.yml:6 ---------------------------------------