+ cd /tmp/tmpv3myt2g3/tests; TEST_SUBJECTS=/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_selinux-35-af5a0a6-rhel-8-gdi5465a/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpv3myt2g3/_setup.yml /tmp/tmpv3myt2g3/tests/tests_all_purge.yml ansible-playbook 2.8.0 config file = /home/till/.ansible.cfg configured module search path = ['/home/till/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.7/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.7.3 (default, May 11 2019, 00:38:04) [GCC 9.1.1 20190503 (Red Hat 9.1.1-1)] Using /home/till/.ansible.cfg as config file PLAYBOOK: _setup.yml *************************************************************************************************************************************************************************************** 2 plays in /tmp/tmpv3myt2g3/_setup.yml PLAY [Fail when only localhost is available] *************************************************************************************************************************************************************** META: ran handlers TASK [debug] *********************************************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/_setup.yml:5 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => { "groups": { "all": [ "/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2" ], "localhost": [ "/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2" ], "subjects": [ "/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2" ], "ungrouped": [] } } TASK [fail] ************************************************************************************************************************************************************************************************ task path: /tmp/tmpv3myt2g3/_setup.yml:7 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY [Setup repos] ***************************************************************************************************************************************************************************************** META: ran handlers TASK [set up internal repositories] ************************************************************************************************************************************************************************ task path: /tmp/tmpv3myt2g3/_setup.yml:16 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true} META: ran handlers META: ran handlers PLAY RECAP ************************************************************************************************************************************************************************************************* /home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2 : ok=2 changed=1 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 statically imported: /tmp/tmpv3myt2g3/tests/set_selinux_variables.yml statically imported: /tmp/tmpv3myt2g3/tests/set_selinux_variables.yml PLAYBOOK: tests_all_purge.yml ****************************************************************************************************************************************************************************** 1 plays in /tmp/tmpv3myt2g3/tests/tests_all_purge.yml PLAY [Test that selinux_all_purge drops local modifications, defaults to no] ******************************************************************************************************************************* TASK [Gathering Facts] ************************************************************************************************************************************************************************************* task path: /tmp/tmpv3myt2g3/tests/tests_all_purge.yml:1 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"ansible_facts": {"ansible_all_ipv4_addresses": ["10.0.2.15"], "ansible_all_ipv6_addresses": ["fec0::5054:ff:fe12:3456", "fe80::5054:ff:fe12:3456"], "ansible_apparmor": {"status": "disabled"}, "ansible_architecture": "x86_64", "ansible_bios_date": "04/01/2014", "ansible_bios_version": "1.12.0-2.fc30", "ansible_cmdline": {"BOOT_IMAGE": "(hd0,msdos1)/boot/vmlinuz-4.18.0-80.el8.x86_64", "console": "ttyS0,115200n8", "crashkernel": "auto", "net.ifnames": "0", "no_timer_check": true, "ro": true, "root": "UUID=884f47c9-a69d-4c5b-915d-6b7c9c74c923"}, "ansible_date_time": {"date": "2019-05-26", "day": "26", "epoch": "1558856223", "hour": "03", "iso8601": "2019-05-26T07:37:03Z", "iso8601_basic": "20190526T033703521473", "iso8601_basic_short": "20190526T033703", "iso8601_micro": "2019-05-26T07:37:03.521550Z", "minute": "37", "month": "05", "second": "03", "time": "03:37:03", "tz": "EDT", "tz_offset": "-0400", "weekday": "Sonntag", "weekday_number": "0", "weeknumber": "20", "year": "2019"}, "ansible_default_ipv4": {"address": "10.0.2.15", "alias": "eth0", "broadcast": "10.0.2.255", "gateway": "10.0.2.2", "interface": "eth0", "macaddress": "52:54:00:12:34:56", "mtu": 1500, "netmask": "255.255.255.0", "network": "10.0.2.0", "type": "ether"}, "ansible_default_ipv6": {"address": "fec0::5054:ff:fe12:3456", "gateway": "fe80::2", "interface": "eth0", "macaddress": "52:54:00:12:34:56", "mtu": 1500, "prefix": "64", "scope": "site", "type": "ether"}, "ansible_device_links": {"ids": {"sr0": ["ata-QEMU_DVD-ROM_QM00003"]}, "labels": {"sr0": ["cidata"]}, "masters": {}, "uuids": {"sr0": ["2019-05-26-09-36-04-00"], "vda1": ["884f47c9-a69d-4c5b-915d-6b7c9c74c923"]}}, "ansible_devices": {"sr0": {"holders": [], "host": "IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]", "links": {"ids": ["ata-QEMU_DVD-ROM_QM00003"], "labels": ["cidata"], "masters": [], "uuids": ["2019-05-26-09-36-04-00"]}, "model": "QEMU DVD-ROM", "partitions": {}, "removable": "1", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "mq-deadline", "sectors": "728", "sectorsize": "2048", "size": "364.00 KB", "support_discard": "0", "vendor": "QEMU", "virtual": 1}, "vda": {"holders": [], "host": "SCSI storage controller: Red Hat, Inc. Virtio block device", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {"vda1": {"holders": [], "links": {"ids": [], "labels": [], "masters": [], "uuids": ["884f47c9-a69d-4c5b-915d-6b7c9c74c923"]}, "sectors": "20969439", "sectorsize": 512, "size": "10.00 GB", "start": "2048", "uuid": "884f47c9-a69d-4c5b-915d-6b7c9c74c923"}}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "mq-deadline", "sectors": "20971520", "sectorsize": "512", "size": "10.00 GB", "support_discard": "0", "vendor": "0x1af4", "virtual": 1}}, "ansible_distribution": "RedHat", "ansible_distribution_file_parsed": true, "ansible_distribution_file_path": "/etc/redhat-release", "ansible_distribution_file_search_string": "Red Hat", "ansible_distribution_file_variety": "RedHat", "ansible_distribution_major_version": "8", "ansible_distribution_release": "Ootpa", "ansible_distribution_version": "8.0", "ansible_dns": {"nameservers": ["10.0.2.3"], "search": ["virt.pnr.lab.eng.rdu2.redhat.com"]}, "ansible_domain": "virt.pnr.lab.eng.rdu2.redhat.com", "ansible_effective_group_id": 0, "ansible_effective_user_id": 0, "ansible_env": {"DBUS_SESSION_BUS_ADDRESS": "unix:path=/run/user/0/bus", "HOME": "/root", "LANG": "de_DE.UTF-8", "LESSOPEN": "||/usr/bin/lesspipe.sh %s", "LOGNAME": "root", "LS_COLORS": "rs=0:di=38;5;33:ln=38;5;51:mh=00:pi=40;38;5;11:so=38;5;13:do=38;5;5:bd=48;5;232;38;5;11:cd=48;5;232;38;5;3:or=48;5;232;38;5;9:mi=01;05;37;41:su=48;5;196;38;5;15:sg=48;5;11;38;5;16:ca=48;5;196;38;5;226:tw=48;5;10;38;5;16:ow=48;5;10;38;5;21:st=48;5;21;38;5;15:ex=38;5;40:*.tar=38;5;9:*.tgz=38;5;9:*.arc=38;5;9:*.arj=38;5;9:*.taz=38;5;9:*.lha=38;5;9:*.lz4=38;5;9:*.lzh=38;5;9:*.lzma=38;5;9:*.tlz=38;5;9:*.txz=38;5;9:*.tzo=38;5;9:*.t7z=38;5;9:*.zip=38;5;9:*.z=38;5;9:*.dz=38;5;9:*.gz=38;5;9:*.lrz=38;5;9:*.lz=38;5;9:*.lzo=38;5;9:*.xz=38;5;9:*.zst=38;5;9:*.tzst=38;5;9:*.bz2=38;5;9:*.bz=38;5;9:*.tbz=38;5;9:*.tbz2=38;5;9:*.tz=38;5;9:*.deb=38;5;9:*.rpm=38;5;9:*.jar=38;5;9:*.war=38;5;9:*.ear=38;5;9:*.sar=38;5;9:*.rar=38;5;9:*.alz=38;5;9:*.ace=38;5;9:*.zoo=38;5;9:*.cpio=38;5;9:*.7z=38;5;9:*.rz=38;5;9:*.cab=38;5;9:*.wim=38;5;9:*.swm=38;5;9:*.dwm=38;5;9:*.esd=38;5;9:*.jpg=38;5;13:*.jpeg=38;5;13:*.mjpg=38;5;13:*.mjpeg=38;5;13:*.gif=38;5;13:*.bmp=38;5;13:*.pbm=38;5;13:*.pgm=38;5;13:*.ppm=38;5;13:*.tga=38;5;13:*.xbm=38;5;13:*.xpm=38;5;13:*.tif=38;5;13:*.tiff=38;5;13:*.png=38;5;13:*.svg=38;5;13:*.svgz=38;5;13:*.mng=38;5;13:*.pcx=38;5;13:*.mov=38;5;13:*.mpg=38;5;13:*.mpeg=38;5;13:*.m2v=38;5;13:*.mkv=38;5;13:*.webm=38;5;13:*.ogm=38;5;13:*.mp4=38;5;13:*.m4v=38;5;13:*.mp4v=38;5;13:*.vob=38;5;13:*.qt=38;5;13:*.nuv=38;5;13:*.wmv=38;5;13:*.asf=38;5;13:*.rm=38;5;13:*.rmvb=38;5;13:*.flc=38;5;13:*.avi=38;5;13:*.fli=38;5;13:*.flv=38;5;13:*.gl=38;5;13:*.dl=38;5;13:*.xcf=38;5;13:*.xwd=38;5;13:*.yuv=38;5;13:*.cgm=38;5;13:*.emf=38;5;13:*.ogv=38;5;13:*.ogx=38;5;13:*.aac=38;5;45:*.au=38;5;45:*.flac=38;5;45:*.m4a=38;5;45:*.mid=38;5;45:*.midi=38;5;45:*.mka=38;5;45:*.mp3=38;5;45:*.mpc=38;5;45:*.ogg=38;5;45:*.ra=38;5;45:*.wav=38;5;45:*.oga=38;5;45:*.opus=38;5;45:*.spx=38;5;45:*.xspf=38;5;45:", "MAIL": "/var/mail/root", "PATH": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin", "PWD": "/root", "SELINUX_LEVEL_REQUESTED": "", "SELINUX_ROLE_REQUESTED": "", "SELINUX_USE_CURRENT_RANGE": "", "SHELL": "/bin/bash", "SHLVL": "2", "SSH_CLIENT": "10.0.2.2 33936 22", "SSH_CONNECTION": "10.0.2.2 33936 10.0.2.15 22", "SSH_TTY": "/dev/pts/0", "TERM": "xterm-256color", "USER": "root", "XDG_RUNTIME_DIR": "/run/user/0", "XDG_SESSION_ID": "1", "_": "/usr/libexec/platform-python"}, "ansible_eth0": {"active": true, "device": "eth0", "features": {"esp_hw_offload": "off [fixed]", "esp_tx_csum_hw_offload": "off [fixed]", "fcoe_mtu": "off [fixed]", "generic_receive_offload": "on", "generic_segmentation_offload": "off [requested on]", "highdma": "on [fixed]", "hw_tc_offload": "off [fixed]", "l2_fwd_offload": "off [fixed]", "large_receive_offload": "off [fixed]", "loopback": "off [fixed]", "netns_local": "off [fixed]", "ntuple_filters": "off [fixed]", "receive_hashing": "off [fixed]", "rx_all": "off [fixed]", "rx_checksumming": "off [fixed]", "rx_fcs": "off [fixed]", "rx_gro_hw": "off [fixed]", "rx_udp_tunnel_port_offload": "off [fixed]", "rx_vlan_filter": "on [fixed]", "rx_vlan_offload": "off [fixed]", "rx_vlan_stag_filter": "off [fixed]", "rx_vlan_stag_hw_parse": "off [fixed]", "scatter_gather": "off", "tcp_segmentation_offload": "off", "tls_hw_record": "off [fixed]", "tls_hw_tx_offload": "off [fixed]", "tx_checksum_fcoe_crc": "off [fixed]", "tx_checksum_ip_generic": "off [fixed]", "tx_checksum_ipv4": "off [fixed]", "tx_checksum_ipv6": "off [fixed]", "tx_checksum_sctp": "off [fixed]", "tx_checksumming": "off", "tx_esp_segmentation": "off [fixed]", "tx_fcoe_segmentation": "off [fixed]", "tx_gre_csum_segmentation": "off [fixed]", "tx_gre_segmentation": "off [fixed]", "tx_gso_partial": "off [fixed]", "tx_gso_robust": "off [fixed]", "tx_ipxip4_segmentation": "off [fixed]", "tx_ipxip6_segmentation": "off [fixed]", "tx_lockless": "off [fixed]", "tx_nocache_copy": "off", "tx_scatter_gather": "off [fixed]", "tx_scatter_gather_fraglist": "off [fixed]", "tx_sctp_segmentation": "off [fixed]", "tx_tcp6_segmentation": "off [fixed]", "tx_tcp_ecn_segmentation": "off [fixed]", "tx_tcp_mangleid_segmentation": "off [fixed]", "tx_tcp_segmentation": "off [fixed]", "tx_udp_segmentation": "off [fixed]", "tx_udp_tnl_csum_segmentation": "off [fixed]", "tx_udp_tnl_segmentation": "off [fixed]", "tx_vlan_offload": "off [fixed]", "tx_vlan_stag_hw_insert": "off [fixed]", "udp_fragmentation_offload": "off", "vlan_challenged": "off [fixed]"}, "hw_timestamp_filters": [], "ipv4": {"address": "10.0.2.15", "broadcast": "10.0.2.255", "netmask": "255.255.255.0", "network": "10.0.2.0"}, "ipv6": [{"address": "fec0::5054:ff:fe12:3456", "prefix": "64", "scope": "site"}, {"address": "fe80::5054:ff:fe12:3456", "prefix": "64", "scope": "link"}], "macaddress": "52:54:00:12:34:56", "module": "virtio_net", "mtu": 1500, "pciid": "virtio0", "promisc": false, "speed": -1, "timestamping": ["tx_software", "rx_software", "software"], "type": "ether"}, "ansible_fibre_channel_wwn": [], "ansible_fips": false, "ansible_form_factor": "Other", "ansible_fqdn": "ibm-p8-kvm-03-guest-02.virt.pnr.lab.eng.rdu2.redhat.com", "ansible_hostname": "ibm-p8-kvm-03-guest-02", "ansible_hostnqn": "", "ansible_interfaces": ["lo", "eth0"], "ansible_is_chroot": false, "ansible_iscsi_iqn": "", "ansible_kernel": "4.18.0-80.el8.x86_64", "ansible_lo": {"active": true, "device": "lo", "features": {"esp_hw_offload": "off [fixed]", "esp_tx_csum_hw_offload": "off [fixed]", "fcoe_mtu": "off [fixed]", "generic_receive_offload": "on", "generic_segmentation_offload": "on", "highdma": "on [fixed]", "hw_tc_offload": "off [fixed]", "l2_fwd_offload": "off [fixed]", "large_receive_offload": "off [fixed]", "loopback": "on [fixed]", "netns_local": "on [fixed]", "ntuple_filters": "off [fixed]", "receive_hashing": "off [fixed]", "rx_all": "off [fixed]", "rx_checksumming": "on [fixed]", "rx_fcs": "off [fixed]", "rx_gro_hw": "off [fixed]", "rx_udp_tunnel_port_offload": "off [fixed]", "rx_vlan_filter": "off [fixed]", "rx_vlan_offload": "off [fixed]", "rx_vlan_stag_filter": "off [fixed]", "rx_vlan_stag_hw_parse": "off [fixed]", "scatter_gather": "on", "tcp_segmentation_offload": "on", "tls_hw_record": "off [fixed]", "tls_hw_tx_offload": "off [fixed]", "tx_checksum_fcoe_crc": "off [fixed]", "tx_checksum_ip_generic": "on [fixed]", "tx_checksum_ipv4": "off [fixed]", "tx_checksum_ipv6": "off [fixed]", "tx_checksum_sctp": "on [fixed]", "tx_checksumming": "on", "tx_esp_segmentation": "off [fixed]", "tx_fcoe_segmentation": "off [fixed]", "tx_gre_csum_segmentation": "off [fixed]", "tx_gre_segmentation": "off [fixed]", "tx_gso_partial": "off [fixed]", "tx_gso_robust": "off [fixed]", "tx_ipxip4_segmentation": "off [fixed]", "tx_ipxip6_segmentation": "off [fixed]", "tx_lockless": "on [fixed]", "tx_nocache_copy": "off [fixed]", "tx_scatter_gather": "on [fixed]", "tx_scatter_gather_fraglist": "on [fixed]", "tx_sctp_segmentation": "on", "tx_tcp6_segmentation": "on", "tx_tcp_ecn_segmentation": "on", "tx_tcp_mangleid_segmentation": "on", "tx_tcp_segmentation": "on", "tx_udp_segmentation": "off [fixed]", "tx_udp_tnl_csum_segmentation": "off [fixed]", "tx_udp_tnl_segmentation": "off [fixed]", "tx_vlan_offload": "off [fixed]", "tx_vlan_stag_hw_insert": "off [fixed]", "udp_fragmentation_offload": "off", "vlan_challenged": "on [fixed]"}, "hw_timestamp_filters": [], "ipv4": {"address": "127.0.0.1", "broadcast": "host", "netmask": "255.0.0.0", "network": "127.0.0.0"}, "ipv6": [{"address": "::1", "prefix": "128", "scope": "host"}], "mtu": 65536, "promisc": false, "timestamping": ["tx_software", "rx_software", "software"], "type": "loopback"}, "ansible_local": {}, "ansible_lsb": {}, "ansible_machine": "x86_64", "ansible_machine_id": "737f10814c734c75b051d3eae35f4807", "ansible_memfree_mb": 369, "ansible_memory_mb": {"nocache": {"free": 601, "used": 219}, "real": {"free": 369, "total": 820, "used": 451}, "swap": {"cached": 0, "free": 0, "total": 0, "used": 0}}, "ansible_memtotal_mb": 820, "ansible_mounts": [{"block_available": 2291633, "block_size": 4096, "block_total": 2618619, "block_used": 326986, "device": "/dev/vda1", "fstype": "xfs", "inode_available": 5207721, "inode_total": 5242352, "inode_used": 34631, "mount": "/", "options": "rw,seclabel,relatime,attr2,inode64,noquota", "size_available": 9386528768, "size_total": 10725863424, "uuid": "884f47c9-a69d-4c5b-915d-6b7c9c74c923"}], "ansible_nodename": "ibm-p8-kvm-03-guest-02.virt.pnr.lab.eng.rdu2.redhat.com", "ansible_os_family": "RedHat", "ansible_pkg_mgr": "dnf", "ansible_proc_cmdline": {"BOOT_IMAGE": "(hd0,msdos1)/boot/vmlinuz-4.18.0-80.el8.x86_64", "console": ["ttyS0", "ttyS0,115200n8"], "crashkernel": "auto", "net.ifnames": "0", "no_timer_check": true, "ro": true, "root": "UUID=884f47c9-a69d-4c5b-915d-6b7c9c74c923"}, "ansible_processor": ["0", "GenuineIntel", "Intel(R) Core(TM) i7-7600U CPU @ 2.80GHz", "1", "GenuineIntel", "Intel(R) Core(TM) i7-7600U CPU @ 2.80GHz", "2", "GenuineIntel", "Intel(R) Core(TM) i7-7600U CPU @ 2.80GHz"], "ansible_processor_cores": 1, "ansible_processor_count": 3, "ansible_processor_threads_per_core": 1, "ansible_processor_vcpus": 3, "ansible_product_name": "Standard PC (i440FX + PIIX, 1996)", "ansible_product_serial": "NA", "ansible_product_uuid": "NA", "ansible_product_version": "pc-i440fx-3.1", "ansible_python": {"executable": "/usr/libexec/platform-python", "has_sslcontext": true, "type": "cpython", "version": {"major": 3, "micro": 8, "minor": 6, "releaselevel": "final", "serial": 0}, "version_info": [3, 6, 8, "final", 0]}, "ansible_python_version": "3.6.8", "ansible_real_group_id": 0, "ansible_real_user_id": 0, "ansible_selinux": {"config_mode": "enforcing", "mode": "enforcing", "policyvers": 31, "status": "enabled", "type": "targeted"}, "ansible_selinux_python_present": true, "ansible_service_mgr": "systemd", "ansible_ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBE5X6/7FM/C0VFiojUKuAlazutWM5qit6+jHKOfISKbISuUnczex8LOtBBiM/KG8jmpzugoN1ulCqw9WRGOeBn0=", "ansible_ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAIGL8VU2ePpkM1vpG0A8SRxId/7s47zCV5RlSOCr+47ky", "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABAQDOXYRvW3IvxwWwFgbftjkDMsFYe9Q0BMtU1ElAYpQ6y3B3qkiGHIZwldDZEi63n83qGK3sbmtpzUd2pYWct5NZuLUnb0Z/WIEna7jRSxms136fPCm3v8DgK1TKVUJ8EkuCrcG7RlULBH53cWjAt6cA6aAZ8oRtbrVkhh0PVburTjZhFlwv6BgBMtP26QcaUPkjDYbS2jSIIXx0Em+qQ0e6OXyHHxn+gOBU8nwuUH1KGA335uUVGNysFnNavJD+km3s86DQZz6Y/NYmq+z6/SflErzouarb4209feiSzseJO4aQawyjjLj5MCQasR4kExBdeaZPo9TJYxzlWLj+eL/3", "ansible_swapfree_mb": 0, "ansible_swaptotal_mb": 0, "ansible_system": "Linux", "ansible_system_capabilities": ["cap_chown", "cap_dac_override", "cap_dac_read_search", "cap_fowner", "cap_fsetid", "cap_kill", "cap_setgid", "cap_setuid", "cap_setpcap", "cap_linux_immutable", "cap_net_bind_service", "cap_net_broadcast", "cap_net_admin", "cap_net_raw", "cap_ipc_lock", "cap_ipc_owner", "cap_sys_module", "cap_sys_rawio", "cap_sys_chroot", "cap_sys_ptrace", "cap_sys_pacct", "cap_sys_admin", "cap_sys_boot", "cap_sys_nice", "cap_sys_resource", "cap_sys_time", "cap_sys_tty_config", "cap_mknod", "cap_lease", "cap_audit_write", "cap_audit_control", "cap_setfcap", "cap_mac_override", "cap_mac_admin", "cap_syslog", "cap_wake_alarm", "cap_block_suspend", "cap_audit_read+ep"], "ansible_system_capabilities_enforced": "True", "ansible_system_vendor": "QEMU", "ansible_uptime_seconds": 54, "ansible_user_dir": "/root", "ansible_user_gecos": "root", "ansible_user_gid": 0, "ansible_user_id": "root", "ansible_user_shell": "/bin/bash", "ansible_user_uid": 0, "ansible_userspace_architecture": "x86_64", "ansible_userspace_bits": "64", "ansible_virtualization_role": "guest", "ansible_virtualization_type": "kvm", "gather_subset": ["all"], "module_setup": true}, "changed": false} META: ran handlers TASK [Install SELinux tool semanage on Fedora] ************************************************************************************************************************************************************* task path: /tmp/tmpv3myt2g3/tests/tests_all_purge.yml:12 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Add a Linux System Roles SELinux User] *************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tests/tests_all_purge.yml:19 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": true, "comment": "Linux System Roles SELinux User", "create_home": true, "group": 1001, "home": "/home/sar-user", "name": "sar-user", "shell": "/bin/bash", "state": "present", "system": false, "uid": 1001} TASK [Add some mapping] ************************************************************************************************************************************************************************************ task path: /tmp/tmpv3myt2g3/tests/tests_all_purge.yml:24 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": true, "cmd": "echo -e -n \"boolean -m --on samba_enable_home_dirs\nport -a -p tcp -t ssh_port_t 22100\nfcontext -a -t user_home_dir_t /tmp/test_dir\nlogin -a -s staff_u sar-user\n\" | /usr/sbin/semanage -i -", "delta": "0:00:07.583910", "end": "2019-05-26 03:37:12.980998", "rc": 0, "start": "2019-05-26 03:37:05.397088", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Apply role with defaults, should not drop local modifications] *************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tests/tests_all_purge.yml:27 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpv3myt2g3/tasks/main.yml:2 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpv3myt2g3/tasks/main.yml:10 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: libselinux-python3", "Installed: policycoreutils-python3"]} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:22 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: policycoreutils-python-utils"]} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:31 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:51 [DEPRECATION WARNING]: evaluating selinux_reboot_required as a bare variable, this behaviour will go away and you might need to add |bool to the expression in the future. Also see CONDITIONAL_BARE_VARS configuration toggle.. This feature will be removed in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpv3myt2g3/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpv3myt2g3/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpv3myt2g3/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpv3myt2g3/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:03.074498", "end": "2019-05-26 03:37:30.607458", "rc": 0, "start": "2019-05-26 03:37:27.532960", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpv3myt2g3/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpv3myt2g3/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:118 TASK [Get local modifications - boolean] ******************************************************************************************************************************************************************* task path: /tmp/tmpv3myt2g3/tests/set_selinux_variables.yml:2 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": true, "cmd": ["/usr/sbin/semanage", "boolean", "-l", "-n", "-C"], "delta": "0:00:02.371798", "end": "2019-05-26 03:37:34.088076", "rc": 0, "start": "2019-05-26 03:37:31.716278", "stderr": "", "stderr_lines": [], "stdout": "samba_enable_home_dirs (ein , ein) Allow samba to enable home dirs", "stdout_lines": ["samba_enable_home_dirs (ein , ein) Allow samba to enable home dirs"]} TASK [Get local modifications - port] ********************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tests/set_selinux_variables.yml:5 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": true, "cmd": ["/usr/sbin/semanage", "port", "-l", "-n", "-C"], "delta": "0:00:01.625230", "end": "2019-05-26 03:37:36.587898", "rc": 0, "start": "2019-05-26 03:37:34.962668", "stderr": "", "stderr_lines": [], "stdout": "ssh_port_t tcp 22100", "stdout_lines": ["ssh_port_t tcp 22100"]} TASK [Get local modifications - login] ********************************************************************************************************************************************************************* task path: /tmp/tmpv3myt2g3/tests/set_selinux_variables.yml:8 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": true, "cmd": ["/usr/sbin/semanage", "login", "-l", "-n", "-C"], "delta": "0:00:01.720056", "end": "2019-05-26 03:37:39.167131", "rc": 0, "start": "2019-05-26 03:37:37.447075", "stderr": "", "stderr_lines": [], "stdout": "sar-user staff_u s0 *", "stdout_lines": ["sar-user staff_u s0 *"]} TASK [Get local modifications - fcontext] ****************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tests/set_selinux_variables.yml:11 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": true, "cmd": ["/usr/sbin/semanage", "fcontext", "-l", "-n", "-C"], "delta": "0:00:01.522973", "end": "2019-05-26 03:37:41.321400", "rc": 0, "start": "2019-05-26 03:37:39.798427", "stderr": "", "stderr_lines": [], "stdout": "/tmp/test_dir all files system_u:object_r:user_home_dir_t:s0 ", "stdout_lines": ["/tmp/test_dir all files system_u:object_r:user_home_dir_t:s0 "]} TASK [Check if local modifications are not empty - booleans] *********************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tests/tests_all_purge.yml:32 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Check if local modifications are not empty - port] *************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tests/tests_all_purge.yml:35 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Check if local modifications are not empty - login] ************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tests/tests_all_purge.yml:38 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Check if local modifications are not empty - fcontext] *********************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tests/tests_all_purge.yml:41 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Apply the role to drop local modifications] ********************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tests/tests_all_purge.yml:45 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpv3myt2g3/tasks/main.yml:2 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpv3myt2g3/tasks/main.yml:10 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: libselinux-python3", "Installed: policycoreutils-python3"]} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:22 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: policycoreutils-python-utils"]} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:31 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:51 [DEPRECATION WARNING]: evaluating selinux_reboot_required as a bare variable, this behaviour will go away and you might need to add |bool to the expression in the future. Also see CONDITIONAL_BARE_VARS configuration toggle.. This feature will be removed in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpv3myt2g3/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:60 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": true, "cmd": "echo -e -n \"boolean -D -N\nlogin -D -N\nport -D -N\nfcontext -D -N\n\" | /usr/sbin/semanage -i -", "delta": "0:00:07.348331", "end": "2019-05-26 03:37:56.881728", "rc": 0, "start": "2019-05-26 03:37:49.533397", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpv3myt2g3/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpv3myt2g3/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpv3myt2g3/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:03.571649", "end": "2019-05-26 03:38:01.685099", "rc": 0, "start": "2019-05-26 03:37:58.113450", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpv3myt2g3/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpv3myt2g3/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:118 TASK [Get local modifications - boolean] ******************************************************************************************************************************************************************* task path: /tmp/tmpv3myt2g3/tests/set_selinux_variables.yml:2 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": true, "cmd": ["/usr/sbin/semanage", "boolean", "-l", "-n", "-C"], "delta": "0:00:02.239684", "end": "2019-05-26 03:38:05.004359", "rc": 0, "start": "2019-05-26 03:38:02.764675", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - port] ********************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tests/set_selinux_variables.yml:5 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": true, "cmd": ["/usr/sbin/semanage", "port", "-l", "-n", "-C"], "delta": "0:00:01.698703", "end": "2019-05-26 03:38:07.697897", "rc": 0, "start": "2019-05-26 03:38:05.999194", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - login] ********************************************************************************************************************************************************************* task path: /tmp/tmpv3myt2g3/tests/set_selinux_variables.yml:8 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": true, "cmd": ["/usr/sbin/semanage", "login", "-l", "-n", "-C"], "delta": "0:00:01.649771", "end": "2019-05-26 03:38:10.093232", "rc": 0, "start": "2019-05-26 03:38:08.443461", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - fcontext] ****************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tests/set_selinux_variables.yml:11 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": true, "cmd": ["/usr/sbin/semanage", "fcontext", "-l", "-n", "-C"], "delta": "0:00:01.704866", "end": "2019-05-26 03:38:12.741389", "rc": 0, "start": "2019-05-26 03:38:11.036523", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Check if local modifications are empty - booleans] *************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tests/tests_all_purge.yml:52 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Check if local modifications are empty - port] ******************************************************************************************************************************************************* task path: /tmp/tmpv3myt2g3/tests/tests_all_purge.yml:55 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Check if local modifications are empty - login] ****************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tests/tests_all_purge.yml:58 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Check if local modifications are empty - fcontext] *************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tests/tests_all_purge.yml:61 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Remove Linux System Roles SELinux User] ************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tests/tests_all_purge.yml:65 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": true, "force": false, "name": "sar-user", "remove": true, "state": "absent"} META: ran handlers META: ran handlers PLAY RECAP ************************************************************************************************************************************************************************************************* /home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2 : ok=33 changed=15 unreachable=0 failed=0 skipped=33 rescued=0 ignored=0 + cd /tmp/tmpv3myt2g3/tests; TEST_SUBJECTS=/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_selinux-35-af5a0a6-rhel-8-gdi5465a/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpv3myt2g3/_setup.yml /tmp/tmpv3myt2g3/tests/tests_all_transitions.yml ansible-playbook 2.8.0 config file = /home/till/.ansible.cfg configured module search path = ['/home/till/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.7/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.7.3 (default, May 11 2019, 00:38:04) [GCC 9.1.1 20190503 (Red Hat 9.1.1-1)] Using /home/till/.ansible.cfg as config file PLAYBOOK: _setup.yml *************************************************************************************************************************************************************************************** 2 plays in /tmp/tmpv3myt2g3/_setup.yml PLAY [Fail when only localhost is available] *************************************************************************************************************************************************************** META: ran handlers TASK [debug] *********************************************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/_setup.yml:5 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => { "groups": { "all": [ "/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2" ], "localhost": [ "/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2" ], "subjects": [ "/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2" ], "ungrouped": [] } } TASK [fail] ************************************************************************************************************************************************************************************************ task path: /tmp/tmpv3myt2g3/_setup.yml:7 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY [Setup repos] ***************************************************************************************************************************************************************************************** META: ran handlers TASK [set up internal repositories] ************************************************************************************************************************************************************************ task path: /tmp/tmpv3myt2g3/_setup.yml:16 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true} META: ran handlers META: ran handlers PLAY RECAP ************************************************************************************************************************************************************************************************* /home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2 : ok=2 changed=1 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_all_transitions.yml ************************************************************************************************************************************************************************ 1 plays in /tmp/tmpv3myt2g3/tests/tests_all_transitions.yml PLAY [Test all the possible selinux_state transitions] ***************************************************************************************************************************************************** TASK [Gathering Facts] ************************************************************************************************************************************************************************************* task path: /tmp/tmpv3myt2g3/tests/tests_all_transitions.yml:1 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"ansible_facts": {"ansible_all_ipv4_addresses": ["10.0.2.15"], "ansible_all_ipv6_addresses": ["fec0::5054:ff:fe12:3456", "fe80::5054:ff:fe12:3456"], "ansible_apparmor": {"status": "disabled"}, "ansible_architecture": "x86_64", "ansible_bios_date": "04/01/2014", "ansible_bios_version": "1.12.0-2.fc30", "ansible_cmdline": {"BOOT_IMAGE": "(hd0,msdos1)/boot/vmlinuz-4.18.0-80.el8.x86_64", "console": "ttyS0,115200n8", "crashkernel": "auto", "net.ifnames": "0", "no_timer_check": true, "ro": true, "root": "UUID=884f47c9-a69d-4c5b-915d-6b7c9c74c923"}, "ansible_date_time": {"date": "2019-05-26", "day": "26", "epoch": "1558856330", "hour": "03", "iso8601": "2019-05-26T07:38:50Z", "iso8601_basic": "20190526T033850148085", "iso8601_basic_short": "20190526T033850", "iso8601_micro": "2019-05-26T07:38:50.148240Z", "minute": "38", "month": "05", "second": "50", "time": "03:38:50", "tz": "EDT", "tz_offset": "-0400", "weekday": "Sonntag", "weekday_number": "0", "weeknumber": "20", "year": "2019"}, "ansible_default_ipv4": {"address": "10.0.2.15", "alias": "eth0", "broadcast": "10.0.2.255", "gateway": "10.0.2.2", "interface": "eth0", "macaddress": "52:54:00:12:34:56", "mtu": 1500, "netmask": "255.255.255.0", "network": "10.0.2.0", "type": "ether"}, "ansible_default_ipv6": {"address": "fec0::5054:ff:fe12:3456", "gateway": "fe80::2", "interface": "eth0", "macaddress": "52:54:00:12:34:56", "mtu": 1500, "prefix": "64", "scope": "site", "type": "ether"}, "ansible_device_links": {"ids": {"sr0": ["ata-QEMU_DVD-ROM_QM00003"]}, "labels": {"sr0": ["cidata"]}, "masters": {}, "uuids": {"sr0": ["2019-05-26-09-38-15-00"], "vda1": ["884f47c9-a69d-4c5b-915d-6b7c9c74c923"]}}, "ansible_devices": {"sr0": {"holders": [], "host": "IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]", "links": {"ids": ["ata-QEMU_DVD-ROM_QM00003"], "labels": ["cidata"], "masters": [], "uuids": ["2019-05-26-09-38-15-00"]}, "model": "QEMU DVD-ROM", "partitions": {}, "removable": "1", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "mq-deadline", "sectors": "728", "sectorsize": "2048", "size": "364.00 KB", "support_discard": "0", "vendor": "QEMU", "virtual": 1}, "vda": {"holders": [], "host": "SCSI storage controller: Red Hat, Inc. Virtio block device", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {"vda1": {"holders": [], "links": {"ids": [], "labels": [], "masters": [], "uuids": ["884f47c9-a69d-4c5b-915d-6b7c9c74c923"]}, "sectors": "20969439", "sectorsize": 512, "size": "10.00 GB", "start": "2048", "uuid": "884f47c9-a69d-4c5b-915d-6b7c9c74c923"}}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "mq-deadline", "sectors": "20971520", "sectorsize": "512", "size": "10.00 GB", "support_discard": "0", "vendor": "0x1af4", "virtual": 1}}, "ansible_distribution": "RedHat", "ansible_distribution_file_parsed": true, "ansible_distribution_file_path": "/etc/redhat-release", "ansible_distribution_file_search_string": "Red Hat", "ansible_distribution_file_variety": "RedHat", "ansible_distribution_major_version": "8", "ansible_distribution_release": "Ootpa", "ansible_distribution_version": "8.0", "ansible_dns": {"nameservers": ["10.0.2.3"], "search": ["virt.pnr.lab.eng.rdu2.redhat.com"]}, "ansible_domain": "virt.pnr.lab.eng.rdu2.redhat.com", "ansible_effective_group_id": 0, "ansible_effective_user_id": 0, "ansible_env": {"DBUS_SESSION_BUS_ADDRESS": "unix:path=/run/user/0/bus", "HOME": "/root", "LANG": "de_DE.UTF-8", "LESSOPEN": "||/usr/bin/lesspipe.sh %s", "LOGNAME": "root", "LS_COLORS": "rs=0:di=38;5;33:ln=38;5;51:mh=00:pi=40;38;5;11:so=38;5;13:do=38;5;5:bd=48;5;232;38;5;11:cd=48;5;232;38;5;3:or=48;5;232;38;5;9:mi=01;05;37;41:su=48;5;196;38;5;15:sg=48;5;11;38;5;16:ca=48;5;196;38;5;226:tw=48;5;10;38;5;16:ow=48;5;10;38;5;21:st=48;5;21;38;5;15:ex=38;5;40:*.tar=38;5;9:*.tgz=38;5;9:*.arc=38;5;9:*.arj=38;5;9:*.taz=38;5;9:*.lha=38;5;9:*.lz4=38;5;9:*.lzh=38;5;9:*.lzma=38;5;9:*.tlz=38;5;9:*.txz=38;5;9:*.tzo=38;5;9:*.t7z=38;5;9:*.zip=38;5;9:*.z=38;5;9:*.dz=38;5;9:*.gz=38;5;9:*.lrz=38;5;9:*.lz=38;5;9:*.lzo=38;5;9:*.xz=38;5;9:*.zst=38;5;9:*.tzst=38;5;9:*.bz2=38;5;9:*.bz=38;5;9:*.tbz=38;5;9:*.tbz2=38;5;9:*.tz=38;5;9:*.deb=38;5;9:*.rpm=38;5;9:*.jar=38;5;9:*.war=38;5;9:*.ear=38;5;9:*.sar=38;5;9:*.rar=38;5;9:*.alz=38;5;9:*.ace=38;5;9:*.zoo=38;5;9:*.cpio=38;5;9:*.7z=38;5;9:*.rz=38;5;9:*.cab=38;5;9:*.wim=38;5;9:*.swm=38;5;9:*.dwm=38;5;9:*.esd=38;5;9:*.jpg=38;5;13:*.jpeg=38;5;13:*.mjpg=38;5;13:*.mjpeg=38;5;13:*.gif=38;5;13:*.bmp=38;5;13:*.pbm=38;5;13:*.pgm=38;5;13:*.ppm=38;5;13:*.tga=38;5;13:*.xbm=38;5;13:*.xpm=38;5;13:*.tif=38;5;13:*.tiff=38;5;13:*.png=38;5;13:*.svg=38;5;13:*.svgz=38;5;13:*.mng=38;5;13:*.pcx=38;5;13:*.mov=38;5;13:*.mpg=38;5;13:*.mpeg=38;5;13:*.m2v=38;5;13:*.mkv=38;5;13:*.webm=38;5;13:*.ogm=38;5;13:*.mp4=38;5;13:*.m4v=38;5;13:*.mp4v=38;5;13:*.vob=38;5;13:*.qt=38;5;13:*.nuv=38;5;13:*.wmv=38;5;13:*.asf=38;5;13:*.rm=38;5;13:*.rmvb=38;5;13:*.flc=38;5;13:*.avi=38;5;13:*.fli=38;5;13:*.flv=38;5;13:*.gl=38;5;13:*.dl=38;5;13:*.xcf=38;5;13:*.xwd=38;5;13:*.yuv=38;5;13:*.cgm=38;5;13:*.emf=38;5;13:*.ogv=38;5;13:*.ogx=38;5;13:*.aac=38;5;45:*.au=38;5;45:*.flac=38;5;45:*.m4a=38;5;45:*.mid=38;5;45:*.midi=38;5;45:*.mka=38;5;45:*.mp3=38;5;45:*.mpc=38;5;45:*.ogg=38;5;45:*.ra=38;5;45:*.wav=38;5;45:*.oga=38;5;45:*.opus=38;5;45:*.spx=38;5;45:*.xspf=38;5;45:", "MAIL": "/var/mail/root", "PATH": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin", "PWD": "/root", "SELINUX_LEVEL_REQUESTED": "", "SELINUX_ROLE_REQUESTED": "", "SELINUX_USE_CURRENT_RANGE": "", "SHELL": "/bin/bash", "SHLVL": "2", "SSH_CLIENT": "10.0.2.2 48412 22", "SSH_CONNECTION": "10.0.2.2 48412 10.0.2.15 22", "SSH_TTY": "/dev/pts/0", "TERM": "xterm-256color", "USER": "root", "XDG_RUNTIME_DIR": "/run/user/0", "XDG_SESSION_ID": "1", "_": "/usr/libexec/platform-python"}, "ansible_eth0": {"active": true, "device": "eth0", "features": {"esp_hw_offload": "off [fixed]", "esp_tx_csum_hw_offload": "off [fixed]", "fcoe_mtu": "off [fixed]", "generic_receive_offload": "on", "generic_segmentation_offload": "off [requested on]", "highdma": "on [fixed]", "hw_tc_offload": "off [fixed]", "l2_fwd_offload": "off [fixed]", "large_receive_offload": "off [fixed]", "loopback": "off [fixed]", "netns_local": "off [fixed]", "ntuple_filters": "off [fixed]", "receive_hashing": "off [fixed]", "rx_all": "off [fixed]", "rx_checksumming": "off [fixed]", "rx_fcs": "off [fixed]", "rx_gro_hw": "off [fixed]", "rx_udp_tunnel_port_offload": "off [fixed]", "rx_vlan_filter": "on [fixed]", "rx_vlan_offload": "off [fixed]", "rx_vlan_stag_filter": "off [fixed]", "rx_vlan_stag_hw_parse": "off [fixed]", "scatter_gather": "off", "tcp_segmentation_offload": "off", "tls_hw_record": "off [fixed]", "tls_hw_tx_offload": "off [fixed]", "tx_checksum_fcoe_crc": "off [fixed]", "tx_checksum_ip_generic": "off [fixed]", "tx_checksum_ipv4": "off [fixed]", "tx_checksum_ipv6": "off [fixed]", "tx_checksum_sctp": "off [fixed]", "tx_checksumming": "off", "tx_esp_segmentation": "off [fixed]", "tx_fcoe_segmentation": "off [fixed]", "tx_gre_csum_segmentation": "off [fixed]", "tx_gre_segmentation": "off [fixed]", "tx_gso_partial": "off [fixed]", "tx_gso_robust": "off [fixed]", "tx_ipxip4_segmentation": "off [fixed]", "tx_ipxip6_segmentation": "off [fixed]", "tx_lockless": "off [fixed]", "tx_nocache_copy": "off", "tx_scatter_gather": "off [fixed]", "tx_scatter_gather_fraglist": "off [fixed]", "tx_sctp_segmentation": "off [fixed]", "tx_tcp6_segmentation": "off [fixed]", "tx_tcp_ecn_segmentation": "off [fixed]", "tx_tcp_mangleid_segmentation": "off [fixed]", "tx_tcp_segmentation": "off [fixed]", "tx_udp_segmentation": "off [fixed]", "tx_udp_tnl_csum_segmentation": "off [fixed]", "tx_udp_tnl_segmentation": "off [fixed]", "tx_vlan_offload": "off [fixed]", "tx_vlan_stag_hw_insert": "off [fixed]", "udp_fragmentation_offload": "off", "vlan_challenged": "off [fixed]"}, "hw_timestamp_filters": [], "ipv4": {"address": "10.0.2.15", "broadcast": "10.0.2.255", "netmask": "255.255.255.0", "network": "10.0.2.0"}, "ipv6": [{"address": "fec0::5054:ff:fe12:3456", "prefix": "64", "scope": "site"}, {"address": "fe80::5054:ff:fe12:3456", "prefix": "64", "scope": "link"}], "macaddress": "52:54:00:12:34:56", "module": "virtio_net", "mtu": 1500, "pciid": "virtio0", "promisc": false, "speed": -1, "timestamping": ["tx_software", "rx_software", "software"], "type": "ether"}, "ansible_fibre_channel_wwn": [], "ansible_fips": false, "ansible_form_factor": "Other", "ansible_fqdn": "ibm-p8-kvm-03-guest-02.virt.pnr.lab.eng.rdu2.redhat.com", "ansible_hostname": "ibm-p8-kvm-03-guest-02", "ansible_hostnqn": "", "ansible_interfaces": ["lo", "eth0"], "ansible_is_chroot": false, "ansible_iscsi_iqn": "", "ansible_kernel": "4.18.0-80.el8.x86_64", "ansible_lo": {"active": true, "device": "lo", "features": {"esp_hw_offload": "off [fixed]", "esp_tx_csum_hw_offload": "off [fixed]", "fcoe_mtu": "off [fixed]", "generic_receive_offload": "on", "generic_segmentation_offload": "on", "highdma": "on [fixed]", "hw_tc_offload": "off [fixed]", "l2_fwd_offload": "off [fixed]", "large_receive_offload": "off [fixed]", "loopback": "on [fixed]", "netns_local": "on [fixed]", "ntuple_filters": "off [fixed]", "receive_hashing": "off [fixed]", "rx_all": "off [fixed]", "rx_checksumming": "on [fixed]", "rx_fcs": "off [fixed]", "rx_gro_hw": "off [fixed]", "rx_udp_tunnel_port_offload": "off [fixed]", "rx_vlan_filter": "off [fixed]", "rx_vlan_offload": "off [fixed]", "rx_vlan_stag_filter": "off [fixed]", "rx_vlan_stag_hw_parse": "off [fixed]", "scatter_gather": "on", "tcp_segmentation_offload": "on", "tls_hw_record": "off [fixed]", "tls_hw_tx_offload": "off [fixed]", "tx_checksum_fcoe_crc": "off [fixed]", "tx_checksum_ip_generic": "on [fixed]", "tx_checksum_ipv4": "off [fixed]", "tx_checksum_ipv6": "off [fixed]", "tx_checksum_sctp": "on [fixed]", "tx_checksumming": "on", "tx_esp_segmentation": "off [fixed]", "tx_fcoe_segmentation": "off [fixed]", "tx_gre_csum_segmentation": "off [fixed]", "tx_gre_segmentation": "off [fixed]", "tx_gso_partial": "off [fixed]", "tx_gso_robust": "off [fixed]", "tx_ipxip4_segmentation": "off [fixed]", "tx_ipxip6_segmentation": "off [fixed]", "tx_lockless": "on [fixed]", "tx_nocache_copy": "off [fixed]", "tx_scatter_gather": "on [fixed]", "tx_scatter_gather_fraglist": "on [fixed]", "tx_sctp_segmentation": "on", "tx_tcp6_segmentation": "on", "tx_tcp_ecn_segmentation": "on", "tx_tcp_mangleid_segmentation": "on", "tx_tcp_segmentation": "on", "tx_udp_segmentation": "off [fixed]", "tx_udp_tnl_csum_segmentation": "off [fixed]", "tx_udp_tnl_segmentation": "off [fixed]", "tx_vlan_offload": "off [fixed]", "tx_vlan_stag_hw_insert": "off [fixed]", "udp_fragmentation_offload": "off", "vlan_challenged": "on [fixed]"}, "hw_timestamp_filters": [], "ipv4": {"address": "127.0.0.1", "broadcast": "host", "netmask": "255.0.0.0", "network": "127.0.0.0"}, "ipv6": [{"address": "::1", "prefix": "128", "scope": "host"}], "mtu": 65536, "promisc": false, "timestamping": ["tx_software", "rx_software", "software"], "type": "loopback"}, "ansible_local": {}, "ansible_lsb": {}, "ansible_machine": "x86_64", "ansible_machine_id": "4236279353c54b19a6282773a186fe54", "ansible_memfree_mb": 351, "ansible_memory_mb": {"nocache": {"free": 614, "used": 206}, "real": {"free": 351, "total": 820, "used": 469}, "swap": {"cached": 0, "free": 0, "total": 0, "used": 0}}, "ansible_memtotal_mb": 820, "ansible_mounts": [{"block_available": 2290671, "block_size": 4096, "block_total": 2618619, "block_used": 327948, "device": "/dev/vda1", "fstype": "xfs", "inode_available": 5207078, "inode_total": 5242352, "inode_used": 35274, "mount": "/", "options": "rw,seclabel,relatime,attr2,inode64,noquota", "size_available": 9382588416, "size_total": 10725863424, "uuid": "884f47c9-a69d-4c5b-915d-6b7c9c74c923"}], "ansible_nodename": "ibm-p8-kvm-03-guest-02.virt.pnr.lab.eng.rdu2.redhat.com", "ansible_os_family": "RedHat", "ansible_pkg_mgr": "dnf", "ansible_proc_cmdline": {"BOOT_IMAGE": "(hd0,msdos1)/boot/vmlinuz-4.18.0-80.el8.x86_64", "console": ["ttyS0", "ttyS0,115200n8"], "crashkernel": "auto", "net.ifnames": "0", "no_timer_check": true, "ro": true, "root": "UUID=884f47c9-a69d-4c5b-915d-6b7c9c74c923"}, "ansible_processor": ["0", "GenuineIntel", "Intel(R) Core(TM) i7-7600U CPU @ 2.80GHz", "1", "GenuineIntel", "Intel(R) Core(TM) i7-7600U CPU @ 2.80GHz", "2", "GenuineIntel", "Intel(R) Core(TM) i7-7600U CPU @ 2.80GHz"], "ansible_processor_cores": 1, "ansible_processor_count": 3, "ansible_processor_threads_per_core": 1, "ansible_processor_vcpus": 3, "ansible_product_name": "Standard PC (i440FX + PIIX, 1996)", "ansible_product_serial": "NA", "ansible_product_uuid": "NA", "ansible_product_version": "pc-i440fx-3.1", "ansible_python": {"executable": "/usr/libexec/platform-python", "has_sslcontext": true, "type": "cpython", "version": {"major": 3, "micro": 8, "minor": 6, "releaselevel": "final", "serial": 0}, "version_info": [3, 6, 8, "final", 0]}, "ansible_python_version": "3.6.8", "ansible_real_group_id": 0, "ansible_real_user_id": 0, "ansible_selinux": {"config_mode": "enforcing", "mode": "enforcing", "policyvers": 31, "status": "enabled", "type": "targeted"}, "ansible_selinux_python_present": true, "ansible_service_mgr": "systemd", "ansible_ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBJ2ItcbwlFgc14yaKtnhvWq263kvZ4m9++TMmATb9v+Q38tkAkOaD6IlTW+iAdZmdwNvPGqMAPiUDnVycbdR+FA=", "ansible_ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAILXHiQB7BHfUNtTSQggNM+WbOJfQd7DjHguuNS59Mn1V", "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABAQDEXVccIxr6DCht5ieC+Zwj4nVp4eEypcM7hQE0OQWbM28cp7Gu2X2r8HvUmevuzLFwdKKTZre1bl/vzT2Siur9ljZPh91aKIUyOz3vxWobanGhZAecdvBYui05R5Bow3+UbCoO5TBKce1w+nUDVdqsE8HgGJcE2KVcM7tJSQHubU5PRqlwzCQ/94GGRAIy5J5nVtmYQVuTXgfA2DinD4WdzTvEPCoFtK9WUECFbIThwZOKpnj1/g+Llv0kn4flDrA9vEFiz9DfgobfReI7I7eRzG0MJ1Xpur1FT/uFnMQB7SW2N14Xe9VsIXJoGdkK3LZISkwpI57YbewjvAPfsP6p", "ansible_swapfree_mb": 0, "ansible_swaptotal_mb": 0, "ansible_system": "Linux", "ansible_system_capabilities": ["cap_chown", "cap_dac_override", "cap_dac_read_search", "cap_fowner", "cap_fsetid", "cap_kill", "cap_setgid", "cap_setuid", "cap_setpcap", "cap_linux_immutable", "cap_net_bind_service", "cap_net_broadcast", "cap_net_admin", "cap_net_raw", "cap_ipc_lock", "cap_ipc_owner", "cap_sys_module", "cap_sys_rawio", "cap_sys_chroot", "cap_sys_ptrace", "cap_sys_pacct", "cap_sys_admin", "cap_sys_boot", "cap_sys_nice", "cap_sys_resource", "cap_sys_time", "cap_sys_tty_config", "cap_mknod", "cap_lease", "cap_audit_write", "cap_audit_control", "cap_setfcap", "cap_mac_override", "cap_mac_admin", "cap_syslog", "cap_wake_alarm", "cap_block_suspend", "cap_audit_read+ep"], "ansible_system_capabilities_enforced": "True", "ansible_system_vendor": "QEMU", "ansible_uptime_seconds": 31, "ansible_user_dir": "/root", "ansible_user_gecos": "root", "ansible_user_gid": 0, "ansible_user_id": "root", "ansible_user_shell": "/bin/bash", "ansible_user_uid": 0, "ansible_userspace_architecture": "x86_64", "ansible_userspace_bits": "64", "ansible_virtualization_role": "guest", "ansible_virtualization_type": "kvm", "gather_subset": ["all"], "module_setup": true}, "changed": false} META: ran handlers TASK [save config] ***************************************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tests/tests_all_transitions.yml:11 included: /tmp/tmpv3myt2g3/tests/selinux_config_save.yml for /home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2 TASK [Backup original /etc/selinux/config] ***************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tests/selinux_config_save.yml:1 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": true, "checksum": "61a40e1faa78b234462d16dffbdb3fb869442406", "dest": "/etc/selinux/config.test_selinux_save", "gid": 0, "group": "root", "md5sum": "eab350e0c5241d4394c2099bf86e9312", "mode": "0644", "owner": "root", "secontext": "system_u:object_r:selinux_config_t:s0", "size": 548, "src": "/etc/selinux/config", "state": "file", "uid": 0} TASK [test all the possible state transitions] ************************************************************************************************************************************************************* task path: /tmp/tmpv3myt2g3/tests/tests_all_transitions.yml:14 included: /tmp/tmpv3myt2g3/tests/selinux_test_transitions.yml for /home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2 included: /tmp/tmpv3myt2g3/tests/selinux_test_transitions.yml for /home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2 included: /tmp/tmpv3myt2g3/tests/selinux_test_transitions.yml for /home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2 included: /tmp/tmpv3myt2g3/tests/selinux_test_transitions.yml for /home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2 included: /tmp/tmpv3myt2g3/tests/selinux_test_transitions.yml for /home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2 included: /tmp/tmpv3myt2g3/tests/selinux_test_transitions.yml for /home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2 included: /tmp/tmpv3myt2g3/tests/selinux_test_transitions.yml for /home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2 included: /tmp/tmpv3myt2g3/tests/selinux_test_transitions.yml for /home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2 included: /tmp/tmpv3myt2g3/tests/selinux_test_transitions.yml for /home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2 TASK [display transition name] ***************************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tests/selinux_test_transitions.yml:1 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => { "msg": "testing transition permissive -> permissive" } TASK [setup the initial state] ***************************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tests/selinux_test_transitions.yml:5 included: /tmp/tmpv3myt2g3/tests/selinux_apply_reboot.yml for /home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2 TASK [include_role : selinux] ****************************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tests/selinux_apply_reboot.yml:3 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpv3myt2g3/tasks/main.yml:2 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpv3myt2g3/tasks/main.yml:10 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: libselinux-python3", "Installed: policycoreutils-python3"]} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:22 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: policycoreutils-python-utils"]} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:31 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": true, "configfile": "/etc/selinux/config", "msg": "SELinux state changed from 'enforcing' to 'permissive', Config SELinux state changed from 'enforcing' to 'permissive'", "policy": "targeted", "reboot_required": false, "state": "permissive"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:51 [DEPRECATION WARNING]: evaluating selinux_reboot_required as a bare variable, this behaviour will go away and you might need to add |bool to the expression in the future. Also see CONDITIONAL_BARE_VARS configuration toggle.. This feature will be removed in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpv3myt2g3/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpv3myt2g3/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpv3myt2g3/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpv3myt2g3/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:04.239550", "end": "2019-05-26 03:39:25.411276", "rc": 0, "start": "2019-05-26 03:39:21.171726", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpv3myt2g3/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpv3myt2g3/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:118 TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tests/selinux_test_transitions.yml:10 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] TASK [check that initial state has been set up properly] *************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tests/selinux_test_transitions.yml:14 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [save the initial state] ****************************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tests/selinux_test_transitions.yml:18 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"ansible_facts": {"initial_selinux_fact": {"config_mode": "permissive", "mode": "permissive", "policyvers": 31, "status": "enabled", "type": "targeted"}}, "changed": false} TASK [apply the role without parameters] ******************************************************************************************************************************************************************* task path: /tmp/tmpv3myt2g3/tests/selinux_test_transitions.yml:22 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpv3myt2g3/tasks/main.yml:2 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpv3myt2g3/tasks/main.yml:10 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: libselinux-python3", "Installed: policycoreutils-python3"]} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:22 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: policycoreutils-python-utils"]} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:31 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:51 [DEPRECATION WARNING]: evaluating selinux_reboot_required as a bare variable, this behaviour will go away and you might need to add |bool to the expression in the future. Also see CONDITIONAL_BARE_VARS configuration toggle.. This feature will be removed in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpv3myt2g3/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpv3myt2g3/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpv3myt2g3/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpv3myt2g3/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:04.459635", "end": "2019-05-26 03:39:43.493137", "rc": 0, "start": "2019-05-26 03:39:39.033502", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpv3myt2g3/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpv3myt2g3/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:118 TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tests/selinux_test_transitions.yml:26 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] TASK [check that the run w/o parameters has not changed anything] ****************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tests/selinux_test_transitions.yml:30 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [apply the desired state if possible without reboot] ************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tests/selinux_test_transitions.yml:34 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpv3myt2g3/tasks/main.yml:2 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpv3myt2g3/tasks/main.yml:10 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: libselinux-python3", "Installed: policycoreutils-python3"]} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:22 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: policycoreutils-python-utils"]} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:31 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "configfile": "/etc/selinux/config", "msg": "", "policy": "targeted", "reboot_required": false, "state": "permissive"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:51 [DEPRECATION WARNING]: evaluating selinux_reboot_required as a bare variable, this behaviour will go away and you might need to add |bool to the expression in the future. Also see CONDITIONAL_BARE_VARS configuration toggle.. This feature will be removed in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpv3myt2g3/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpv3myt2g3/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpv3myt2g3/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpv3myt2g3/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:04.739227", "end": "2019-05-26 03:40:02.722419", "rc": 0, "start": "2019-05-26 03:39:57.983192", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpv3myt2g3/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpv3myt2g3/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:118 TASK [apply the desired state if necessary with reboot] **************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tests/selinux_test_transitions.yml:44 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tests/selinux_test_transitions.yml:52 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] TASK [check that something changed if it should have] ****************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tests/selinux_test_transitions.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check that nothing changed if it should not have] **************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tests/selinux_test_transitions.yml:61 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [check that desired state has been applied properly] ************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tests/selinux_test_transitions.yml:66 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [check that desired state has been saved properly] **************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tests/selinux_test_transitions.yml:70 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [display transition name] ***************************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tests/selinux_test_transitions.yml:1 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => { "msg": "testing transition permissive -> enforcing" } TASK [setup the initial state] ***************************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tests/selinux_test_transitions.yml:5 included: /tmp/tmpv3myt2g3/tests/selinux_apply_reboot.yml for /home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2 TASK [include_role : selinux] ****************************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tests/selinux_apply_reboot.yml:3 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpv3myt2g3/tasks/main.yml:2 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpv3myt2g3/tasks/main.yml:10 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: libselinux-python3", "Installed: policycoreutils-python3"]} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:22 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: policycoreutils-python-utils"]} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:31 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "configfile": "/etc/selinux/config", "msg": "", "policy": "targeted", "reboot_required": false, "state": "permissive"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:51 [DEPRECATION WARNING]: evaluating selinux_reboot_required as a bare variable, this behaviour will go away and you might need to add |bool to the expression in the future. Also see CONDITIONAL_BARE_VARS configuration toggle.. This feature will be removed in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpv3myt2g3/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpv3myt2g3/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpv3myt2g3/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpv3myt2g3/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:03.932220", "end": "2019-05-26 03:40:21.488496", "rc": 0, "start": "2019-05-26 03:40:17.556276", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpv3myt2g3/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpv3myt2g3/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:118 TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tests/selinux_test_transitions.yml:10 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] TASK [check that initial state has been set up properly] *************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tests/selinux_test_transitions.yml:14 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [save the initial state] ****************************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tests/selinux_test_transitions.yml:18 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"ansible_facts": {"initial_selinux_fact": {"config_mode": "permissive", "mode": "permissive", "policyvers": 31, "status": "enabled", "type": "targeted"}}, "changed": false} TASK [apply the role without parameters] ******************************************************************************************************************************************************************* task path: /tmp/tmpv3myt2g3/tests/selinux_test_transitions.yml:22 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpv3myt2g3/tasks/main.yml:2 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpv3myt2g3/tasks/main.yml:10 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: libselinux-python3", "Installed: policycoreutils-python3"]} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:22 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: policycoreutils-python-utils"]} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:31 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:51 [DEPRECATION WARNING]: evaluating selinux_reboot_required as a bare variable, this behaviour will go away and you might need to add |bool to the expression in the future. Also see CONDITIONAL_BARE_VARS configuration toggle.. This feature will be removed in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpv3myt2g3/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpv3myt2g3/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpv3myt2g3/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpv3myt2g3/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:04.126253", "end": "2019-05-26 03:40:39.948594", "rc": 0, "start": "2019-05-26 03:40:35.822341", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpv3myt2g3/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpv3myt2g3/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:118 TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tests/selinux_test_transitions.yml:26 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] TASK [check that the run w/o parameters has not changed anything] ****************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tests/selinux_test_transitions.yml:30 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [apply the desired state if possible without reboot] ************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tests/selinux_test_transitions.yml:34 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpv3myt2g3/tasks/main.yml:2 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpv3myt2g3/tasks/main.yml:10 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: libselinux-python3", "Installed: policycoreutils-python3"]} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:22 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: policycoreutils-python-utils"]} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:31 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": true, "configfile": "/etc/selinux/config", "msg": "SELinux state changed from 'permissive' to 'enforcing', Config SELinux state changed from 'permissive' to 'enforcing'", "policy": "targeted", "reboot_required": false, "state": "enforcing"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:51 [DEPRECATION WARNING]: evaluating selinux_reboot_required as a bare variable, this behaviour will go away and you might need to add |bool to the expression in the future. Also see CONDITIONAL_BARE_VARS configuration toggle.. This feature will be removed in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpv3myt2g3/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpv3myt2g3/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpv3myt2g3/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpv3myt2g3/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:03.735922", "end": "2019-05-26 03:40:58.273590", "rc": 0, "start": "2019-05-26 03:40:54.537668", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpv3myt2g3/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpv3myt2g3/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:118 TASK [apply the desired state if necessary with reboot] **************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tests/selinux_test_transitions.yml:44 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tests/selinux_test_transitions.yml:52 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] TASK [check that something changed if it should have] ****************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tests/selinux_test_transitions.yml:56 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [check that nothing changed if it should not have] **************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tests/selinux_test_transitions.yml:61 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check that desired state has been applied properly] ************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tests/selinux_test_transitions.yml:66 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [check that desired state has been saved properly] **************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tests/selinux_test_transitions.yml:70 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [display transition name] ***************************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tests/selinux_test_transitions.yml:1 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => { "msg": "testing transition permissive -> disabled" } TASK [setup the initial state] ***************************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tests/selinux_test_transitions.yml:5 included: /tmp/tmpv3myt2g3/tests/selinux_apply_reboot.yml for /home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2 TASK [include_role : selinux] ****************************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tests/selinux_apply_reboot.yml:3 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpv3myt2g3/tasks/main.yml:2 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpv3myt2g3/tasks/main.yml:10 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: libselinux-python3", "Installed: policycoreutils-python3"]} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:22 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: policycoreutils-python-utils"]} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:31 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": true, "configfile": "/etc/selinux/config", "msg": "SELinux state changed from 'enforcing' to 'permissive', Config SELinux state changed from 'enforcing' to 'permissive'", "policy": "targeted", "reboot_required": false, "state": "permissive"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:51 [DEPRECATION WARNING]: evaluating selinux_reboot_required as a bare variable, this behaviour will go away and you might need to add |bool to the expression in the future. Also see CONDITIONAL_BARE_VARS configuration toggle.. This feature will be removed in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpv3myt2g3/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpv3myt2g3/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpv3myt2g3/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpv3myt2g3/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:03.941303", "end": "2019-05-26 03:41:15.264653", "rc": 0, "start": "2019-05-26 03:41:11.323350", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpv3myt2g3/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpv3myt2g3/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:118 TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tests/selinux_test_transitions.yml:10 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] TASK [check that initial state has been set up properly] *************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tests/selinux_test_transitions.yml:14 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [save the initial state] ****************************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tests/selinux_test_transitions.yml:18 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"ansible_facts": {"initial_selinux_fact": {"config_mode": "permissive", "mode": "permissive", "policyvers": 31, "status": "enabled", "type": "targeted"}}, "changed": false} TASK [apply the role without parameters] ******************************************************************************************************************************************************************* task path: /tmp/tmpv3myt2g3/tests/selinux_test_transitions.yml:22 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpv3myt2g3/tasks/main.yml:2 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpv3myt2g3/tasks/main.yml:10 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: libselinux-python3", "Installed: policycoreutils-python3"]} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:22 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: policycoreutils-python-utils"]} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:31 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:51 [DEPRECATION WARNING]: evaluating selinux_reboot_required as a bare variable, this behaviour will go away and you might need to add |bool to the expression in the future. Also see CONDITIONAL_BARE_VARS configuration toggle.. This feature will be removed in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpv3myt2g3/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpv3myt2g3/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpv3myt2g3/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpv3myt2g3/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:03.645971", "end": "2019-05-26 03:41:29.311337", "rc": 0, "start": "2019-05-26 03:41:25.665366", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpv3myt2g3/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpv3myt2g3/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:118 TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tests/selinux_test_transitions.yml:26 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] TASK [check that the run w/o parameters has not changed anything] ****************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tests/selinux_test_transitions.yml:30 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [apply the desired state if possible without reboot] ************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tests/selinux_test_transitions.yml:34 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [apply the desired state if necessary with reboot] **************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tests/selinux_test_transitions.yml:44 included: /tmp/tmpv3myt2g3/tests/selinux_apply_reboot.yml for /home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2 TASK [include_role : selinux] ****************************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tests/selinux_apply_reboot.yml:3 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpv3myt2g3/tasks/main.yml:2 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpv3myt2g3/tasks/main.yml:10 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: libselinux-python3", "Installed: policycoreutils-python3"]} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:22 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: policycoreutils-python-utils"]} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:31 [WARNING]: SELinux state change will take effect next reboot changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": true, "configfile": "/etc/selinux/config", "msg": "Config SELinux state changed from 'permissive' to 'disabled'", "policy": "targeted", "reboot_required": true, "state": "disabled"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"ansible_facts": {"selinux_reboot_required": true}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:51 [DEPRECATION WARNING]: evaluating selinux_reboot_required as a bare variable, this behaviour will go away and you might need to add |bool to the expression in the future. Also see CONDITIONAL_BARE_VARS configuration toggle.. This feature will be removed in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. fatal: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2]: FAILED! => {"changed": false, "msg": "Reboot is required to apply changes. Re-execute the role after boot."} TASK [handle errors] *************************************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tests/selinux_apply_reboot.yml:7 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [restart managed host] ******************************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tests/selinux_apply_reboot.yml:12 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"ansible_job_id": "610724108414.9859", "changed": true, "finished": 0, "results_file": "/root/.ansible_async/610724108414.9859", "started": 1} TASK [wait for managed host to come back] ****************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tests/selinux_apply_reboot.yml:18 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "elapsed": 35} TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tests/selinux_test_transitions.yml:52 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] TASK [check that something changed if it should have] ****************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tests/selinux_test_transitions.yml:56 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [check that nothing changed if it should not have] **************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tests/selinux_test_transitions.yml:61 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check that desired state has been applied properly] ************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tests/selinux_test_transitions.yml:66 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [check that desired state has been saved properly] **************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tests/selinux_test_transitions.yml:70 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [display transition name] ***************************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tests/selinux_test_transitions.yml:1 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => { "msg": "testing transition enforcing -> permissive" } TASK [setup the initial state] ***************************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tests/selinux_test_transitions.yml:5 included: /tmp/tmpv3myt2g3/tests/selinux_apply_reboot.yml for /home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2 TASK [include_role : selinux] ****************************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tests/selinux_apply_reboot.yml:3 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpv3myt2g3/tasks/main.yml:2 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpv3myt2g3/tasks/main.yml:10 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: libselinux-python3", "Installed: policycoreutils-python3"]} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:22 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: policycoreutils-python-utils"]} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:31 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:38 [WARNING]: Reboot is required to set SELinux state to 'enforcing' changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": true, "configfile": "/etc/selinux/config", "msg": "Config SELinux state changed from 'disabled' to 'enforcing'", "policy": "targeted", "reboot_required": true, "state": "enforcing"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"ansible_facts": {"selinux_reboot_required": true}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tasks/main.yml:51 [DEPRECATION WARNING]: evaluating selinux_reboot_required as a bare variable, this behaviour will go away and you might need to add |bool to the expression in the future. Also see CONDITIONAL_BARE_VARS configuration toggle.. This feature will be removed in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. fatal: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2]: FAILED! => {"changed": false, "msg": "Reboot is required to apply changes. Re-execute the role after boot."} TASK [handle errors] *************************************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tests/selinux_apply_reboot.yml:7 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [restart managed host] ******************************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tests/selinux_apply_reboot.yml:12 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2] => {"ansible_job_id": "312567357579.6046", "changed": true, "finished": 0, "results_file": "/root/.ansible_async/312567357579.6046", "started": 1} TASK [wait for managed host to come back] ****************************************************************************************************************************************************************** task path: /tmp/tmpv3myt2g3/tests/selinux_apply_reboot.yml:18 fatal: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2]: FAILED! => {"changed": false, "elapsed": 131, "msg": "timed out waiting for ping module test success: Failed to connect to the host via ssh: ssh: connect to host 127.0.0.3 port 5035: Connection timed out"} PLAY RECAP ************************************************************************************************************************************************************************************************* /home/till/lsr-test-harness-files/cache/rhel-guest-image-8.0-1854.x86_64.qcow2 : ok=108 changed=17 unreachable=0 failed=1 skipped=136 rescued=2 ignored=0