+ cd /tmp/tmp7ot7w6_s/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-57-a369229-centos-7-dwv2n9i9/artifacts ANSIBLE_COLLECTIONS_PATHS=/tmp/tmpnp25rsig:~/.ansible/collections:/usr/share/ansible/collections ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 --skip-tags=tests::cleanup,tests::nvme /tmp/tmp7ot7w6_s/_setup.yml /tmp/tmp7ot7w6_s/tests/tests_ansible.yml ansible-playbook [core 2.12.1rc1.post0] config file = None configured module search path = ['/home/runner/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/lib/python3.8/site-packages/ansible ansible collection location = /tmp/tmpnp25rsig:/home/runner/.ansible/collections:/usr/share/ansible/collections executable location = /usr/local/bin/ansible-playbook python version = 3.8.8 (default, Aug 25 2021, 16:13:02) [GCC 8.5.0 20210514 (Red Hat 8.5.0-3)] jinja version = 2.10.3 libyaml = True No config file found; using defaults Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'default', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. PLAYBOOK: _setup.yml *********************************************************** 1 plays in /tmp/tmp7ot7w6_s/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmp7ot7w6_s/_setup.yml:5 Thursday 02 December 2021 15:45:36 +0000 (0:00:00.013) 0:00:00.013 ***** 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/tmp7ot7w6_s/_setup.yml:6 Thursday 02 December 2021 15:45:36 +0000 (0:00:00.018) 0:00:00.032 ***** 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 Thursday 02 December 2021 15:45:36 +0000 (0:00:00.017) 0:00:00.049 ***** =============================================================================== debug ------------------------------------------------------------------- 0.02s /tmp/tmp7ot7w6_s/_setup.yml:5 ------------------------------------------------- fail -------------------------------------------------------------------- 0.02s /tmp/tmp7ot7w6_s/_setup.yml:6 ------------------------------------------------- [DEPRECATION WARNING]: "include" is deprecated, use include_tasks/import_tasks instead. This feature will be removed in version 2.16. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. statically imported: /tmp/tmp7ot7w6_s/tasks/firewalld.yml PLAYBOOK: tests_ansible.yml **************************************************** 1 plays in /tmp/tmp7ot7w6_s/tests/tests_ansible.yml PLAY [Ensure that the roles runs with default parameters] ********************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp7ot7w6_s/tests/tests_ansible.yml:1 Thursday 02 December 2021 15:45:36 +0000 (0:00:00.035) 0:00:00.085 ***** ok: [/cache/centos-7.qcow2c] META: ran handlers TASK [linux-system-roles.firewall : Install firewalld] ************************* task path: /tmp/tmp7ot7w6_s/tasks/firewalld.yml:2 Thursday 02 December 2021 15:45:37 +0000 (0:00:00.985) 0:00:01.070 ***** 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.us-midwest-1.nexcess.net\n * extras: mirror.cs.vt.edu\n * updates: mirror.datto.com\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.8 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/tmp7ot7w6_s/tasks/firewalld.yml:7 Thursday 02 December 2021 15:45:47 +0000 (0:00:10.311) 0:00:11.381 ***** 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/tmp7ot7w6_s/tasks/firewalld.yml:13 Thursday 02 December 2021 15:45:48 +0000 (0:00:00.500) 0:00:11.882 ***** 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/tmp7ot7w6_s/tasks/firewalld.yml:19 Thursday 02 December 2021 15:45:48 +0000 (0:00:00.021) 0:00:11.903 ***** changed: [/cache/centos-7.qcow2c] => { "changed": true, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "system.slice dbus.service 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 ebtables.service ip6tables.service iptables.service ipset.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": "7162", "LimitRSS": "18446744073709551615", "LimitRTPRIO": "0", "LimitRTTIME": "18446744073709551615", "LimitSIGPENDING": "7162", "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/tmp7ot7w6_s/tasks/main.yml:3 Thursday 02 December 2021 15:45:49 +0000 (0:00:00.889) 0:00:12.793 ***** META: role_complete for /cache/centos-7.qcow2c TASK [Remove custom zone] ****************************************************** task path: /tmp/tmp7ot7w6_s/tests/tests_ansible.yml:14 Thursday 02 December 2021 15:45:49 +0000 (0:00:00.023) 0:00:12.816 ***** changed: [/cache/centos-7.qcow2c] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--delete-zone=custom" ], "delta": "0:00:00.270876", "end": "2021-12-02 15:45:48.778796", "failed_when_result": false, "rc": 112, "start": "2021-12-02 15:45:48.507920" } STDERR: Error: INVALID_ZONE: custom MSG: non-zero return code TASK [Reset internal zone to defaults] ***************************************** task path: /tmp/tmp7ot7w6_s/tests/tests_ansible.yml:19 Thursday 02 December 2021 15:45:49 +0000 (0:00:00.701) 0:00:13.517 ***** changed: [/cache/centos-7.qcow2c] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=internal" ], "delta": "0:00:00.279036", "end": "2021-12-02 15:45:49.414686", "failed_when_result": false, "rc": 22, "start": "2021-12-02 15:45:49.135650" } STDERR: Error: NO_DEFAULTS: internal MSG: non-zero return code TASK [Reset trusted zone to defaults] ****************************************** task path: /tmp/tmp7ot7w6_s/tests/tests_ansible.yml:24 Thursday 02 December 2021 15:45:50 +0000 (0:00:00.636) 0:00:14.154 ***** changed: [/cache/centos-7.qcow2c] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=trusted" ], "delta": "0:00:00.260528", "end": "2021-12-02 15:45:49.966368", "failed_when_result": false, "rc": 22, "start": "2021-12-02 15:45:49.705840" } STDERR: Error: NO_DEFAULTS: trusted MSG: non-zero return code TASK [Reset dmz zone to defaults] ********************************************** task path: /tmp/tmp7ot7w6_s/tests/tests_ansible.yml:29 Thursday 02 December 2021 15:45:50 +0000 (0:00:00.551) 0:00:14.705 ***** changed: [/cache/centos-7.qcow2c] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=dmz" ], "delta": "0:00:00.264943", "end": "2021-12-02 15:45:50.525389", "failed_when_result": false, "rc": 22, "start": "2021-12-02 15:45:50.260446" } STDERR: Error: NO_DEFAULTS: dmz MSG: non-zero return code TASK [Reset drop zone to defaults] ********************************************* task path: /tmp/tmp7ot7w6_s/tests/tests_ansible.yml:34 Thursday 02 December 2021 15:45:51 +0000 (0:00:00.559) 0:00:15.264 ***** changed: [/cache/centos-7.qcow2c] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=drop" ], "delta": "0:00:00.262348", "end": "2021-12-02 15:45:51.088762", "failed_when_result": false, "rc": 22, "start": "2021-12-02 15:45:50.826414" } STDERR: Error: NO_DEFAULTS: drop MSG: non-zero return code TASK [Reset public zone to defaults] ******************************************* task path: /tmp/tmp7ot7w6_s/tests/tests_ansible.yml:39 Thursday 02 December 2021 15:45:52 +0000 (0:00:00.563) 0:00:15.828 ***** changed: [/cache/centos-7.qcow2c] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=public" ], "delta": "0:00:00.287167", "end": "2021-12-02 15:45:51.677743", "failed_when_result": false, "rc": 0, "start": "2021-12-02 15:45:51.390576" } STDOUT: success TASK [Reset default zone to defaults] ****************************************** task path: /tmp/tmp7ot7w6_s/tests/tests_ansible.yml:44 Thursday 02 December 2021 15:45:52 +0000 (0:00:00.590) 0:00:16.419 ***** 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.528623", "end": "2021-12-02 15:45:52.514575", "failed_when_result": false, "rc": 22, "start": "2021-12-02 15:45:51.985952" } STDERR: Error: NO_DEFAULTS: public MSG: non-zero return code TASK [Create custom zone] ****************************************************** task path: /tmp/tmp7ot7w6_s/tests/tests_ansible.yml:52 Thursday 02 December 2021 15:45:53 +0000 (0:00:00.838) 0:00:17.258 ***** changed: [/cache/centos-7.qcow2c] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--new-zone=custom" ], "delta": "0:00:00.258442", "end": "2021-12-02 15:45:53.083382", "failed_when_result": false, "rc": 0, "start": "2021-12-02 15:45:52.824940" } STDOUT: success TASK [Reload firewalld] ******************************************************** task path: /tmp/tmp7ot7w6_s/tests/tests_ansible.yml:57 Thursday 02 December 2021 15:45:54 +0000 (0:00:00.565) 0:00:17.824 ***** changed: [/cache/centos-7.qcow2c] => { "changed": true, "cmd": [ "firewall-cmd", "--reload" ], "delta": "0:00:00.466207", "end": "2021-12-02 15:45:53.861702", "failed_when_result": false, "rc": 0, "start": "2021-12-02 15:45:53.395495" } STDOUT: success TASK [Permit traffic in default zone for https service] ************************ task path: /tmp/tmp7ot7w6_s/tests/tests_ansible.yml:64 Thursday 02 December 2021 15:45:54 +0000 (0:00:00.779) 0:00:18.603 ***** changed: [/cache/centos-7.qcow2c] => { "changed": true, "failed_when_result": false } TASK [Permit traffic in default zone for https service, again] ***************** task path: /tmp/tmp7ot7w6_s/tests/tests_ansible.yml:72 Thursday 02 December 2021 15:45:55 +0000 (0:00:00.625) 0:00:19.228 ***** ok: [/cache/centos-7.qcow2c] => { "changed": false, "failed_when_result": false } TASK [Permit traffic in default zone on port 8081/tcp] ************************* task path: /tmp/tmp7ot7w6_s/tests/tests_ansible.yml:80 Thursday 02 December 2021 15:45:55 +0000 (0:00:00.506) 0:00:19.734 ***** 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/tmp7ot7w6_s/tests/tests_ansible.yml:88 Thursday 02 December 2021 15:45:56 +0000 (0:00:00.502) 0:00:20.236 ***** ok: [/cache/centos-7.qcow2c] => { "changed": false, "failed_when_result": false } TASK [Allow port 161-162/udp in permanent default zone] ************************ task path: /tmp/tmp7ot7w6_s/tests/tests_ansible.yml:96 Thursday 02 December 2021 15:45:56 +0000 (0:00:00.504) 0:00:20.741 ***** 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/tmp7ot7w6_s/tests/tests_ansible.yml:104 Thursday 02 December 2021 15:45:57 +0000 (0:00:00.490) 0:00:21.231 ***** 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/tmp7ot7w6_s/tests/tests_ansible.yml:112 Thursday 02 December 2021 15:45:57 +0000 (0:00:00.483) 0:00:21.715 ***** 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/tmp7ot7w6_s/tests/tests_ansible.yml:120 Thursday 02 December 2021 15:45:58 +0000 (0:00:00.492) 0:00:22.207 ***** ok: [/cache/centos-7.qcow2c] => { "changed": false, "failed_when_result": false } TASK [Allow service http in permanent dmz zone] ******************************** task path: /tmp/tmp7ot7w6_s/tests/tests_ansible.yml:128 Thursday 02 December 2021 15:45:58 +0000 (0:00:00.510) 0:00:22.718 ***** changed: [/cache/centos-7.qcow2c] => { "changed": true, "failed_when_result": false } TASK [Allow service http in permanent dmz zone, again] ************************* task path: /tmp/tmp7ot7w6_s/tests/tests_ansible.yml:137 Thursday 02 December 2021 15:45:59 +0000 (0:00:00.497) 0:00:23.216 ***** 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/tmp7ot7w6_s/tests/tests_ansible.yml:146 Thursday 02 December 2021 15:45:59 +0000 (0:00:00.500) 0:00:23.716 ***** 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/tmp7ot7w6_s/tests/tests_ansible.yml:155 Thursday 02 December 2021 15:46:00 +0000 (0:00:00.492) 0:00:24.209 ***** 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/tmp7ot7w6_s/tests/tests_ansible.yml:164 Thursday 02 December 2021 15:46:00 +0000 (0:00:00.511) 0:00:24.721 ***** 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/tmp7ot7w6_s/tests/tests_ansible.yml:173 Thursday 02 December 2021 15:46:01 +0000 (0:00:00.498) 0:00:25.219 ***** ok: [/cache/centos-7.qcow2c] => { "changed": false, "failed_when_result": false } TASK [Allow interface eth2 in permanent trusted zone] ************************** task path: /tmp/tmp7ot7w6_s/tests/tests_ansible.yml:182 Thursday 02 December 2021 15:46:01 +0000 (0:00:00.502) 0:00:25.721 ***** changed: [/cache/centos-7.qcow2c] => { "changed": true, "failed_when_result": false } TASK [Allow interface eth2 in permanent trusted zone, again] ******************* task path: /tmp/tmp7ot7w6_s/tests/tests_ansible.yml:191 Thursday 02 December 2021 15:46:02 +0000 (0:00:00.495) 0:00:26.217 ***** ok: [/cache/centos-7.qcow2c] => { "changed": false, "failed_when_result": false } TASK [Allow masquerading in permament dmz zone] ******************************** task path: /tmp/tmp7ot7w6_s/tests/tests_ansible.yml:200 Thursday 02 December 2021 15:46:02 +0000 (0:00:00.533) 0:00:26.751 ***** changed: [/cache/centos-7.qcow2c] => { "changed": true, "failed_when_result": false } TASK [Allow masquerading in permament dmz zone, again] ************************* task path: /tmp/tmp7ot7w6_s/tests/tests_ansible.yml:209 Thursday 02 December 2021 15:46:03 +0000 (0:00:00.496) 0:00:27.247 ***** ok: [/cache/centos-7.qcow2c] => { "changed": false, "failed_when_result": false } TASK [Ensure permanent custom zone exists (no change)] ************************* task path: /tmp/tmp7ot7w6_s/tests/tests_ansible.yml:218 Thursday 02 December 2021 15:46:03 +0000 (0:00:00.505) 0:00:27.753 ***** ok: [/cache/centos-7.qcow2c] => { "changed": false, "failed_when_result": false } TASK [Ensure ICMP block inversion in permanent drop zone] ********************** task path: /tmp/tmp7ot7w6_s/tests/tests_ansible.yml:226 Thursday 02 December 2021 15:46:04 +0000 (0:00:00.494) 0:00:28.247 ***** changed: [/cache/centos-7.qcow2c] => { "changed": true, "failed_when_result": false } TASK [Ensure ICMP block inversion in permanent drop zone, again] *************** task path: /tmp/tmp7ot7w6_s/tests/tests_ansible.yml:235 Thursday 02 December 2021 15:46:04 +0000 (0:00:00.500) 0:00:28.748 ***** ok: [/cache/centos-7.qcow2c] => { "changed": false, "failed_when_result": false } TASK [Block ICMP echo-request in permanent drop zone] ************************** task path: /tmp/tmp7ot7w6_s/tests/tests_ansible.yml:244 Thursday 02 December 2021 15:46:05 +0000 (0:00:00.491) 0:00:29.239 ***** changed: [/cache/centos-7.qcow2c] => { "changed": true, "failed_when_result": false } TASK [Block ICMP echo-request in permanent drop zone, again] ******************* task path: /tmp/tmp7ot7w6_s/tests/tests_ansible.yml:253 Thursday 02 December 2021 15:46:05 +0000 (0:00:00.487) 0:00:29.727 ***** ok: [/cache/centos-7.qcow2c] => { "changed": false, "failed_when_result": false } TASK [Ensure default target in permanent internal zone (no change)] ************ task path: /tmp/tmp7ot7w6_s/tests/tests_ansible.yml:262 Thursday 02 December 2021 15:46:06 +0000 (0:00:00.485) 0:00:30.212 ***** ok: [/cache/centos-7.qcow2c] => { "changed": false, "failed_when_result": false } TASK [Ensure target ACCEPT in permanent internal zone] ************************* task path: /tmp/tmp7ot7w6_s/tests/tests_ansible.yml:271 Thursday 02 December 2021 15:46:06 +0000 (0:00:00.493) 0:00:30.706 ***** changed: [/cache/centos-7.qcow2c] => { "changed": true, "failed_when_result": false } TASK [Ensure target ACCEPT in permanent internal zone, again] ****************** task path: /tmp/tmp7ot7w6_s/tests/tests_ansible.yml:280 Thursday 02 December 2021 15:46:07 +0000 (0:00:00.500) 0:00:31.206 ***** ok: [/cache/centos-7.qcow2c] => { "changed": false, "failed_when_result": false } TASK [Ensure default target in permanent internal zone] ************************ task path: /tmp/tmp7ot7w6_s/tests/tests_ansible.yml:289 Thursday 02 December 2021 15:46:07 +0000 (0:00:00.497) 0:00:31.704 ***** changed: [/cache/centos-7.qcow2c] => { "changed": true, "failed_when_result": false } TASK [Ensure default target in permanent internal zone, again] ***************** task path: /tmp/tmp7ot7w6_s/tests/tests_ansible.yml:298 Thursday 02 December 2021 15:46:08 +0000 (0:00:00.492) 0:00:32.196 ***** 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/tmp7ot7w6_s/tests/tests_ansible.yml:307 Thursday 02 December 2021 15:46:08 +0000 (0:00:00.502) 0:00:32.698 ***** [DEPRECATION WARNING]: Alias 'immediate' is deprecated. See the module docs for more information. This feature will be removed from ansible.posix in a release after 2021-09-23. 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/tmp7ot7w6_s/tests/tests_ansible.yml:319 Thursday 02 December 2021 15:46:09 +0000 (0:00:00.511) 0:00:33.210 ***** ok: [/cache/centos-7.qcow2c] => { "changed": false, "failed_when_result": false } TASK [Firewalld custom zone] *************************************************** task path: /tmp/tmp7ot7w6_s/tests/tests_ansible.yml:331 Thursday 02 December 2021 15:46:09 +0000 (0:00:00.498) 0:00:33.708 ***** changed: [/cache/centos-7.qcow2c] => { "changed": true } TASK [assert firewalld custom zone] ******************************************** task path: /tmp/tmp7ot7w6_s/tests/tests_ansible.yml:338 Thursday 02 December 2021 15:46:10 +0000 (0:00:00.475) 0:00:34.184 ***** ok: [/cache/centos-7.qcow2c] => { "changed": false } MSG: All assertions passed TASK [Remove custom zone] ****************************************************** task path: /tmp/tmp7ot7w6_s/tests/tests_ansible.yml:347 Thursday 02 December 2021 15:46:10 +0000 (0:00:00.023) 0:00:34.208 ***** changed: [/cache/centos-7.qcow2c] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--delete-zone=custom" ], "delta": "0:00:00.276571", "end": "2021-12-02 15:46:10.047914", "failed_when_result": false, "rc": 0, "start": "2021-12-02 15:46:09.771343" } STDOUT: success TASK [Reset internal zone to defaults] ***************************************** task path: /tmp/tmp7ot7w6_s/tests/tests_ansible.yml:352 Thursday 02 December 2021 15:46:11 +0000 (0:00:00.580) 0:00:34.789 ***** changed: [/cache/centos-7.qcow2c] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=internal" ], "delta": "0:00:00.263847", "end": "2021-12-02 15:46:10.617857", "failed_when_result": false, "rc": 0, "start": "2021-12-02 15:46:10.354010" } STDOUT: success TASK [Reset trusted zone to defaults] ****************************************** task path: /tmp/tmp7ot7w6_s/tests/tests_ansible.yml:357 Thursday 02 December 2021 15:46:11 +0000 (0:00:00.571) 0:00:35.360 ***** changed: [/cache/centos-7.qcow2c] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=trusted" ], "delta": "0:00:00.266481", "end": "2021-12-02 15:46:11.235687", "failed_when_result": false, "rc": 0, "start": "2021-12-02 15:46:10.969206" } STDOUT: success TASK [Reset dmz zone to defaults] ********************************************** task path: /tmp/tmp7ot7w6_s/tests/tests_ansible.yml:362 Thursday 02 December 2021 15:46:12 +0000 (0:00:00.618) 0:00:35.979 ***** changed: [/cache/centos-7.qcow2c] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=dmz" ], "delta": "0:00:00.261999", "end": "2021-12-02 15:46:11.810405", "failed_when_result": false, "rc": 0, "start": "2021-12-02 15:46:11.548406" } STDOUT: success TASK [Reset drop zone to defaults] ********************************************* task path: /tmp/tmp7ot7w6_s/tests/tests_ansible.yml:367 Thursday 02 December 2021 15:46:12 +0000 (0:00:00.574) 0:00:36.553 ***** changed: [/cache/centos-7.qcow2c] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=drop" ], "delta": "0:00:00.277073", "end": "2021-12-02 15:46:12.397438", "failed_when_result": false, "rc": 0, "start": "2021-12-02 15:46:12.120365" } STDOUT: success TASK [Reset public zone to defaults] ******************************************* task path: /tmp/tmp7ot7w6_s/tests/tests_ansible.yml:372 Thursday 02 December 2021 15:46:13 +0000 (0:00:00.586) 0:00:37.140 ***** changed: [/cache/centos-7.qcow2c] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=public" ], "delta": "0:00:00.257587", "end": "2021-12-02 15:46:12.967070", "failed_when_result": false, "rc": 0, "start": "2021-12-02 15:46:12.709483" } STDOUT: success TASK [Reset default zone to defaults] ****************************************** task path: /tmp/tmp7ot7w6_s/tests/tests_ansible.yml:377 Thursday 02 December 2021 15:46:13 +0000 (0:00:00.570) 0:00:37.710 ***** 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.496938", "end": "2021-12-02 15:46:13.755424", "failed_when_result": false, "rc": 22, "start": "2021-12-02 15:46:13.258486" } STDERR: Error: NO_DEFAULTS: public MSG: non-zero return code TASK [Reload firewalld] ******************************************************** task path: /tmp/tmp7ot7w6_s/tests/tests_ansible.yml:385 Thursday 02 December 2021 15:46:14 +0000 (0:00:00.785) 0:00:38.496 ***** changed: [/cache/centos-7.qcow2c] => { "changed": true, "cmd": [ "firewall-cmd", "--reload" ], "delta": "0:00:00.451561", "end": "2021-12-02 15:46:14.509111", "failed_when_result": false, "rc": 0, "start": "2021-12-02 15:46:14.057550" } STDOUT: success META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-7.qcow2c : ok=54 changed=34 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 Thursday 02 December 2021 15:46:15 +0000 (0:00:00.763) 0:00:39.260 ***** =============================================================================== linux-system-roles.firewall : Install firewalld ------------------------ 10.31s /tmp/tmp7ot7w6_s/tasks/firewalld.yml:2 ---------------------------------------- Gathering Facts --------------------------------------------------------- 0.99s /tmp/tmp7ot7w6_s/tests/tests_ansible.yml:1 ------------------------------------ linux-system-roles.firewall : Enable and start firewalld service -------- 0.89s /tmp/tmp7ot7w6_s/tasks/firewalld.yml:19 --------------------------------------- Reset default zone to defaults ------------------------------------------ 0.84s /tmp/tmp7ot7w6_s/tests/tests_ansible.yml:44 ----------------------------------- Reset default zone to defaults ------------------------------------------ 0.79s /tmp/tmp7ot7w6_s/tests/tests_ansible.yml:377 ---------------------------------- Reload firewalld -------------------------------------------------------- 0.78s /tmp/tmp7ot7w6_s/tests/tests_ansible.yml:57 ----------------------------------- Reload firewalld -------------------------------------------------------- 0.76s /tmp/tmp7ot7w6_s/tests/tests_ansible.yml:385 ---------------------------------- Remove custom zone ------------------------------------------------------ 0.70s /tmp/tmp7ot7w6_s/tests/tests_ansible.yml:14 ----------------------------------- Reset internal zone to defaults ----------------------------------------- 0.64s /tmp/tmp7ot7w6_s/tests/tests_ansible.yml:19 ----------------------------------- Permit traffic in default zone for https service ------------------------ 0.63s /tmp/tmp7ot7w6_s/tests/tests_ansible.yml:64 ----------------------------------- Reset trusted zone to defaults ------------------------------------------ 0.62s /tmp/tmp7ot7w6_s/tests/tests_ansible.yml:357 ---------------------------------- Reset public zone to defaults ------------------------------------------- 0.59s /tmp/tmp7ot7w6_s/tests/tests_ansible.yml:39 ----------------------------------- Reset drop zone to defaults --------------------------------------------- 0.59s /tmp/tmp7ot7w6_s/tests/tests_ansible.yml:367 ---------------------------------- Remove custom zone ------------------------------------------------------ 0.58s /tmp/tmp7ot7w6_s/tests/tests_ansible.yml:347 ---------------------------------- Reset dmz zone to defaults ---------------------------------------------- 0.57s /tmp/tmp7ot7w6_s/tests/tests_ansible.yml:362 ---------------------------------- Reset internal zone to defaults ----------------------------------------- 0.57s /tmp/tmp7ot7w6_s/tests/tests_ansible.yml:352 ---------------------------------- Reset public zone to defaults ------------------------------------------- 0.57s /tmp/tmp7ot7w6_s/tests/tests_ansible.yml:372 ---------------------------------- Create custom zone ------------------------------------------------------ 0.57s /tmp/tmp7ot7w6_s/tests/tests_ansible.yml:52 ----------------------------------- Reset drop zone to defaults --------------------------------------------- 0.56s /tmp/tmp7ot7w6_s/tests/tests_ansible.yml:34 ----------------------------------- Reset dmz zone to defaults ---------------------------------------------- 0.56s /tmp/tmp7ot7w6_s/tests/tests_ansible.yml:29 ----------------------------------- + cd /tmp/tmp7ot7w6_s/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-57-a369229-centos-7-dwv2n9i9/artifacts ANSIBLE_COLLECTIONS_PATHS=/tmp/tmpnp25rsig:~/.ansible/collections:/usr/share/ansible/collections ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 --skip-tags=tests::cleanup,tests::nvme /tmp/tmp7ot7w6_s/_setup.yml /tmp/tmp7ot7w6_s/tests/tests_default.yml ansible-playbook [core 2.12.1rc1.post0] config file = None configured module search path = ['/home/runner/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/lib/python3.8/site-packages/ansible ansible collection location = /tmp/tmpnp25rsig:/home/runner/.ansible/collections:/usr/share/ansible/collections executable location = /usr/local/bin/ansible-playbook python version = 3.8.8 (default, Aug 25 2021, 16:13:02) [GCC 8.5.0 20210514 (Red Hat 8.5.0-3)] jinja version = 2.10.3 libyaml = True No config file found; using defaults Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'default', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. PLAYBOOK: _setup.yml *********************************************************** 1 plays in /tmp/tmp7ot7w6_s/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmp7ot7w6_s/_setup.yml:5 Thursday 02 December 2021 15:46:29 +0000 (0:00:00.011) 0:00:00.011 ***** 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/tmp7ot7w6_s/_setup.yml:6 Thursday 02 December 2021 15:46:29 +0000 (0:00:00.015) 0:00:00.027 ***** 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 Thursday 02 December 2021 15:46:29 +0000 (0:00:00.016) 0:00:00.043 ***** =============================================================================== fail -------------------------------------------------------------------- 0.02s /tmp/tmp7ot7w6_s/_setup.yml:6 ------------------------------------------------- debug ------------------------------------------------------------------- 0.02s /tmp/tmp7ot7w6_s/_setup.yml:5 ------------------------------------------------- [DEPRECATION WARNING]: "include" is deprecated, use include_tasks/import_tasks instead. This feature will be removed in version 2.16. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. statically imported: /tmp/tmp7ot7w6_s/tasks/firewalld.yml PLAYBOOK: tests_default.yml **************************************************** 1 plays in /tmp/tmp7ot7w6_s/tests/tests_default.yml PLAY [Ensure that the roles runs with default parameters] ********************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp7ot7w6_s/tests/tests_default.yml:1 Thursday 02 December 2021 15:46:29 +0000 (0:00:00.013) 0:00:00.057 ***** ok: [/cache/centos-7.qcow2c] META: ran handlers TASK [linux-system-roles.firewall : Install firewalld] ************************* task path: /tmp/tmp7ot7w6_s/tasks/firewalld.yml:2 Thursday 02 December 2021 15:46:30 +0000 (0:00:01.010) 0:00:01.068 ***** changed: [/cache/centos-7.qcow2c] => { "changed": true, "changes": { "installed": [ "firewalld" ] }, "rc": 0, "results": [ "Loaded plugins: fastestmirror\nLoading mirror speeds from cached hostfile\n * base: mirrors.seas.harvard.edu\n * extras: mirror.cs.vt.edu\n * updates: mirror.datto.com\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 3.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/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/tmp7ot7w6_s/tasks/firewalld.yml:7 Thursday 02 December 2021 15:46:39 +0000 (0:00:08.709) 0:00:09.777 ***** 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/tmp7ot7w6_s/tasks/firewalld.yml:13 Thursday 02 December 2021 15:46:39 +0000 (0:00:00.492) 0:00:10.270 ***** 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/tmp7ot7w6_s/tasks/firewalld.yml:19 Thursday 02 December 2021 15:46:39 +0000 (0:00:00.023) 0:00:10.293 ***** changed: [/cache/centos-7.qcow2c] => { "changed": true, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "dbus.service polkit.service system.slice 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": "ip6tables.service shutdown.target ebtables.service iptables.service ipset.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": "7162", "LimitRSS": "18446744073709551615", "LimitRTPRIO": "0", "LimitRTTIME": "18446744073709551615", "LimitSIGPENDING": "7162", "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/tmp7ot7w6_s/tasks/main.yml:3 Thursday 02 December 2021 15:46:40 +0000 (0:00:00.904) 0:00:11.198 ***** META: role_complete for /cache/centos-7.qcow2c 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 Thursday 02 December 2021 15:46:40 +0000 (0:00:00.025) 0:00:11.223 ***** =============================================================================== linux-system-roles.firewall : Install firewalld ------------------------- 8.71s /tmp/tmp7ot7w6_s/tasks/firewalld.yml:2 ---------------------------------------- Gathering Facts --------------------------------------------------------- 1.01s /tmp/tmp7ot7w6_s/tests/tests_default.yml:1 ------------------------------------ linux-system-roles.firewall : Enable and start firewalld service -------- 0.90s /tmp/tmp7ot7w6_s/tasks/firewalld.yml:19 --------------------------------------- linux-system-roles.firewall : Install python-firewall ------------------- 0.49s /tmp/tmp7ot7w6_s/tasks/firewalld.yml:7 ---------------------------------------- linux-system-roles.firewall : Configure firewall ------------------------ 0.03s /tmp/tmp7ot7w6_s/tasks/main.yml:3 --------------------------------------------- linux-system-roles.firewall : Install python3-firewall ------------------ 0.02s /tmp/tmp7ot7w6_s/tasks/firewalld.yml:13 --------------------------------------- fail -------------------------------------------------------------------- 0.02s /tmp/tmp7ot7w6_s/_setup.yml:6 ------------------------------------------------- debug ------------------------------------------------------------------- 0.02s /tmp/tmp7ot7w6_s/_setup.yml:5 ------------------------------------------------- + cd /tmp/tmp7ot7w6_s/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-57-a369229-centos-7-dwv2n9i9/artifacts ANSIBLE_COLLECTIONS_PATHS=/tmp/tmpnp25rsig:~/.ansible/collections:/usr/share/ansible/collections ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 --skip-tags=tests::cleanup,tests::nvme /tmp/tmp7ot7w6_s/_setup.yml /tmp/tmp7ot7w6_s/tests/tests_zone.yml ansible-playbook [core 2.12.1rc1.post0] config file = None configured module search path = ['/home/runner/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/lib/python3.8/site-packages/ansible ansible collection location = /tmp/tmpnp25rsig:/home/runner/.ansible/collections:/usr/share/ansible/collections executable location = /usr/local/bin/ansible-playbook python version = 3.8.8 (default, Aug 25 2021, 16:13:02) [GCC 8.5.0 20210514 (Red Hat 8.5.0-3)] jinja version = 2.10.3 libyaml = True No config file found; using defaults Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'default', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. PLAYBOOK: _setup.yml *********************************************************** 1 plays in /tmp/tmp7ot7w6_s/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmp7ot7w6_s/_setup.yml:5 Thursday 02 December 2021 15:46:55 +0000 (0:00:00.011) 0:00:00.011 ***** 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/tmp7ot7w6_s/_setup.yml:6 Thursday 02 December 2021 15:46:55 +0000 (0:00:00.015) 0:00:00.027 ***** 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 Thursday 02 December 2021 15:46:55 +0000 (0:00:00.016) 0:00:00.043 ***** =============================================================================== fail -------------------------------------------------------------------- 0.02s /tmp/tmp7ot7w6_s/_setup.yml:6 ------------------------------------------------- debug ------------------------------------------------------------------- 0.02s /tmp/tmp7ot7w6_s/_setup.yml:5 ------------------------------------------------- PLAYBOOK: tests_zone.yml ******************************************************* 1 plays in /tmp/tmp7ot7w6_s/tests/tests_zone.yml PLAY [Ensure that the roles runs with default parameters] ********************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp7ot7w6_s/tests/tests_zone.yml:1 Thursday 02 December 2021 15:46:55 +0000 (0:00:00.009) 0:00:00.052 ***** ok: [/cache/centos-7.qcow2c] META: ran handlers TASK [include_role : linux-system-roles.firewall] ****************************** task path: /tmp/tmp7ot7w6_s/tests/tests_zone.yml:6 Thursday 02 December 2021 15:46:56 +0000 (0:00:01.032) 0:00:01.085 ***** [DEPRECATION WARNING]: "include" is deprecated, use include_tasks/import_tasks instead. This feature will be removed in version 2.16. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. statically imported: /tmp/tmp7ot7w6_s/tasks/firewalld.yml TASK [linux-system-roles.firewall : Install firewalld] ************************* task path: /tmp/tmp7ot7w6_s/tasks/firewalld.yml:2 Thursday 02 December 2021 15:46:56 +0000 (0:00:00.025) 0:00:01.110 ***** changed: [/cache/centos-7.qcow2c] => { "changed": true, "changes": { "installed": [ "firewalld" ] }, "rc": 0, "results": [ "Loaded plugins: fastestmirror\nLoading mirror speeds from cached hostfile\n * base: mirrors.seas.harvard.edu\n * extras: mirror.cs.vt.edu\n * updates: mirror.datto.com\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 2.2 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/tmp7ot7w6_s/tasks/firewalld.yml:7 Thursday 02 December 2021 15:47:04 +0000 (0:00:07.730) 0:00:08.841 ***** 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/tmp7ot7w6_s/tasks/firewalld.yml:13 Thursday 02 December 2021 15:47:04 +0000 (0:00:00.501) 0:00:09.343 ***** 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/tmp7ot7w6_s/tasks/firewalld.yml:19 Thursday 02 December 2021 15:47:04 +0000 (0:00:00.024) 0:00:09.367 ***** changed: [/cache/centos-7.qcow2c] => { "changed": true, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "dbus.service polkit.service system.slice basic.target", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Before": "network-pre.target multi-user.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": "ebtables.service ipset.service ip6tables.service iptables.service shutdown.target", "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": "7162", "LimitRSS": "18446744073709551615", "LimitRTPRIO": "0", "LimitRTTIME": "18446744073709551615", "LimitSIGPENDING": "7162", "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/tmp7ot7w6_s/tasks/main.yml:3 Thursday 02 December 2021 15:47:05 +0000 (0:00:00.945) 0:00:10.312 ***** META: role_complete for /cache/centos-7.qcow2c TASK [Verify used firewalld zones] ********************************************* task path: /tmp/tmp7ot7w6_s/tests/tests_zone.yml:14 Thursday 02 December 2021 15:47:05 +0000 (0:00:00.022) 0:00:10.335 ***** statically imported: /tmp/tmp7ot7w6_s/tasks/firewalld.yml TASK [linux-system-roles.firewall : Install firewalld] ************************* task path: /tmp/tmp7ot7w6_s/tasks/firewalld.yml:2 Thursday 02 December 2021 15:47:05 +0000 (0:00:00.045) 0:00:10.380 ***** 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/tmp7ot7w6_s/tasks/firewalld.yml:7 Thursday 02 December 2021 15:47:06 +0000 (0:00:00.568) 0:00:10.948 ***** 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/tmp7ot7w6_s/tasks/firewalld.yml:13 Thursday 02 December 2021 15:47:07 +0000 (0:00:00.548) 0:00:11.497 ***** 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/tmp7ot7w6_s/tasks/firewalld.yml:19 Thursday 02 December 2021 15:47:07 +0000 (0:00:00.035) 0:00:11.533 ***** ok: [/cache/centos-7.qcow2c] => { "changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestamp": "Thu 2021-12-02 15:47:05 UTC", "ActiveEnterTimestampMonotonic": "21585151", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "dbus.service polkit.service system.slice basic.target", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Thu 2021-12-02 15:47:04 UTC", "AssertTimestampMonotonic": "21374091", "Before": "network-pre.target multi-user.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": "yes", "ConditionTimestamp": "Thu 2021-12-02 15:47:04 UTC", "ConditionTimestampMonotonic": "21374090", "Conflicts": "ebtables.service ipset.service ip6tables.service iptables.service shutdown.target", "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": "7894", "ExecMainStartTimestamp": "Thu 2021-12-02 15:47:04 UTC", "ExecMainStartTimestampMonotonic": "21375478", "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=[Thu 2021-12-02 15:47:04 UTC] ; stop_time=[n/a] ; pid=7894 ; 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": "Thu 2021-12-02 15:47:04 UTC", "InactiveExitTimestampMonotonic": "21375510", "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": "7162", "LimitRSS": "18446744073709551615", "LimitRTPRIO": "0", "LimitRTTIME": "18446744073709551615", "LimitSIGPENDING": "7162", "LimitSTACK": "18446744073709551615", "LoadState": "loaded", "MainPID": "7894", "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": "Thu 2021-12-02 15:47:05 UTC", "WatchdogTimestampMonotonic": "21585082", "WatchdogUSec": "0" } } TASK [linux-system-roles.firewall : Configure firewall] ************************ task path: /tmp/tmp7ot7w6_s/tasks/main.yml:3 Thursday 02 December 2021 15:47:07 +0000 (0:00:00.422) 0:00:11.956 ***** ok: [/cache/centos-7.qcow2c] => (item={'zone': 'internal', 'state': 'enabled'}) => { "ansible_loop_var": "item", "changed": false, "item": { "state": "enabled", "zone": "internal" } } ok: [/cache/centos-7.qcow2c] => (item={'zone': 'external', 'state': 'enabled'}) => { "ansible_loop_var": "item", "changed": false, "item": { "state": "enabled", "zone": "external" } } ok: [/cache/centos-7.qcow2c] => (item={'zone': 'trusted', 'state': 'enabled'}) => { "ansible_loop_var": "item", "changed": false, "item": { "state": "enabled", "zone": "trusted" } } META: role_complete for /cache/centos-7.qcow2c TASK [Fail on missing zones] *************************************************** task path: /tmp/tmp7ot7w6_s/tests/tests_zone.yml:26 Thursday 02 December 2021 15:47:09 +0000 (0:00:01.732) 0:00:13.688 ***** skipping: [/cache/centos-7.qcow2c] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Setup firewalld] ********************************************************* task path: /tmp/tmp7ot7w6_s/tests/tests_zone.yml:32 Thursday 02 December 2021 15:47:09 +0000 (0:00:00.033) 0:00:13.721 ***** statically imported: /tmp/tmp7ot7w6_s/tasks/firewalld.yml TASK [linux-system-roles.firewall : Install firewalld] ************************* task path: /tmp/tmp7ot7w6_s/tasks/firewalld.yml:2 Thursday 02 December 2021 15:47:09 +0000 (0:00:00.049) 0:00:13.771 ***** 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/tmp7ot7w6_s/tasks/firewalld.yml:7 Thursday 02 December 2021 15:47:09 +0000 (0:00:00.517) 0:00:14.288 ***** 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/tmp7ot7w6_s/tasks/firewalld.yml:13 Thursday 02 December 2021 15:47:10 +0000 (0:00:00.522) 0:00:14.811 ***** 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/tmp7ot7w6_s/tasks/firewalld.yml:19 Thursday 02 December 2021 15:47:10 +0000 (0:00:00.035) 0:00:14.846 ***** ok: [/cache/centos-7.qcow2c] => { "changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestamp": "Thu 2021-12-02 15:47:05 UTC", "ActiveEnterTimestampMonotonic": "21585151", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "dbus.service polkit.service system.slice basic.target", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Thu 2021-12-02 15:47:04 UTC", "AssertTimestampMonotonic": "21374091", "Before": "network-pre.target multi-user.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": "yes", "ConditionTimestamp": "Thu 2021-12-02 15:47:04 UTC", "ConditionTimestampMonotonic": "21374090", "Conflicts": "ebtables.service ipset.service ip6tables.service iptables.service shutdown.target", "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": "7894", "ExecMainStartTimestamp": "Thu 2021-12-02 15:47:04 UTC", "ExecMainStartTimestampMonotonic": "21375478", "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=[Thu 2021-12-02 15:47:04 UTC] ; stop_time=[n/a] ; pid=7894 ; 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": "Thu 2021-12-02 15:47:04 UTC", "InactiveExitTimestampMonotonic": "21375510", "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": "7162", "LimitRSS": "18446744073709551615", "LimitRTPRIO": "0", "LimitRTTIME": "18446744073709551615", "LimitSIGPENDING": "7162", "LimitSTACK": "18446744073709551615", "LoadState": "loaded", "MainPID": "7894", "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": "Thu 2021-12-02 15:47:05 UTC", "WatchdogTimestampMonotonic": "21585082", "WatchdogUSec": "0" } } TASK [linux-system-roles.firewall : Configure firewall] ************************ task path: /tmp/tmp7ot7w6_s/tasks/main.yml:3 Thursday 02 December 2021 15:47:10 +0000 (0:00:00.403) 0:00:15.249 ***** changed: [/cache/centos-7.qcow2c] => (item={'zone': 'internal', 'service': ['tftp', 'ftp'], 'port': ['443/tcp', '443/udp'], 'forward_port': ['447/tcp;;1.2.3.4', '448/tcp;;1.2.3.5'], 'state': 'enabled'}) => { "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" } } META: role_complete for /cache/centos-7.qcow2c TASK [Fail if no changes are done] ********************************************* task path: /tmp/tmp7ot7w6_s/tests/tests_zone.yml:45 Thursday 02 December 2021 15:47:11 +0000 (0:00:00.562) 0:00:15.812 ***** skipping: [/cache/centos-7.qcow2c] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Setup firewalld again] *************************************************** task path: /tmp/tmp7ot7w6_s/tests/tests_zone.yml:51 Thursday 02 December 2021 15:47:11 +0000 (0:00:00.033) 0:00:15.845 ***** TASK [linux-system-roles.firewall : Install firewalld] ************************* task path: /tmp/tmp7ot7w6_s/tasks/firewalld.yml:2 Thursday 02 December 2021 15:47:11 +0000 (0:00:00.047) 0:00:15.893 ***** 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/tmp7ot7w6_s/tasks/firewalld.yml:7 Thursday 02 December 2021 15:47:11 +0000 (0:00:00.527) 0:00:16.420 ***** 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/tmp7ot7w6_s/tasks/firewalld.yml:13 Thursday 02 December 2021 15:47:12 +0000 (0:00:00.521) 0:00:16.941 ***** 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/tmp7ot7w6_s/tasks/firewalld.yml:19 Thursday 02 December 2021 15:47:12 +0000 (0:00:00.036) 0:00:16.978 ***** ok: [/cache/centos-7.qcow2c] => { "changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestamp": "Thu 2021-12-02 15:47:05 UTC", "ActiveEnterTimestampMonotonic": "21585151", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "dbus.service polkit.service system.slice basic.target", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Thu 2021-12-02 15:47:04 UTC", "AssertTimestampMonotonic": "21374091", "Before": "network-pre.target multi-user.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": "yes", "ConditionTimestamp": "Thu 2021-12-02 15:47:04 UTC", "ConditionTimestampMonotonic": "21374090", "Conflicts": "ebtables.service ipset.service ip6tables.service iptables.service shutdown.target", "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": "7894", "ExecMainStartTimestamp": "Thu 2021-12-02 15:47:04 UTC", "ExecMainStartTimestampMonotonic": "21375478", "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=[Thu 2021-12-02 15:47:04 UTC] ; stop_time=[n/a] ; pid=7894 ; 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": "Thu 2021-12-02 15:47:04 UTC", "InactiveExitTimestampMonotonic": "21375510", "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": "7162", "LimitRSS": "18446744073709551615", "LimitRTPRIO": "0", "LimitRTTIME": "18446744073709551615", "LimitSIGPENDING": "7162", "LimitSTACK": "18446744073709551615", "LoadState": "loaded", "MainPID": "7894", "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": "Thu 2021-12-02 15:47:05 UTC", "WatchdogTimestampMonotonic": "21585082", "WatchdogUSec": "0" } } TASK [linux-system-roles.firewall : Configure firewall] ************************ task path: /tmp/tmp7ot7w6_s/tasks/main.yml:3 Thursday 02 December 2021 15:47:12 +0000 (0:00:00.412) 0:00:17.390 ***** ok: [/cache/centos-7.qcow2c] => (item={'zone': 'internal', 'service': ['tftp', 'ftp'], 'port': ['443/tcp', '443/udp'], 'forward_port': ['447/tcp;;1.2.3.4', '448/tcp;;1.2.3.5'], 'state': 'enabled'}) => { "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" } } META: role_complete for /cache/centos-7.qcow2c TASK [Fail on newly changes] *************************************************** task path: /tmp/tmp7ot7w6_s/tests/tests_zone.yml:64 Thursday 02 December 2021 15:47:13 +0000 (0:00:00.561) 0:00:17.952 ***** skipping: [/cache/centos-7.qcow2c] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify firewalld zone internal services] ********************************* task path: /tmp/tmp7ot7w6_s/tests/tests_zone.yml:70 Thursday 02 December 2021 15:47:13 +0000 (0:00:00.033) 0:00:17.985 ***** changed: [/cache/centos-7.qcow2c] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--zone=internal", "--list-services" ], "delta": "0:00:00.278148", "end": "2021-12-02 15:47:13.503247", "failed_when_result": false, "rc": 0, "start": "2021-12-02 15:47:13.225099" } STDOUT: dhcpv6-client ftp mdns samba-client ssh tftp TASK [Verify firewalld zone internal ports] ************************************ task path: /tmp/tmp7ot7w6_s/tests/tests_zone.yml:77 Thursday 02 December 2021 15:47:14 +0000 (0:00:00.745) 0:00:18.731 ***** changed: [/cache/centos-7.qcow2c] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--zone=internal", "--list-ports" ], "delta": "0:00:00.261466", "end": "2021-12-02 15:47:14.085871", "failed_when_result": false, "rc": 0, "start": "2021-12-02 15:47:13.824405" } STDOUT: 443/tcp 443/udp TASK [Verify firewalld zone internal forward ports] **************************** task path: /tmp/tmp7ot7w6_s/tests/tests_zone.yml:84 Thursday 02 December 2021 15:47:14 +0000 (0:00:00.584) 0:00:19.316 ***** changed: [/cache/centos-7.qcow2c] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--zone=internal", "--list-forward-ports" ], "delta": "0:00:00.264486", "end": "2021-12-02 15:47:14.685340", "failed_when_result": false, "rc": 0, "start": "2021-12-02 15:47:14.420854" } STDOUT: port=447:proto=tcp:toport=:toaddr=1.2.3.4 port=448:proto=tcp:toport=:toaddr=1.2.3.5 TASK [Reset to zone defaults] ************************************************** task path: /tmp/tmp7ot7w6_s/tests/tests_zone.yml:97 Thursday 02 December 2021 15:47:15 +0000 (0:00:00.600) 0:00:19.916 ***** 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.310503", "end": "2021-12-02 15:47:16.332341", "rc": 0, "start": "2021-12-02 15:47:15.021838" } STDOUT: success success success success META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-7.qcow2c : ok=21 changed=7 unreachable=0 failed=0 skipped=9 rescued=0 ignored=0 Thursday 02 December 2021 15:47:17 +0000 (0:00:01.649) 0:00:21.566 ***** =============================================================================== linux-system-roles.firewall : Install firewalld ------------------------- 7.73s /tmp/tmp7ot7w6_s/tasks/firewalld.yml:2 ---------------------------------------- linux-system-roles.firewall : Configure firewall ------------------------ 1.73s /tmp/tmp7ot7w6_s/tasks/main.yml:3 --------------------------------------------- Reset to zone defaults -------------------------------------------------- 1.65s /tmp/tmp7ot7w6_s/tests/tests_zone.yml:97 -------------------------------------- Gathering Facts --------------------------------------------------------- 1.03s /tmp/tmp7ot7w6_s/tests/tests_zone.yml:1 --------------------------------------- linux-system-roles.firewall : Enable and start firewalld service -------- 0.95s /tmp/tmp7ot7w6_s/tasks/firewalld.yml:19 --------------------------------------- Verify firewalld zone internal services --------------------------------- 0.75s /tmp/tmp7ot7w6_s/tests/tests_zone.yml:70 -------------------------------------- Verify firewalld zone internal forward ports ---------------------------- 0.60s /tmp/tmp7ot7w6_s/tests/tests_zone.yml:84 -------------------------------------- Verify firewalld zone internal ports ------------------------------------ 0.58s /tmp/tmp7ot7w6_s/tests/tests_zone.yml:77 -------------------------------------- linux-system-roles.firewall : Install firewalld ------------------------- 0.57s /tmp/tmp7ot7w6_s/tasks/firewalld.yml:2 ---------------------------------------- linux-system-roles.firewall : Configure firewall ------------------------ 0.56s /tmp/tmp7ot7w6_s/tasks/main.yml:3 --------------------------------------------- linux-system-roles.firewall : Install python-firewall ------------------- 0.55s /tmp/tmp7ot7w6_s/tasks/firewalld.yml:7 ---------------------------------------- linux-system-roles.firewall : Install firewalld ------------------------- 0.53s /tmp/tmp7ot7w6_s/tasks/firewalld.yml:2 ---------------------------------------- linux-system-roles.firewall : Install python-firewall ------------------- 0.52s /tmp/tmp7ot7w6_s/tasks/firewalld.yml:7 ---------------------------------------- linux-system-roles.firewall : Install python-firewall ------------------- 0.50s /tmp/tmp7ot7w6_s/tasks/firewalld.yml:7 ---------------------------------------- linux-system-roles.firewall : Enable and start firewalld service -------- 0.42s /tmp/tmp7ot7w6_s/tasks/firewalld.yml:19 --------------------------------------- linux-system-roles.firewall : Enable and start firewalld service -------- 0.41s /tmp/tmp7ot7w6_s/tasks/firewalld.yml:19 --------------------------------------- Setup firewalld --------------------------------------------------------- 0.05s /tmp/tmp7ot7w6_s/tests/tests_zone.yml:32 -------------------------------------- Setup firewalld again --------------------------------------------------- 0.05s /tmp/tmp7ot7w6_s/tests/tests_zone.yml:51 -------------------------------------- Verify used firewalld zones --------------------------------------------- 0.05s /tmp/tmp7ot7w6_s/tests/tests_zone.yml:14 -------------------------------------- linux-system-roles.firewall : Install python3-firewall ------------------ 0.04s /tmp/tmp7ot7w6_s/tasks/firewalld.yml:13 --------------------------------------- + cd /tmp/tmpd6ah3ehk/tests/firewall; TEST_SSHD_USEDNS_NO=True TEST_SUBJECTS=/cache/centos-7.qcow2c TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_firewall-57-a369229-centos-7-dwv2n9i9/artifacts ANSIBLE_COLLECTIONS_PATHS=/tmp/tmpnp25rsig:~/.ansible/collections:/usr/share/ansible/collections ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 --skip-tags=tests::cleanup,tests::nvme /tmp/tmp7ot7w6_s/_setup.yml /tmp/tmpd6ah3ehk/tests/firewall/tests_ansible.yml ansible-playbook [core 2.12.1rc1.post0] config file = None configured module search path = ['/home/runner/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/lib/python3.8/site-packages/ansible ansible collection location = /tmp/tmpnp25rsig:/home/runner/.ansible/collections:/usr/share/ansible/collections executable location = /usr/local/bin/ansible-playbook python version = 3.8.8 (default, Aug 25 2021, 16:13:02) [GCC 8.5.0 20210514 (Red Hat 8.5.0-3)] jinja version = 2.10.3 libyaml = True No config file found; using defaults Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'default', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. PLAYBOOK: _setup.yml *********************************************************** 1 plays in /tmp/tmp7ot7w6_s/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmp7ot7w6_s/_setup.yml:5 Thursday 02 December 2021 15:47:31 +0000 (0:00:00.011) 0:00:00.011 ***** 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/tmp7ot7w6_s/_setup.yml:6 Thursday 02 December 2021 15:47:31 +0000 (0:00:00.016) 0:00:00.028 ***** 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 Thursday 02 December 2021 15:47:31 +0000 (0:00:00.022) 0:00:00.050 ***** =============================================================================== fail -------------------------------------------------------------------- 0.02s /tmp/tmp7ot7w6_s/_setup.yml:6 ------------------------------------------------- debug ------------------------------------------------------------------- 0.02s /tmp/tmp7ot7w6_s/_setup.yml:5 ------------------------------------------------- [DEPRECATION WARNING]: "include" is deprecated, use include_tasks/import_tasks instead. This feature will be removed in version 2.16. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. statically imported: /tmp/tmpnp25rsig/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml PLAYBOOK: tests_ansible.yml **************************************************** 1 plays in /tmp/tmpd6ah3ehk/tests/firewall/tests_ansible.yml PLAY [Ensure that the roles runs with default parameters] ********************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpd6ah3ehk/tests/firewall/tests_ansible.yml:1 Thursday 02 December 2021 15:47:31 +0000 (0:00:00.058) 0:00:00.108 ***** ok: [/cache/centos-7.qcow2c] META: ran handlers TASK [fedora.linux_system_roles.firewall : Install firewalld] ****************** task path: /tmp/tmpnp25rsig/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:2 Thursday 02 December 2021 15:47:32 +0000 (0:00:01.008) 0:00:01.117 ***** changed: [/cache/centos-7.qcow2c] => { "changed": true, "changes": { "installed": [ "firewalld" ] }, "rc": 0, "results": [ "Loaded plugins: fastestmirror\nLoading mirror speeds from cached hostfile\n * base: mirrors.seas.harvard.edu\n * extras: mirror.cs.vt.edu\n * updates: mirror.datto.com\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.9 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 [fedora.linux_system_roles.firewall : Install python-firewall] ************ task path: /tmp/tmpnp25rsig/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:7 Thursday 02 December 2021 15:47:44 +0000 (0:00:11.220) 0:00:12.337 ***** 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 [fedora.linux_system_roles.firewall : Install python3-firewall] *********** task path: /tmp/tmpnp25rsig/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:13 Thursday 02 December 2021 15:47:44 +0000 (0:00:00.501) 0:00:12.838 ***** skipping: [/cache/centos-7.qcow2c] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Enable and start firewalld service] *** task path: /tmp/tmpnp25rsig/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:19 Thursday 02 December 2021 15:47:44 +0000 (0:00:00.021) 0:00:12.860 ***** 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 basic.target dbus.service", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Before": "network-pre.target multi-user.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": "iptables.service ipset.service ip6tables.service shutdown.target 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": "7162", "LimitRSS": "18446744073709551615", "LimitRTPRIO": "0", "LimitRTTIME": "18446744073709551615", "LimitSIGPENDING": "7162", "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 [fedora.linux_system_roles.firewall : Configure firewall] ***************** task path: /tmp/tmpnp25rsig/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:3 Thursday 02 December 2021 15:47:45 +0000 (0:00:00.891) 0:00:13.752 ***** META: role_complete for /cache/centos-7.qcow2c TASK [Remove custom zone] ****************************************************** task path: /tmp/tmpd6ah3ehk/tests/firewall/tests_ansible.yml:14 Thursday 02 December 2021 15:47:45 +0000 (0:00:00.022) 0:00:13.774 ***** changed: [/cache/centos-7.qcow2c] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--delete-zone=custom" ], "delta": "0:00:00.266180", "end": "2021-12-02 15:47:44.975194", "failed_when_result": false, "rc": 112, "start": "2021-12-02 15:47:44.709014" } STDERR: Error: INVALID_ZONE: custom MSG: non-zero return code TASK [Reset internal zone to defaults] ***************************************** task path: /tmp/tmpd6ah3ehk/tests/firewall/tests_ansible.yml:19 Thursday 02 December 2021 15:47:46 +0000 (0:00:00.715) 0:00:14.489 ***** changed: [/cache/centos-7.qcow2c] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=internal" ], "delta": "0:00:00.273496", "end": "2021-12-02 15:47:45.587387", "failed_when_result": false, "rc": 22, "start": "2021-12-02 15:47:45.313891" } STDERR: Error: NO_DEFAULTS: internal MSG: non-zero return code TASK [Reset trusted zone to defaults] ****************************************** task path: /tmp/tmpd6ah3ehk/tests/firewall/tests_ansible.yml:24 Thursday 02 December 2021 15:47:46 +0000 (0:00:00.612) 0:00:15.102 ***** changed: [/cache/centos-7.qcow2c] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=trusted" ], "delta": "0:00:00.257715", "end": "2021-12-02 15:47:46.156964", "failed_when_result": false, "rc": 22, "start": "2021-12-02 15:47:45.899249" } STDERR: Error: NO_DEFAULTS: trusted MSG: non-zero return code TASK [Reset dmz zone to defaults] ********************************************** task path: /tmp/tmpd6ah3ehk/tests/firewall/tests_ansible.yml:29 Thursday 02 December 2021 15:47:47 +0000 (0:00:00.569) 0:00:15.672 ***** changed: [/cache/centos-7.qcow2c] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=dmz" ], "delta": "0:00:00.254830", "end": "2021-12-02 15:47:46.709124", "failed_when_result": false, "rc": 22, "start": "2021-12-02 15:47:46.454294" } STDERR: Error: NO_DEFAULTS: dmz MSG: non-zero return code TASK [Reset drop zone to defaults] ********************************************* task path: /tmp/tmpd6ah3ehk/tests/firewall/tests_ansible.yml:34 Thursday 02 December 2021 15:47:48 +0000 (0:00:00.553) 0:00:16.225 ***** changed: [/cache/centos-7.qcow2c] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=drop" ], "delta": "0:00:00.261402", "end": "2021-12-02 15:47:47.277985", "failed_when_result": false, "rc": 22, "start": "2021-12-02 15:47:47.016583" } STDERR: Error: NO_DEFAULTS: drop MSG: non-zero return code TASK [Reset public zone to defaults] ******************************************* task path: /tmp/tmpd6ah3ehk/tests/firewall/tests_ansible.yml:39 Thursday 02 December 2021 15:47:48 +0000 (0:00:00.566) 0:00:16.792 ***** changed: [/cache/centos-7.qcow2c] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=public" ], "delta": "0:00:00.274716", "end": "2021-12-02 15:47:47.861185", "failed_when_result": false, "rc": 0, "start": "2021-12-02 15:47:47.586469" } STDOUT: success TASK [Reset default zone to defaults] ****************************************** task path: /tmp/tmpd6ah3ehk/tests/firewall/tests_ansible.yml:44 Thursday 02 December 2021 15:47:49 +0000 (0:00:00.584) 0:00:17.376 ***** 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.512253", "end": "2021-12-02 15:47:48.677559", "failed_when_result": false, "rc": 22, "start": "2021-12-02 15:47:48.165306" } STDERR: Error: NO_DEFAULTS: public MSG: non-zero return code TASK [Create custom zone] ****************************************************** task path: /tmp/tmpd6ah3ehk/tests/firewall/tests_ansible.yml:52 Thursday 02 December 2021 15:47:50 +0000 (0:00:00.815) 0:00:18.191 ***** changed: [/cache/centos-7.qcow2c] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--new-zone=custom" ], "delta": "0:00:00.256179", "end": "2021-12-02 15:47:49.251560", "failed_when_result": false, "rc": 0, "start": "2021-12-02 15:47:48.995381" } STDOUT: success TASK [Reload firewalld] ******************************************************** task path: /tmp/tmpd6ah3ehk/tests/firewall/tests_ansible.yml:57 Thursday 02 December 2021 15:47:50 +0000 (0:00:00.575) 0:00:18.766 ***** changed: [/cache/centos-7.qcow2c] => { "changed": true, "cmd": [ "firewall-cmd", "--reload" ], "delta": "0:00:00.448811", "end": "2021-12-02 15:47:50.002655", "failed_when_result": false, "rc": 0, "start": "2021-12-02 15:47:49.553844" } STDOUT: success TASK [Permit traffic in default zone for https service] ************************ task path: /tmp/tmpd6ah3ehk/tests/firewall/tests_ansible.yml:64 Thursday 02 December 2021 15:47:51 +0000 (0:00:00.749) 0:00:19.516 ***** changed: [/cache/centos-7.qcow2c] => { "changed": true, "failed_when_result": false } TASK [Permit traffic in default zone for https service, again] ***************** task path: /tmp/tmpd6ah3ehk/tests/firewall/tests_ansible.yml:72 Thursday 02 December 2021 15:47:52 +0000 (0:00:00.626) 0:00:20.143 ***** ok: [/cache/centos-7.qcow2c] => { "changed": false, "failed_when_result": false } TASK [Permit traffic in default zone on port 8081/tcp] ************************* task path: /tmp/tmpd6ah3ehk/tests/firewall/tests_ansible.yml:80 Thursday 02 December 2021 15:47:52 +0000 (0:00:00.488) 0:00:20.631 ***** 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/tmpd6ah3ehk/tests/firewall/tests_ansible.yml:88 Thursday 02 December 2021 15:47:52 +0000 (0:00:00.484) 0:00:21.116 ***** ok: [/cache/centos-7.qcow2c] => { "changed": false, "failed_when_result": false } TASK [Allow port 161-162/udp in permanent default zone] ************************ task path: /tmp/tmpd6ah3ehk/tests/firewall/tests_ansible.yml:96 Thursday 02 December 2021 15:47:53 +0000 (0:00:00.506) 0:00:21.622 ***** 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/tmpd6ah3ehk/tests/firewall/tests_ansible.yml:104 Thursday 02 December 2021 15:47:53 +0000 (0:00:00.492) 0:00:22.115 ***** 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/tmpd6ah3ehk/tests/firewall/tests_ansible.yml:112 Thursday 02 December 2021 15:47:54 +0000 (0:00:00.499) 0:00:22.615 ***** 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/tmpd6ah3ehk/tests/firewall/tests_ansible.yml:120 Thursday 02 December 2021 15:47:55 +0000 (0:00:00.531) 0:00:23.147 ***** ok: [/cache/centos-7.qcow2c] => { "changed": false, "failed_when_result": false } TASK [Allow service http in permanent dmz zone] ******************************** task path: /tmp/tmpd6ah3ehk/tests/firewall/tests_ansible.yml:128 Thursday 02 December 2021 15:47:55 +0000 (0:00:00.507) 0:00:23.654 ***** changed: [/cache/centos-7.qcow2c] => { "changed": true, "failed_when_result": false } TASK [Allow service http in permanent dmz zone, again] ************************* task path: /tmp/tmpd6ah3ehk/tests/firewall/tests_ansible.yml:137 Thursday 02 December 2021 15:47:56 +0000 (0:00:00.496) 0:00:24.150 ***** 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/tmpd6ah3ehk/tests/firewall/tests_ansible.yml:146 Thursday 02 December 2021 15:47:56 +0000 (0:00:00.500) 0:00:24.651 ***** 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/tmpd6ah3ehk/tests/firewall/tests_ansible.yml:154 Thursday 02 December 2021 15:47:57 +0000 (0:00:00.504) 0:00:25.155 ***** 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/tmpd6ah3ehk/tests/firewall/tests_ansible.yml:162 Thursday 02 December 2021 15:47:57 +0000 (0:00:00.512) 0:00:25.668 ***** 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/tmpd6ah3ehk/tests/firewall/tests_ansible.yml:171 Thursday 02 December 2021 15:47:58 +0000 (0:00:00.483) 0:00:26.151 ***** ok: [/cache/centos-7.qcow2c] => { "changed": false, "failed_when_result": false } TASK [Allow interface eth2 in permanent trusted zone] ************************** task path: /tmp/tmpd6ah3ehk/tests/firewall/tests_ansible.yml:180 Thursday 02 December 2021 15:47:58 +0000 (0:00:00.476) 0:00:26.628 ***** changed: [/cache/centos-7.qcow2c] => { "changed": true, "failed_when_result": false } TASK [Allow interface eth2 in permanent trusted zone, again] ******************* task path: /tmp/tmpd6ah3ehk/tests/firewall/tests_ansible.yml:189 Thursday 02 December 2021 15:47:58 +0000 (0:00:00.478) 0:00:27.107 ***** ok: [/cache/centos-7.qcow2c] => { "changed": false, "failed_when_result": false } TASK [Allow masquerading in permament dmz zone] ******************************** task path: /tmp/tmpd6ah3ehk/tests/firewall/tests_ansible.yml:198 Thursday 02 December 2021 15:47:59 +0000 (0:00:00.490) 0:00:27.597 ***** changed: [/cache/centos-7.qcow2c] => { "changed": true, "failed_when_result": false } TASK [Allow masquerading in permament dmz zone, again] ************************* task path: /tmp/tmpd6ah3ehk/tests/firewall/tests_ansible.yml:207 Thursday 02 December 2021 15:47:59 +0000 (0:00:00.473) 0:00:28.071 ***** ok: [/cache/centos-7.qcow2c] => { "changed": false, "failed_when_result": false } TASK [Ensure permanent custom zone exists (no change)] ************************* task path: /tmp/tmpd6ah3ehk/tests/firewall/tests_ansible.yml:216 Thursday 02 December 2021 15:48:00 +0000 (0:00:00.476) 0:00:28.548 ***** ok: [/cache/centos-7.qcow2c] => { "changed": false, "failed_when_result": false } TASK [Ensure ICMP block inversion in permanent drop zone] ********************** task path: /tmp/tmpd6ah3ehk/tests/firewall/tests_ansible.yml:224 Thursday 02 December 2021 15:48:00 +0000 (0:00:00.494) 0:00:29.042 ***** changed: [/cache/centos-7.qcow2c] => { "changed": true, "failed_when_result": false } TASK [Ensure ICMP block inversion in permanent drop zone, again] *************** task path: /tmp/tmpd6ah3ehk/tests/firewall/tests_ansible.yml:233 Thursday 02 December 2021 15:48:01 +0000 (0:00:00.504) 0:00:29.546 ***** ok: [/cache/centos-7.qcow2c] => { "changed": false, "failed_when_result": false } TASK [Block ICMP echo-request in permanent drop zone] ************************** task path: /tmp/tmpd6ah3ehk/tests/firewall/tests_ansible.yml:242 Thursday 02 December 2021 15:48:01 +0000 (0:00:00.495) 0:00:30.042 ***** changed: [/cache/centos-7.qcow2c] => { "changed": true, "failed_when_result": false } TASK [Block ICMP echo-request in permanent drop zone, again] ******************* task path: /tmp/tmpd6ah3ehk/tests/firewall/tests_ansible.yml:251 Thursday 02 December 2021 15:48:02 +0000 (0:00:00.487) 0:00:30.530 ***** ok: [/cache/centos-7.qcow2c] => { "changed": false, "failed_when_result": false } TASK [Ensure default target in permanent internal zone (no change)] ************ task path: /tmp/tmpd6ah3ehk/tests/firewall/tests_ansible.yml:260 Thursday 02 December 2021 15:48:02 +0000 (0:00:00.486) 0:00:31.016 ***** ok: [/cache/centos-7.qcow2c] => { "changed": false, "failed_when_result": false } TASK [Ensure target ACCEPT in permanent internal zone] ************************* task path: /tmp/tmpd6ah3ehk/tests/firewall/tests_ansible.yml:269 Thursday 02 December 2021 15:48:03 +0000 (0:00:00.515) 0:00:31.532 ***** changed: [/cache/centos-7.qcow2c] => { "changed": true, "failed_when_result": false } TASK [Ensure target ACCEPT in permanent internal zone, again] ****************** task path: /tmp/tmpd6ah3ehk/tests/firewall/tests_ansible.yml:278 Thursday 02 December 2021 15:48:03 +0000 (0:00:00.494) 0:00:32.027 ***** ok: [/cache/centos-7.qcow2c] => { "changed": false, "failed_when_result": false } TASK [Ensure default target in permanent internal zone] ************************ task path: /tmp/tmpd6ah3ehk/tests/firewall/tests_ansible.yml:287 Thursday 02 December 2021 15:48:04 +0000 (0:00:00.485) 0:00:32.512 ***** changed: [/cache/centos-7.qcow2c] => { "changed": true, "failed_when_result": false } TASK [Ensure default target in permanent internal zone, again] ***************** task path: /tmp/tmpd6ah3ehk/tests/firewall/tests_ansible.yml:296 Thursday 02 December 2021 15:48:04 +0000 (0:00:00.489) 0:00:33.001 ***** 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/tmpd6ah3ehk/tests/firewall/tests_ansible.yml:305 Thursday 02 December 2021 15:48:05 +0000 (0:00:00.495) 0:00:33.497 ***** [DEPRECATION WARNING]: Alias 'immediate' is deprecated. See the module docs for more information. This feature will be removed from ansible.posix in a release after 2021-09-23. 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/tmpd6ah3ehk/tests/firewall/tests_ansible.yml:315 Thursday 02 December 2021 15:48:05 +0000 (0:00:00.503) 0:00:34.000 ***** ok: [/cache/centos-7.qcow2c] => { "changed": false, "failed_when_result": false } TASK [Firewalld custom zone] *************************************************** task path: /tmp/tmpd6ah3ehk/tests/firewall/tests_ansible.yml:325 Thursday 02 December 2021 15:48:06 +0000 (0:00:00.510) 0:00:34.510 ***** changed: [/cache/centos-7.qcow2c] => { "changed": true } TASK [assert firewalld custom zone] ******************************************** task path: /tmp/tmpd6ah3ehk/tests/firewall/tests_ansible.yml:332 Thursday 02 December 2021 15:48:06 +0000 (0:00:00.480) 0:00:34.990 ***** ok: [/cache/centos-7.qcow2c] => { "changed": false } MSG: All assertions passed TASK [Remove custom zone] ****************************************************** task path: /tmp/tmpd6ah3ehk/tests/firewall/tests_ansible.yml:341 Thursday 02 December 2021 15:48:06 +0000 (0:00:00.024) 0:00:35.015 ***** changed: [/cache/centos-7.qcow2c] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--delete-zone=custom" ], "delta": "0:00:00.272766", "end": "2021-12-02 15:48:06.089486", "failed_when_result": false, "rc": 0, "start": "2021-12-02 15:48:05.816720" } STDOUT: success TASK [Reset internal zone to defaults] ***************************************** task path: /tmp/tmpd6ah3ehk/tests/firewall/tests_ansible.yml:346 Thursday 02 December 2021 15:48:07 +0000 (0:00:00.591) 0:00:35.606 ***** changed: [/cache/centos-7.qcow2c] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=internal" ], "delta": "0:00:00.272899", "end": "2021-12-02 15:48:06.674275", "failed_when_result": false, "rc": 0, "start": "2021-12-02 15:48:06.401376" } STDOUT: success TASK [Reset trusted zone to defaults] ****************************************** task path: /tmp/tmpd6ah3ehk/tests/firewall/tests_ansible.yml:351 Thursday 02 December 2021 15:48:08 +0000 (0:00:00.584) 0:00:36.190 ***** changed: [/cache/centos-7.qcow2c] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=trusted" ], "delta": "0:00:00.275450", "end": "2021-12-02 15:48:07.266044", "failed_when_result": false, "rc": 0, "start": "2021-12-02 15:48:06.990594" } STDOUT: success TASK [Reset dmz zone to defaults] ********************************************** task path: /tmp/tmpd6ah3ehk/tests/firewall/tests_ansible.yml:356 Thursday 02 December 2021 15:48:08 +0000 (0:00:00.595) 0:00:36.786 ***** changed: [/cache/centos-7.qcow2c] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=dmz" ], "delta": "0:00:00.266423", "end": "2021-12-02 15:48:07.849841", "failed_when_result": false, "rc": 0, "start": "2021-12-02 15:48:07.583418" } STDOUT: success TASK [Reset drop zone to defaults] ********************************************* task path: /tmp/tmpd6ah3ehk/tests/firewall/tests_ansible.yml:361 Thursday 02 December 2021 15:48:09 +0000 (0:00:00.579) 0:00:37.366 ***** changed: [/cache/centos-7.qcow2c] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=drop" ], "delta": "0:00:00.277360", "end": "2021-12-02 15:48:08.434519", "failed_when_result": false, "rc": 0, "start": "2021-12-02 15:48:08.157159" } STDOUT: success TASK [Reset public zone to defaults] ******************************************* task path: /tmp/tmpd6ah3ehk/tests/firewall/tests_ansible.yml:366 Thursday 02 December 2021 15:48:09 +0000 (0:00:00.588) 0:00:37.954 ***** changed: [/cache/centos-7.qcow2c] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=public" ], "delta": "0:00:00.258188", "end": "2021-12-02 15:48:09.003970", "failed_when_result": false, "rc": 0, "start": "2021-12-02 15:48:08.745782" } STDOUT: success TASK [Reset default zone to defaults] ****************************************** task path: /tmp/tmpd6ah3ehk/tests/firewall/tests_ansible.yml:371 Thursday 02 December 2021 15:48:10 +0000 (0:00:00.566) 0:00:38.520 ***** 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.500364", "end": "2021-12-02 15:48:09.805753", "failed_when_result": false, "rc": 22, "start": "2021-12-02 15:48:09.305389" } STDERR: Error: NO_DEFAULTS: public MSG: non-zero return code TASK [Reload firewalld] ******************************************************** task path: /tmp/tmpd6ah3ehk/tests/firewall/tests_ansible.yml:379 Thursday 02 December 2021 15:48:11 +0000 (0:00:00.803) 0:00:39.324 ***** changed: [/cache/centos-7.qcow2c] => { "changed": true, "cmd": [ "firewall-cmd", "--reload" ], "delta": "0:00:00.454310", "end": "2021-12-02 15:48:10.568606", "failed_when_result": false, "rc": 0, "start": "2021-12-02 15:48:10.114296" } STDOUT: success META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-7.qcow2c : ok=54 changed=34 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 Thursday 02 December 2021 15:48:11 +0000 (0:00:00.763) 0:00:40.087 ***** =============================================================================== fedora.linux_system_roles.firewall : Install firewalld ----------------- 11.22s /tmp/tmpnp25rsig/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:2 Gathering Facts --------------------------------------------------------- 1.01s /tmp/tmpd6ah3ehk/tests/firewall/tests_ansible.yml:1 --------------------------- fedora.linux_system_roles.firewall : Enable and start firewalld service --- 0.89s /tmp/tmpnp25rsig/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:19 Reset default zone to defaults ------------------------------------------ 0.82s /tmp/tmpd6ah3ehk/tests/firewall/tests_ansible.yml:44 -------------------------- Reset default zone to defaults ------------------------------------------ 0.80s /tmp/tmpd6ah3ehk/tests/firewall/tests_ansible.yml:371 ------------------------- Reload firewalld -------------------------------------------------------- 0.76s /tmp/tmpd6ah3ehk/tests/firewall/tests_ansible.yml:379 ------------------------- Reload firewalld -------------------------------------------------------- 0.75s /tmp/tmpd6ah3ehk/tests/firewall/tests_ansible.yml:57 -------------------------- Remove custom zone ------------------------------------------------------ 0.72s /tmp/tmpd6ah3ehk/tests/firewall/tests_ansible.yml:14 -------------------------- Permit traffic in default zone for https service ------------------------ 0.63s /tmp/tmpd6ah3ehk/tests/firewall/tests_ansible.yml:64 -------------------------- Reset internal zone to defaults ----------------------------------------- 0.61s /tmp/tmpd6ah3ehk/tests/firewall/tests_ansible.yml:19 -------------------------- Reset trusted zone to defaults ------------------------------------------ 0.60s /tmp/tmpd6ah3ehk/tests/firewall/tests_ansible.yml:351 ------------------------- Remove custom zone ------------------------------------------------------ 0.59s /tmp/tmpd6ah3ehk/tests/firewall/tests_ansible.yml:341 ------------------------- Reset drop zone to defaults --------------------------------------------- 0.59s /tmp/tmpd6ah3ehk/tests/firewall/tests_ansible.yml:361 ------------------------- Reset internal zone to defaults ----------------------------------------- 0.58s /tmp/tmpd6ah3ehk/tests/firewall/tests_ansible.yml:346 ------------------------- Reset public zone to defaults ------------------------------------------- 0.58s /tmp/tmpd6ah3ehk/tests/firewall/tests_ansible.yml:39 -------------------------- Reset dmz zone to defaults ---------------------------------------------- 0.58s /tmp/tmpd6ah3ehk/tests/firewall/tests_ansible.yml:356 ------------------------- Create custom zone ------------------------------------------------------ 0.58s /tmp/tmpd6ah3ehk/tests/firewall/tests_ansible.yml:52 -------------------------- Reset trusted zone to defaults ------------------------------------------ 0.57s /tmp/tmpd6ah3ehk/tests/firewall/tests_ansible.yml:24 -------------------------- Reset drop zone to defaults --------------------------------------------- 0.57s /tmp/tmpd6ah3ehk/tests/firewall/tests_ansible.yml:34 -------------------------- Reset public zone to defaults ------------------------------------------- 0.57s /tmp/tmpd6ah3ehk/tests/firewall/tests_ansible.yml:366 ------------------------- + cd /tmp/tmpd6ah3ehk/tests/firewall; TEST_SSHD_USEDNS_NO=True TEST_SUBJECTS=/cache/centos-7.qcow2c TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_firewall-57-a369229-centos-7-dwv2n9i9/artifacts ANSIBLE_COLLECTIONS_PATHS=/tmp/tmpnp25rsig:~/.ansible/collections:/usr/share/ansible/collections ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 --skip-tags=tests::cleanup,tests::nvme /tmp/tmp7ot7w6_s/_setup.yml /tmp/tmpd6ah3ehk/tests/firewall/tests_default.yml ansible-playbook [core 2.12.1rc1.post0] config file = None configured module search path = ['/home/runner/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/lib/python3.8/site-packages/ansible ansible collection location = /tmp/tmpnp25rsig:/home/runner/.ansible/collections:/usr/share/ansible/collections executable location = /usr/local/bin/ansible-playbook python version = 3.8.8 (default, Aug 25 2021, 16:13:02) [GCC 8.5.0 20210514 (Red Hat 8.5.0-3)] jinja version = 2.10.3 libyaml = True No config file found; using defaults Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'default', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. PLAYBOOK: _setup.yml *********************************************************** 1 plays in /tmp/tmp7ot7w6_s/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmp7ot7w6_s/_setup.yml:5 Thursday 02 December 2021 15:48:26 +0000 (0:00:00.012) 0:00:00.012 ***** 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/tmp7ot7w6_s/_setup.yml:6 Thursday 02 December 2021 15:48:26 +0000 (0:00:00.018) 0:00:00.030 ***** 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 Thursday 02 December 2021 15:48:26 +0000 (0:00:00.018) 0:00:00.048 ***** =============================================================================== fail -------------------------------------------------------------------- 0.02s /tmp/tmp7ot7w6_s/_setup.yml:6 ------------------------------------------------- debug ------------------------------------------------------------------- 0.02s /tmp/tmp7ot7w6_s/_setup.yml:5 ------------------------------------------------- [DEPRECATION WARNING]: "include" is deprecated, use include_tasks/import_tasks instead. This feature will be removed in version 2.16. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. statically imported: /tmp/tmpnp25rsig/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml PLAYBOOK: tests_default.yml **************************************************** 1 plays in /tmp/tmpd6ah3ehk/tests/firewall/tests_default.yml PLAY [Ensure that the roles runs with default parameters] ********************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpd6ah3ehk/tests/firewall/tests_default.yml:1 Thursday 02 December 2021 15:48:26 +0000 (0:00:00.016) 0:00:00.065 ***** ok: [/cache/centos-7.qcow2c] META: ran handlers TASK [fedora.linux_system_roles.firewall : Install firewalld] ****************** task path: /tmp/tmpnp25rsig/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:2 Thursday 02 December 2021 15:48:27 +0000 (0:00:01.117) 0:00:01.182 ***** changed: [/cache/centos-7.qcow2c] => { "changed": true, "changes": { "installed": [ "firewalld" ] }, "rc": 0, "results": [ "Loaded plugins: fastestmirror\nLoading mirror speeds from cached hostfile\n * base: mirrors.seas.harvard.edu\n * extras: mirror.cs.vt.edu\n * updates: mirror.datto.com\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.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 [fedora.linux_system_roles.firewall : Install python-firewall] ************ task path: /tmp/tmpnp25rsig/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:7 Thursday 02 December 2021 15:48:37 +0000 (0:00:09.786) 0:00:10.969 ***** 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 [fedora.linux_system_roles.firewall : Install python3-firewall] *********** task path: /tmp/tmpnp25rsig/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:13 Thursday 02 December 2021 15:48:37 +0000 (0:00:00.518) 0:00:11.487 ***** skipping: [/cache/centos-7.qcow2c] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Enable and start firewalld service] *** task path: /tmp/tmpnp25rsig/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:19 Thursday 02 December 2021 15:48:37 +0000 (0:00:00.020) 0:00:11.508 ***** changed: [/cache/centos-7.qcow2c] => { "changed": true, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "polkit.service basic.target system.slice dbus.service", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Before": "shutdown.target network-pre.target multi-user.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": "ebtables.service iptables.service shutdown.target ip6tables.service ipset.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": "7162", "LimitRSS": "18446744073709551615", "LimitRTPRIO": "0", "LimitRTTIME": "18446744073709551615", "LimitSIGPENDING": "7162", "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 [fedora.linux_system_roles.firewall : Configure firewall] ***************** task path: /tmp/tmpnp25rsig/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:3 Thursday 02 December 2021 15:48:38 +0000 (0:00:00.947) 0:00:12.456 ***** META: role_complete for /cache/centos-7.qcow2c 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 Thursday 02 December 2021 15:48:38 +0000 (0:00:00.026) 0:00:12.482 ***** =============================================================================== fedora.linux_system_roles.firewall : Install firewalld ------------------ 9.79s /tmp/tmpnp25rsig/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:2 Gathering Facts --------------------------------------------------------- 1.12s /tmp/tmpd6ah3ehk/tests/firewall/tests_default.yml:1 --------------------------- fedora.linux_system_roles.firewall : Enable and start firewalld service --- 0.95s /tmp/tmpnp25rsig/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:19 fedora.linux_system_roles.firewall : Install python-firewall ------------ 0.52s /tmp/tmpnp25rsig/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:7 fedora.linux_system_roles.firewall : Configure firewall ----------------- 0.03s /tmp/tmpnp25rsig/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:3 fedora.linux_system_roles.firewall : Install python3-firewall ----------- 0.02s /tmp/tmpnp25rsig/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:13 fail -------------------------------------------------------------------- 0.02s /tmp/tmp7ot7w6_s/_setup.yml:6 ------------------------------------------------- debug ------------------------------------------------------------------- 0.02s /tmp/tmp7ot7w6_s/_setup.yml:5 ------------------------------------------------- + cd /tmp/tmpd6ah3ehk/tests/firewall; TEST_SSHD_USEDNS_NO=True TEST_SUBJECTS=/cache/centos-7.qcow2c TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_firewall-57-a369229-centos-7-dwv2n9i9/artifacts ANSIBLE_COLLECTIONS_PATHS=/tmp/tmpnp25rsig:~/.ansible/collections:/usr/share/ansible/collections ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 --skip-tags=tests::cleanup,tests::nvme /tmp/tmp7ot7w6_s/_setup.yml /tmp/tmpd6ah3ehk/tests/firewall/tests_zone.yml ansible-playbook [core 2.12.1rc1.post0] config file = None configured module search path = ['/home/runner/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/lib/python3.8/site-packages/ansible ansible collection location = /tmp/tmpnp25rsig:/home/runner/.ansible/collections:/usr/share/ansible/collections executable location = /usr/local/bin/ansible-playbook python version = 3.8.8 (default, Aug 25 2021, 16:13:02) [GCC 8.5.0 20210514 (Red Hat 8.5.0-3)] jinja version = 2.10.3 libyaml = True No config file found; using defaults Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'default', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. PLAYBOOK: _setup.yml *********************************************************** 1 plays in /tmp/tmp7ot7w6_s/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmp7ot7w6_s/_setup.yml:5 Thursday 02 December 2021 15:48:52 +0000 (0:00:00.011) 0:00:00.011 ***** 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/tmp7ot7w6_s/_setup.yml:6 Thursday 02 December 2021 15:48:52 +0000 (0:00:00.016) 0:00:00.028 ***** 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 Thursday 02 December 2021 15:48:52 +0000 (0:00:00.016) 0:00:00.044 ***** =============================================================================== fail -------------------------------------------------------------------- 0.02s /tmp/tmp7ot7w6_s/_setup.yml:6 ------------------------------------------------- debug ------------------------------------------------------------------- 0.02s /tmp/tmp7ot7w6_s/_setup.yml:5 ------------------------------------------------- PLAYBOOK: tests_zone.yml ******************************************************* 1 plays in /tmp/tmpd6ah3ehk/tests/firewall/tests_zone.yml PLAY [Ensure that the roles runs with default parameters] ********************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpd6ah3ehk/tests/firewall/tests_zone.yml:1 Thursday 02 December 2021 15:48:52 +0000 (0:00:00.009) 0:00:00.054 ***** ok: [/cache/centos-7.qcow2c] META: ran handlers TASK [include_role : fedora.linux_system_roles.firewall] *********************** task path: /tmp/tmpd6ah3ehk/tests/firewall/tests_zone.yml:6 Thursday 02 December 2021 15:48:53 +0000 (0:00:01.018) 0:00:01.072 ***** [DEPRECATION WARNING]: "include" is deprecated, use include_tasks/import_tasks instead. This feature will be removed in version 2.16. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. statically imported: /tmp/tmpnp25rsig/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml TASK [fedora.linux_system_roles.firewall : Install firewalld] ****************** task path: /tmp/tmpnp25rsig/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:2 Thursday 02 December 2021 15:48:53 +0000 (0:00:00.030) 0:00:01.103 ***** changed: [/cache/centos-7.qcow2c] => { "changed": true, "changes": { "installed": [ "firewalld" ] }, "rc": 0, "results": [ "Loaded plugins: fastestmirror\nLoading mirror speeds from cached hostfile\n * base: mirrors.seas.harvard.edu\n * extras: mirror.cs.vt.edu\n * updates: mirror.datto.com\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.3 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 [fedora.linux_system_roles.firewall : Install python-firewall] ************ task path: /tmp/tmpnp25rsig/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:7 Thursday 02 December 2021 15:49:00 +0000 (0:00:06.841) 0:00:07.944 ***** 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 [fedora.linux_system_roles.firewall : Install python3-firewall] *********** task path: /tmp/tmpnp25rsig/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:13 Thursday 02 December 2021 15:49:00 +0000 (0:00:00.489) 0:00:08.434 ***** skipping: [/cache/centos-7.qcow2c] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Enable and start firewalld service] *** task path: /tmp/tmpnp25rsig/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:19 Thursday 02 December 2021 15:49:00 +0000 (0:00:00.020) 0:00:08.455 ***** changed: [/cache/centos-7.qcow2c] => { "changed": true, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "system.slice dbus.service basic.target polkit.service", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Before": "network-pre.target shutdown.target multi-user.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": "ipset.service shutdown.target ebtables.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": "7162", "LimitRSS": "18446744073709551615", "LimitRTPRIO": "0", "LimitRTTIME": "18446744073709551615", "LimitSIGPENDING": "7162", "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 [fedora.linux_system_roles.firewall : Configure firewall] ***************** task path: /tmp/tmpnp25rsig/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:3 Thursday 02 December 2021 15:49:01 +0000 (0:00:00.874) 0:00:09.329 ***** META: role_complete for /cache/centos-7.qcow2c TASK [Verify used firewalld zones] ********************************************* task path: /tmp/tmpd6ah3ehk/tests/firewall/tests_zone.yml:14 Thursday 02 December 2021 15:49:01 +0000 (0:00:00.020) 0:00:09.349 ***** statically imported: /tmp/tmpnp25rsig/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml TASK [fedora.linux_system_roles.firewall : Install firewalld] ****************** task path: /tmp/tmpnp25rsig/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:2 Thursday 02 December 2021 15:49:01 +0000 (0:00:00.044) 0:00:09.394 ***** ok: [/cache/centos-7.qcow2c] => { "changed": false, "rc": 0, "results": [ "firewalld-0.6.3-13.el7_9.noarch providing firewalld is already installed" ] } TASK [fedora.linux_system_roles.firewall : Install python-firewall] ************ task path: /tmp/tmpnp25rsig/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:7 Thursday 02 December 2021 15:49:02 +0000 (0:00:00.495) 0:00:09.890 ***** 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 [fedora.linux_system_roles.firewall : Install python3-firewall] *********** task path: /tmp/tmpnp25rsig/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:13 Thursday 02 December 2021 15:49:02 +0000 (0:00:00.507) 0:00:10.398 ***** skipping: [/cache/centos-7.qcow2c] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Enable and start firewalld service] *** task path: /tmp/tmpnp25rsig/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:19 Thursday 02 December 2021 15:49:02 +0000 (0:00:00.036) 0:00:10.435 ***** ok: [/cache/centos-7.qcow2c] => { "changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestamp": "Thu 2021-12-02 15:49:00 UTC", "ActiveEnterTimestampMonotonic": "19111955", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "system.slice dbus.service basic.target polkit.service", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Thu 2021-12-02 15:49:00 UTC", "AssertTimestampMonotonic": "18903706", "Before": "network-pre.target shutdown.target multi-user.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": "Thu 2021-12-02 15:49:00 UTC", "ConditionTimestampMonotonic": "18903706", "Conflicts": "ipset.service shutdown.target ebtables.service iptables.service ip6tables.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": "7848", "ExecMainStartTimestamp": "Thu 2021-12-02 15:49:00 UTC", "ExecMainStartTimestampMonotonic": "18904829", "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=[Thu 2021-12-02 15:49:00 UTC] ; stop_time=[n/a] ; pid=7848 ; 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": "Thu 2021-12-02 15:49:00 UTC", "InactiveExitTimestampMonotonic": "18904860", "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": "7162", "LimitRSS": "18446744073709551615", "LimitRTPRIO": "0", "LimitRTTIME": "18446744073709551615", "LimitSIGPENDING": "7162", "LimitSTACK": "18446744073709551615", "LoadState": "loaded", "MainPID": "7848", "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": "Thu 2021-12-02 15:49:00 UTC", "WatchdogTimestampMonotonic": "19111901", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.firewall : Configure firewall] ***************** task path: /tmp/tmpnp25rsig/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:3 Thursday 02 December 2021 15:49:03 +0000 (0:00:00.401) 0:00:10.836 ***** ok: [/cache/centos-7.qcow2c] => (item={'zone': 'internal', 'state': 'enabled'}) => { "ansible_loop_var": "item", "changed": false, "item": { "state": "enabled", "zone": "internal" } } ok: [/cache/centos-7.qcow2c] => (item={'zone': 'external', 'state': 'enabled'}) => { "ansible_loop_var": "item", "changed": false, "item": { "state": "enabled", "zone": "external" } } ok: [/cache/centos-7.qcow2c] => (item={'zone': 'trusted', 'state': 'enabled'}) => { "ansible_loop_var": "item", "changed": false, "item": { "state": "enabled", "zone": "trusted" } } META: role_complete for /cache/centos-7.qcow2c TASK [Fail on missing zones] *************************************************** task path: /tmp/tmpd6ah3ehk/tests/firewall/tests_zone.yml:23 Thursday 02 December 2021 15:49:05 +0000 (0:00:01.677) 0:00:12.513 ***** skipping: [/cache/centos-7.qcow2c] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Setup firewalld] ********************************************************* task path: /tmp/tmpd6ah3ehk/tests/firewall/tests_zone.yml:29 Thursday 02 December 2021 15:49:05 +0000 (0:00:00.030) 0:00:12.544 ***** statically imported: /tmp/tmpnp25rsig/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml TASK [fedora.linux_system_roles.firewall : Install firewalld] ****************** task path: /tmp/tmpnp25rsig/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:2 Thursday 02 December 2021 15:49:05 +0000 (0:00:00.047) 0:00:12.592 ***** ok: [/cache/centos-7.qcow2c] => { "changed": false, "rc": 0, "results": [ "firewalld-0.6.3-13.el7_9.noarch providing firewalld is already installed" ] } TASK [fedora.linux_system_roles.firewall : Install python-firewall] ************ task path: /tmp/tmpnp25rsig/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:7 Thursday 02 December 2021 15:49:05 +0000 (0:00:00.517) 0:00:13.109 ***** 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 [fedora.linux_system_roles.firewall : Install python3-firewall] *********** task path: /tmp/tmpnp25rsig/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:13 Thursday 02 December 2021 15:49:06 +0000 (0:00:00.507) 0:00:13.617 ***** skipping: [/cache/centos-7.qcow2c] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Enable and start firewalld service] *** task path: /tmp/tmpnp25rsig/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:19 Thursday 02 December 2021 15:49:06 +0000 (0:00:00.036) 0:00:13.653 ***** ok: [/cache/centos-7.qcow2c] => { "changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestamp": "Thu 2021-12-02 15:49:00 UTC", "ActiveEnterTimestampMonotonic": "19111955", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "system.slice dbus.service basic.target polkit.service", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Thu 2021-12-02 15:49:00 UTC", "AssertTimestampMonotonic": "18903706", "Before": "network-pre.target shutdown.target multi-user.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": "Thu 2021-12-02 15:49:00 UTC", "ConditionTimestampMonotonic": "18903706", "Conflicts": "ipset.service shutdown.target ebtables.service iptables.service ip6tables.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": "7848", "ExecMainStartTimestamp": "Thu 2021-12-02 15:49:00 UTC", "ExecMainStartTimestampMonotonic": "18904829", "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=[Thu 2021-12-02 15:49:00 UTC] ; stop_time=[n/a] ; pid=7848 ; 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": "Thu 2021-12-02 15:49:00 UTC", "InactiveExitTimestampMonotonic": "18904860", "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": "7162", "LimitRSS": "18446744073709551615", "LimitRTPRIO": "0", "LimitRTTIME": "18446744073709551615", "LimitSIGPENDING": "7162", "LimitSTACK": "18446744073709551615", "LoadState": "loaded", "MainPID": "7848", "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": "Thu 2021-12-02 15:49:00 UTC", "WatchdogTimestampMonotonic": "19111901", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.firewall : Configure firewall] ***************** task path: /tmp/tmpnp25rsig/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:3 Thursday 02 December 2021 15:49:06 +0000 (0:00:00.410) 0:00:14.064 ***** changed: [/cache/centos-7.qcow2c] => (item={'zone': 'internal', 'service': ['tftp', 'ftp'], 'port': ['443/tcp', '443/udp'], 'forward_port': ['447/tcp;;1.2.3.4', '448/tcp;;1.2.3.5'], 'state': 'enabled'}) => { "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" } } META: role_complete for /cache/centos-7.qcow2c TASK [Fail if no changes are done] ********************************************* task path: /tmp/tmpd6ah3ehk/tests/firewall/tests_zone.yml:37 Thursday 02 December 2021 15:49:07 +0000 (0:00:00.550) 0:00:14.614 ***** skipping: [/cache/centos-7.qcow2c] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Setup firewalld again] *************************************************** task path: /tmp/tmpd6ah3ehk/tests/firewall/tests_zone.yml:43 Thursday 02 December 2021 15:49:07 +0000 (0:00:00.038) 0:00:14.653 ***** TASK [fedora.linux_system_roles.firewall : Install firewalld] ****************** task path: /tmp/tmpnp25rsig/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:2 Thursday 02 December 2021 15:49:07 +0000 (0:00:00.046) 0:00:14.699 ***** ok: [/cache/centos-7.qcow2c] => { "changed": false, "rc": 0, "results": [ "firewalld-0.6.3-13.el7_9.noarch providing firewalld is already installed" ] } TASK [fedora.linux_system_roles.firewall : Install python-firewall] ************ task path: /tmp/tmpnp25rsig/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:7 Thursday 02 December 2021 15:49:07 +0000 (0:00:00.510) 0:00:15.210 ***** 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 [fedora.linux_system_roles.firewall : Install python3-firewall] *********** task path: /tmp/tmpnp25rsig/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:13 Thursday 02 December 2021 15:49:08 +0000 (0:00:00.503) 0:00:15.713 ***** skipping: [/cache/centos-7.qcow2c] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Enable and start firewalld service] *** task path: /tmp/tmpnp25rsig/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:19 Thursday 02 December 2021 15:49:08 +0000 (0:00:00.035) 0:00:15.749 ***** ok: [/cache/centos-7.qcow2c] => { "changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestamp": "Thu 2021-12-02 15:49:00 UTC", "ActiveEnterTimestampMonotonic": "19111955", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "system.slice dbus.service basic.target polkit.service", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Thu 2021-12-02 15:49:00 UTC", "AssertTimestampMonotonic": "18903706", "Before": "network-pre.target shutdown.target multi-user.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": "Thu 2021-12-02 15:49:00 UTC", "ConditionTimestampMonotonic": "18903706", "Conflicts": "ipset.service shutdown.target ebtables.service iptables.service ip6tables.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": "7848", "ExecMainStartTimestamp": "Thu 2021-12-02 15:49:00 UTC", "ExecMainStartTimestampMonotonic": "18904829", "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=[Thu 2021-12-02 15:49:00 UTC] ; stop_time=[n/a] ; pid=7848 ; 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": "Thu 2021-12-02 15:49:00 UTC", "InactiveExitTimestampMonotonic": "18904860", "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": "7162", "LimitRSS": "18446744073709551615", "LimitRTPRIO": "0", "LimitRTTIME": "18446744073709551615", "LimitSIGPENDING": "7162", "LimitSTACK": "18446744073709551615", "LoadState": "loaded", "MainPID": "7848", "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": "Thu 2021-12-02 15:49:00 UTC", "WatchdogTimestampMonotonic": "19111901", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.firewall : Configure firewall] ***************** task path: /tmp/tmpnp25rsig/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:3 Thursday 02 December 2021 15:49:08 +0000 (0:00:00.409) 0:00:16.158 ***** ok: [/cache/centos-7.qcow2c] => (item={'zone': 'internal', 'service': ['tftp', 'ftp'], 'port': ['443/tcp', '443/udp'], 'forward_port': ['447/tcp;;1.2.3.4', '448/tcp;;1.2.3.5'], 'state': 'enabled'}) => { "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" } } META: role_complete for /cache/centos-7.qcow2c TASK [Fail on newly changes] *************************************************** task path: /tmp/tmpd6ah3ehk/tests/firewall/tests_zone.yml:51 Thursday 02 December 2021 15:49:09 +0000 (0:00:00.542) 0:00:16.701 ***** skipping: [/cache/centos-7.qcow2c] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify firewalld zone internal services] ********************************* task path: /tmp/tmpd6ah3ehk/tests/firewall/tests_zone.yml:57 Thursday 02 December 2021 15:49:09 +0000 (0:00:00.032) 0:00:16.734 ***** changed: [/cache/centos-7.qcow2c] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--zone=internal", "--list-services" ], "delta": "0:00:00.275409", "end": "2021-12-02 15:49:08.726788", "failed_when_result": false, "rc": 0, "start": "2021-12-02 15:49:08.451379" } STDOUT: dhcpv6-client ftp mdns samba-client ssh tftp TASK [Verify firewalld zone internal ports] ************************************ task path: /tmp/tmpd6ah3ehk/tests/firewall/tests_zone.yml:62 Thursday 02 December 2021 15:49:09 +0000 (0:00:00.723) 0:00:17.457 ***** changed: [/cache/centos-7.qcow2c] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--zone=internal", "--list-ports" ], "delta": "0:00:00.267740", "end": "2021-12-02 15:49:09.328180", "failed_when_result": false, "rc": 0, "start": "2021-12-02 15:49:09.060440" } STDOUT: 443/tcp 443/udp TASK [Verify firewalld zone internal forward ports] **************************** task path: /tmp/tmpd6ah3ehk/tests/firewall/tests_zone.yml:67 Thursday 02 December 2021 15:49:10 +0000 (0:00:00.599) 0:00:18.057 ***** changed: [/cache/centos-7.qcow2c] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--zone=internal", "--list-forward-ports" ], "delta": "0:00:00.272478", "end": "2021-12-02 15:49:09.940680", "failed_when_result": false, "rc": 0, "start": "2021-12-02 15:49:09.668202" } STDOUT: port=447:proto=tcp:toport=:toaddr=1.2.3.4 port=448:proto=tcp:toport=:toaddr=1.2.3.5 TASK [Reset to zone defaults] ************************************************** task path: /tmp/tmpd6ah3ehk/tests/firewall/tests_zone.yml:76 Thursday 02 December 2021 15:49:11 +0000 (0:00:00.613) 0:00:18.671 ***** 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.232369", "end": "2021-12-02 15:49:11.495311", "rc": 0, "start": "2021-12-02 15:49:10.262942" } STDOUT: success success success success META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-7.qcow2c : ok=21 changed=7 unreachable=0 failed=0 skipped=9 rescued=0 ignored=0 Thursday 02 December 2021 15:49:12 +0000 (0:00:01.556) 0:00:20.227 ***** =============================================================================== fedora.linux_system_roles.firewall : Install firewalld ------------------ 6.84s /tmp/tmpnp25rsig/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:2 fedora.linux_system_roles.firewall : Configure firewall ----------------- 1.68s /tmp/tmpnp25rsig/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:3 Reset to zone defaults -------------------------------------------------- 1.56s /tmp/tmpd6ah3ehk/tests/firewall/tests_zone.yml:76 ----------------------------- Gathering Facts --------------------------------------------------------- 1.02s /tmp/tmpd6ah3ehk/tests/firewall/tests_zone.yml:1 ------------------------------ fedora.linux_system_roles.firewall : Enable and start firewalld service --- 0.87s /tmp/tmpnp25rsig/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:19 Verify firewalld zone internal services --------------------------------- 0.72s /tmp/tmpd6ah3ehk/tests/firewall/tests_zone.yml:57 ----------------------------- Verify firewalld zone internal forward ports ---------------------------- 0.61s /tmp/tmpd6ah3ehk/tests/firewall/tests_zone.yml:67 ----------------------------- Verify firewalld zone internal ports ------------------------------------ 0.60s /tmp/tmpd6ah3ehk/tests/firewall/tests_zone.yml:62 ----------------------------- fedora.linux_system_roles.firewall : Configure firewall ----------------- 0.54s /tmp/tmpnp25rsig/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:3 fedora.linux_system_roles.firewall : Install firewalld ------------------ 0.51s /tmp/tmpnp25rsig/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:2 fedora.linux_system_roles.firewall : Install python-firewall ------------ 0.51s /tmp/tmpnp25rsig/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:7 fedora.linux_system_roles.firewall : Install python-firewall ------------ 0.50s /tmp/tmpnp25rsig/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:7 fedora.linux_system_roles.firewall : Install firewalld ------------------ 0.50s /tmp/tmpnp25rsig/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:2 fedora.linux_system_roles.firewall : Install python-firewall ------------ 0.49s /tmp/tmpnp25rsig/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:7 fedora.linux_system_roles.firewall : Enable and start firewalld service --- 0.41s /tmp/tmpnp25rsig/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:19 fedora.linux_system_roles.firewall : Enable and start firewalld service --- 0.40s /tmp/tmpnp25rsig/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:19 Setup firewalld --------------------------------------------------------- 0.05s /tmp/tmpd6ah3ehk/tests/firewall/tests_zone.yml:29 ----------------------------- Setup firewalld again --------------------------------------------------- 0.05s /tmp/tmpd6ah3ehk/tests/firewall/tests_zone.yml:43 ----------------------------- Verify used firewalld zones --------------------------------------------- 0.04s /tmp/tmpd6ah3ehk/tests/firewall/tests_zone.yml:14 ----------------------------- Fail if no changes are done --------------------------------------------- 0.04s /tmp/tmpd6ah3ehk/tests/firewall/tests_zone.yml:37 -----------------------------