+ cd /tmp/tmpgy_izz8m/tests; TEST_SUBJECTS=/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_selinux-35-af5a0a6-rhel-7-c5g40ows/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpgy_izz8m/_setup.yml /tmp/tmpgy_izz8m/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/tmpgy_izz8m/_setup.yml PLAY [Fail when only localhost is available] *************************************************************************************************************************************************************** META: ran handlers TASK [debug] *********************************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/_setup.yml:5 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "groups": { "all": [ "/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2" ], "localhost": [ "/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2" ], "subjects": [ "/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2" ], "ungrouped": [] } } TASK [fail] ************************************************************************************************************************************************************************************************ task path: /tmp/tmpgy_izz8m/_setup.yml:7 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.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/tmpgy_izz8m/_setup.yml:16 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.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-7.6-210.x86_64.qcow2 : ok=2 changed=1 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 statically imported: /tmp/tmpgy_izz8m/tests/set_selinux_variables.yml statically imported: /tmp/tmpgy_izz8m/tests/set_selinux_variables.yml PLAYBOOK: tests_all_purge.yml ****************************************************************************************************************************************************************************** 1 plays in /tmp/tmpgy_izz8m/tests/tests_all_purge.yml PLAY [Test that selinux_all_purge drops local modifications, defaults to no] ******************************************************************************************************************************* TASK [Gathering Facts] ************************************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tests/tests_all_purge.yml:1 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.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": "/boot/vmlinuz-3.10.0-957.el7.x86_64", "LANG": "en_US.UTF-8", "console": "ttyS0,115200n8", "crashkernel": "auto", "net.ifnames": "0", "no_timer_check": true, "ro": true, "root": "UUID=6c248666-70f5-4037-8b24-17100c2f5c1e"}, "ansible_date_time": {"date": "2019-05-26", "day": "26", "epoch": "1558876279", "hour": "09", "iso8601": "2019-05-26T13:11:19Z", "iso8601_basic": "20190526T091119714245", "iso8601_basic_short": "20190526T091119", "iso8601_micro": "2019-05-26T13:11:19.714479Z", "minute": "11", "month": "05", "second": "19", "time": "09:11:19", "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-15-10-22-00"], "vda1": ["6c248666-70f5-4037-8b24-17100c2f5c1e"]}}, "ansible_devices": {"fd0": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "1", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "deadline", "sectors": "8", "sectorsize": "512", "size": "4.00 KB", "support_discard": "0", "vendor": null, "virtual": 1}, "sr0": {"holders": [], "host": "", "links": {"ids": ["ata-QEMU_DVD-ROM_QM00003"], "labels": ["cidata"], "masters": [], "uuids": ["2019-05-26-15-10-22-00"]}, "model": "QEMU DVD-ROM", "partitions": {}, "removable": "1", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "deadline", "sectors": "728", "sectorsize": "2048", "size": "364.00 KB", "support_discard": "0", "vendor": "QEMU", "virtual": 1}, "vda": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {"vda1": {"holders": [], "links": {"ids": [], "labels": [], "masters": [], "uuids": ["6c248666-70f5-4037-8b24-17100c2f5c1e"]}, "sectors": "20969439", "sectorsize": 512, "size": "10.00 GB", "start": "2048", "uuid": "6c248666-70f5-4037-8b24-17100c2f5c1e"}}, "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": "7", "ansible_distribution_release": "Maipo", "ansible_distribution_version": "7.6", "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": {"HOME": "/root", "LANG": "de_DE.UTF-8", "LESSOPEN": "||/usr/bin/lesspipe.sh %s", "LOGNAME": "root", "LS_COLORS": "rs=0:di=38;5;27:ln=38;5;51:mh=44;38;5;15: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=05;48;5;232;38;5;15: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;34:*.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:*.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:*.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:*.jpg=38;5;13:*.jpeg=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:*.axv=38;5;13:*.anx=38;5;13:*.ogv=38;5;13:*.ogx=38;5;13:*.aac=38;5;45:*.au=38;5;45:*.flac=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:*.axa=38;5;45:*.oga=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 58310 22", "SSH_CONNECTION": "10.0.2.2 58310 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/bin/python2"}, "ansible_eth0": {"active": true, "device": "eth0", "features": {"busy_poll": "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", "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_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_ipip_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_sit_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_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 [fixed]", "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, "timestamping": ["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": "3.10.0-957.el7.x86_64", "ansible_lo": {"active": true, "device": "lo", "features": {"busy_poll": "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", "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_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_ipip_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_sit_segmentation": "off [fixed]", "tx_tcp6_segmentation": "on", "tx_tcp_ecn_segmentation": "on", "tx_tcp_mangleid_segmentation": "on", "tx_tcp_segmentation": "on", "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": "on", "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": ["rx_software", "software"], "type": "loopback"}, "ansible_local": {}, "ansible_lsb": {}, "ansible_machine": "x86_64", "ansible_machine_id": "7cca92ffaa664581a8c485ff895a009e", "ansible_memfree_mb": 743, "ansible_memory_mb": {"nocache": {"free": 865, "used": 125}, "real": {"free": 743, "total": 990, "used": 247}, "swap": {"cached": 0, "free": 0, "total": 0, "used": 0}}, "ansible_memtotal_mb": 990, "ansible_mounts": [{"block_available": 2378299, "block_size": 4096, "block_total": 2618619, "block_used": 240320, "device": "/dev/vda1", "fstype": "xfs", "inode_available": 5213930, "inode_total": 5242352, "inode_used": 28422, "mount": "/", "options": "rw,seclabel,relatime,attr2,inode64,noquota", "size_available": 9741512704, "size_total": 10725863424, "uuid": "6c248666-70f5-4037-8b24-17100c2f5c1e"}], "ansible_nodename": "ibm-p8-kvm-03-guest-02.virt.pnr.lab.eng.rdu2.redhat.com", "ansible_os_family": "RedHat", "ansible_pkg_mgr": "yum", "ansible_proc_cmdline": {"BOOT_IMAGE": "/boot/vmlinuz-3.10.0-957.el7.x86_64", "LANG": "en_US.UTF-8", "console": ["tty0", "ttyS0,115200n8"], "crashkernel": "auto", "net.ifnames": "0", "no_timer_check": true, "ro": true, "root": "UUID=6c248666-70f5-4037-8b24-17100c2f5c1e"}, "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/bin/python2", "has_sslcontext": true, "type": "CPython", "version": {"major": 2, "micro": 5, "minor": 7, "releaselevel": "final", "serial": 0}, "version_info": [2, 7, 5, "final", 0]}, "ansible_python_version": "2.7.5", "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": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBF9RtdyV2qvxp00NL1re7WUYGncnDiIiYULmbfP9MGC9060RIz3zkYserBe7KQPRjtJexsa/gwLgJOrEgs4P+VQ=", "ansible_ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAIHjwoGtDfBSefHpD/fcEMDwHoEfF7zZbaJw6SzY+xa1c", "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABAQC3S2SmIOkdhOlcm7JEB0nbeJlH2WxCRDeD6uEAEiI94L9yPYOJB/p/tJG80aIyVZMZ3pgAc2nnGH2i7kNnnqw9eQxQhV/rUp+JXHPTN0i3bZxJqtHyEngYskNQ/P+E50/2hNLM8IitvGKx205gljbuo7pIqQcTn79P0yy5uo/l51iJ5IqU0o+kOg4ZBB397+TPHKaZOSJwhwwBrKPl9wgBwSoujKBfca9FpCFCtWM/y5TXgSrvWcWKzkVTXFuSF8tDIKHrSoB8hXzwww0RTQZhoS7vZs6tegkSsYsgPX1heEn3o7FMgheeJNjz2i/aWeu93Xgo+eDIzjfcp3jNYaVX", "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", "35", "36+ep"], "ansible_system_capabilities_enforced": "True", "ansible_system_vendor": "QEMU", "ansible_uptime_seconds": 52, "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/tmpgy_izz8m/tests/tests_all_purge.yml:12 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Add a Linux System Roles SELinux User] *************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/tests_all_purge.yml:19 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.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/tmpgy_izz8m/tests/tests_all_purge.yml:24 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.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:10.344914", "end": "2019-05-26 09:11:33.704260", "rc": 0, "start": "2019-05-26 09:11:23.359346", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Apply role with defaults, should not drop local modifications] *************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/tests_all_purge.yml:27 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-14.1.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-29.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:31 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/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-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpgy_izz8m/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:04.976470", "end": "2019-05-26 09:11:46.431066", "rc": 0, "start": "2019-05-26 09:11:41.454596", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpgy_izz8m/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:118 TASK [Get local modifications - boolean] ******************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tests/set_selinux_variables.yml:2 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["/usr/sbin/semanage", "boolean", "-l", "-n", "-C"], "delta": "0:00:00.461966", "end": "2019-05-26 09:11:48.514723", "rc": 0, "start": "2019-05-26 09:11:48.052757", "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/tmpgy_izz8m/tests/set_selinux_variables.yml:5 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["/usr/sbin/semanage", "port", "-l", "-n", "-C"], "delta": "0:00:00.594232", "end": "2019-05-26 09:11:50.229565", "rc": 0, "start": "2019-05-26 09:11:49.635333", "stderr": "", "stderr_lines": [], "stdout": "ssh_port_t tcp 22100", "stdout_lines": ["ssh_port_t tcp 22100"]} TASK [Get local modifications - login] ********************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tests/set_selinux_variables.yml:8 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["/usr/sbin/semanage", "login", "-l", "-n", "-C"], "delta": "0:00:00.399916", "end": "2019-05-26 09:11:51.822827", "rc": 0, "start": "2019-05-26 09:11:51.422911", "stderr": "", "stderr_lines": [], "stdout": "sar-user staff_u s0-s0:c0.c1023 *", "stdout_lines": ["sar-user staff_u s0-s0:c0.c1023 *"]} TASK [Get local modifications - fcontext] ****************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/set_selinux_variables.yml:11 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["/usr/sbin/semanage", "fcontext", "-l", "-n", "-C"], "delta": "0:00:00.754910", "end": "2019-05-26 09:11:53.748584", "rc": 0, "start": "2019-05-26 09:11:52.993674", "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/tmpgy_izz8m/tests/tests_all_purge.yml:32 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Check if local modifications are not empty - port] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/tests_all_purge.yml:35 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Check if local modifications are not empty - login] ************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/tests_all_purge.yml:38 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Check if local modifications are not empty - fcontext] *********************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/tests_all_purge.yml:41 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Apply the role to drop local modifications] ********************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/tests_all_purge.yml:45 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-14.1.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-29.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:31 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/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-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:60 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.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:02.826664", "end": "2019-05-26 09:12:02.797595", "rc": 0, "start": "2019-05-26 09:11:59.970931", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpgy_izz8m/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:06.732598", "end": "2019-05-26 09:12:11.026949", "rc": 0, "start": "2019-05-26 09:12:04.294351", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpgy_izz8m/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:118 TASK [Get local modifications - boolean] ******************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tests/set_selinux_variables.yml:2 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["/usr/sbin/semanage", "boolean", "-l", "-n", "-C"], "delta": "0:00:00.543003", "end": "2019-05-26 09:12:13.159266", "rc": 0, "start": "2019-05-26 09:12:12.616263", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - port] ********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/set_selinux_variables.yml:5 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["/usr/sbin/semanage", "port", "-l", "-n", "-C"], "delta": "0:00:00.673183", "end": "2019-05-26 09:12:14.979799", "rc": 0, "start": "2019-05-26 09:12:14.306616", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - login] ********************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tests/set_selinux_variables.yml:8 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["/usr/sbin/semanage", "login", "-l", "-n", "-C"], "delta": "0:00:00.652852", "end": "2019-05-26 09:12:16.710134", "rc": 0, "start": "2019-05-26 09:12:16.057282", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - fcontext] ****************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/set_selinux_variables.yml:11 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["/usr/sbin/semanage", "fcontext", "-l", "-n", "-C"], "delta": "0:00:00.595522", "end": "2019-05-26 09:12:18.313288", "rc": 0, "start": "2019-05-26 09:12:17.717766", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Check if local modifications are empty - booleans] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/tests_all_purge.yml:52 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Check if local modifications are empty - port] ******************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tests/tests_all_purge.yml:55 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Check if local modifications are empty - login] ****************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/tests_all_purge.yml:58 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Check if local modifications are empty - fcontext] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/tests_all_purge.yml:61 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Remove Linux System Roles SELinux User] ************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/tests_all_purge.yml:65 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.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-7.6-210.x86_64.qcow2 : ok=31 changed=15 unreachable=0 failed=0 skipped=35 rescued=0 ignored=0 + cd /tmp/tmpgy_izz8m/tests; TEST_SUBJECTS=/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_selinux-35-af5a0a6-rhel-7-c5g40ows/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpgy_izz8m/_setup.yml /tmp/tmpgy_izz8m/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/tmpgy_izz8m/_setup.yml PLAY [Fail when only localhost is available] *************************************************************************************************************************************************************** META: ran handlers TASK [debug] *********************************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/_setup.yml:5 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "groups": { "all": [ "/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2" ], "localhost": [ "/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2" ], "subjects": [ "/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2" ], "ungrouped": [] } } TASK [fail] ************************************************************************************************************************************************************************************************ task path: /tmp/tmpgy_izz8m/_setup.yml:7 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.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/tmpgy_izz8m/_setup.yml:16 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.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-7.6-210.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/tmpgy_izz8m/tests/tests_all_transitions.yml PLAY [Test all the possible selinux_state transitions] ***************************************************************************************************************************************************** TASK [Gathering Facts] ************************************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tests/tests_all_transitions.yml:1 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.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": "/boot/vmlinuz-3.10.0-957.el7.x86_64", "LANG": "en_US.UTF-8", "console": "ttyS0,115200n8", "crashkernel": "auto", "net.ifnames": "0", "no_timer_check": true, "ro": true, "root": "UUID=6c248666-70f5-4037-8b24-17100c2f5c1e"}, "ansible_date_time": {"date": "2019-05-26", "day": "26", "epoch": "1558876399", "hour": "09", "iso8601": "2019-05-26T13:13:19Z", "iso8601_basic": "20190526T091319408195", "iso8601_basic_short": "20190526T091319", "iso8601_micro": "2019-05-26T13:13:19.408334Z", "minute": "13", "month": "05", "second": "19", "time": "09:13:19", "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-15-12-21-00"], "vda1": ["6c248666-70f5-4037-8b24-17100c2f5c1e"]}}, "ansible_devices": {"fd0": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "1", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "deadline", "sectors": "8", "sectorsize": "512", "size": "4.00 KB", "support_discard": "0", "vendor": null, "virtual": 1}, "sr0": {"holders": [], "host": "", "links": {"ids": ["ata-QEMU_DVD-ROM_QM00003"], "labels": ["cidata"], "masters": [], "uuids": ["2019-05-26-15-12-21-00"]}, "model": "QEMU DVD-ROM", "partitions": {}, "removable": "1", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "deadline", "sectors": "728", "sectorsize": "2048", "size": "364.00 KB", "support_discard": "0", "vendor": "QEMU", "virtual": 1}, "vda": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {"vda1": {"holders": [], "links": {"ids": [], "labels": [], "masters": [], "uuids": ["6c248666-70f5-4037-8b24-17100c2f5c1e"]}, "sectors": "20969439", "sectorsize": 512, "size": "10.00 GB", "start": "2048", "uuid": "6c248666-70f5-4037-8b24-17100c2f5c1e"}}, "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": "7", "ansible_distribution_release": "Maipo", "ansible_distribution_version": "7.6", "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": {"HOME": "/root", "LANG": "de_DE.UTF-8", "LESSOPEN": "||/usr/bin/lesspipe.sh %s", "LOGNAME": "root", "LS_COLORS": "rs=0:di=38;5;27:ln=38;5;51:mh=44;38;5;15: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=05;48;5;232;38;5;15: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;34:*.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:*.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:*.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:*.jpg=38;5;13:*.jpeg=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:*.axv=38;5;13:*.anx=38;5;13:*.ogv=38;5;13:*.ogx=38;5;13:*.aac=38;5;45:*.au=38;5;45:*.flac=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:*.axa=38;5;45:*.oga=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 34998 22", "SSH_CONNECTION": "10.0.2.2 34998 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/bin/python2"}, "ansible_eth0": {"active": true, "device": "eth0", "features": {"busy_poll": "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", "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_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_ipip_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_sit_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_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 [fixed]", "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, "timestamping": ["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": "3.10.0-957.el7.x86_64", "ansible_lo": {"active": true, "device": "lo", "features": {"busy_poll": "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", "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_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_ipip_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_sit_segmentation": "off [fixed]", "tx_tcp6_segmentation": "on", "tx_tcp_ecn_segmentation": "on", "tx_tcp_mangleid_segmentation": "on", "tx_tcp_segmentation": "on", "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": "on", "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": ["rx_software", "software"], "type": "loopback"}, "ansible_local": {}, "ansible_lsb": {}, "ansible_machine": "x86_64", "ansible_machine_id": "e05ef379270c4d7e9347f4a7ba5132ad", "ansible_memfree_mb": 743, "ansible_memory_mb": {"nocache": {"free": 865, "used": 125}, "real": {"free": 743, "total": 990, "used": 247}, "swap": {"cached": 0, "free": 0, "total": 0, "used": 0}}, "ansible_memtotal_mb": 990, "ansible_mounts": [{"block_available": 2378299, "block_size": 4096, "block_total": 2618619, "block_used": 240320, "device": "/dev/vda1", "fstype": "xfs", "inode_available": 5213930, "inode_total": 5242352, "inode_used": 28422, "mount": "/", "options": "rw,seclabel,relatime,attr2,inode64,noquota", "size_available": 9741512704, "size_total": 10725863424, "uuid": "6c248666-70f5-4037-8b24-17100c2f5c1e"}], "ansible_nodename": "ibm-p8-kvm-03-guest-02.virt.pnr.lab.eng.rdu2.redhat.com", "ansible_os_family": "RedHat", "ansible_pkg_mgr": "yum", "ansible_proc_cmdline": {"BOOT_IMAGE": "/boot/vmlinuz-3.10.0-957.el7.x86_64", "LANG": "en_US.UTF-8", "console": ["tty0", "ttyS0,115200n8"], "crashkernel": "auto", "net.ifnames": "0", "no_timer_check": true, "ro": true, "root": "UUID=6c248666-70f5-4037-8b24-17100c2f5c1e"}, "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/bin/python2", "has_sslcontext": true, "type": "CPython", "version": {"major": 2, "micro": 5, "minor": 7, "releaselevel": "final", "serial": 0}, "version_info": [2, 7, 5, "final", 0]}, "ansible_python_version": "2.7.5", "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": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBORULcYE+BZJBxJEDze9Ctrk2sa5doRFnkiVAsOHUiw5iEskibt9mRy+tf7jO8lg8vjSqW0bMVCAchjlP+Hwcgs=", "ansible_ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAIEoMfAcnnVCN7BeuPLgiEKYd9hMhjIzSUSlWBBSrOXst", "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABAQDI3o/5W+3Bn17XPKkYzBZY9DBIvHglBax7B7EyL1rKtCAG/smmiCU1FhbFqxvAwt1nZYsW6OR6F6IkQS5FpUL3zmoxtRV/UP4dE3msfG+bV7ZTZpyf54oKA1v18WlvALXhmWpYiS4oHkr580LClWBizH3ftJ1hMixnaM/VOXI3CqEVQkF2ifioK8Pfb92VrGvCH/ZQ9nHEecHhOJ9buFfz/y/XGmaL4Py7DACpVNvtQf5nI4BTFsZUeBhxiso2hhCkbO0woBbRIKhCHfWvg7Q8y3M9baJ2gMh0uZKoRC0b57WacGOfxSa1WE2wEikMi3Tb7G/KvkxDkoX7+dFwTgmZ", "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", "35", "36+ep"], "ansible_system_capabilities_enforced": "True", "ansible_system_vendor": "QEMU", "ansible_uptime_seconds": 52, "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/tmpgy_izz8m/tests/tests_all_transitions.yml:11 included: /tmp/tmpgy_izz8m/tests/selinux_config_save.yml for /home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2 TASK [Backup original /etc/selinux/config] ***************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_config_save.yml:1 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "checksum": "fe4ed0aa93618472e1004b6f68ae1b0733485fc5", "dest": "/etc/selinux/config.test_selinux_save", "gid": 0, "group": "root", "md5sum": "ff8d2663b88f1a20c8489fdf152e6b31", "mode": "0644", "owner": "root", "secontext": "system_u:object_r:selinux_config_t:s0", "size": 542, "src": "/etc/selinux/config", "state": "file", "uid": 0} TASK [test all the possible state transitions] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tests/tests_all_transitions.yml:14 included: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml for /home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2 included: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml for /home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2 included: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml for /home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2 included: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml for /home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2 included: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml for /home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2 included: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml for /home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2 included: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml for /home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2 included: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml for /home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2 included: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml for /home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2 TASK [display transition name] ***************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:1 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "msg": "testing transition permissive -> permissive" } TASK [setup the initial state] ***************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:5 included: /tmp/tmpgy_izz8m/tests/selinux_apply_reboot.yml for /home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2 TASK [include_role : selinux] ****************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_apply_reboot.yml:3 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-14.1.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-29.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:31 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.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/tmpgy_izz8m/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/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-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpgy_izz8m/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:06.042404", "end": "2019-05-26 09:13:37.595783", "rc": 0, "start": "2019-05-26 09:13:31.553379", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpgy_izz8m/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:118 TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:10 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] TASK [check that initial state has been set up properly] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:14 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [save the initial state] ****************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:18 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.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/tmpgy_izz8m/tests/selinux_test_transitions.yml:22 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-14.1.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-29.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:31 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/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-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpgy_izz8m/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:05.360804", "end": "2019-05-26 09:13:52.452496", "rc": 0, "start": "2019-05-26 09:13:47.091692", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpgy_izz8m/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:118 TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:26 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] TASK [check that the run w/o parameters has not changed anything] ****************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:30 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [apply the desired state if possible without reboot] ************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:34 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-14.1.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-29.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:31 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.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/tmpgy_izz8m/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/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-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpgy_izz8m/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:06.426606", "end": "2019-05-26 09:14:09.538983", "rc": 0, "start": "2019-05-26 09:14:03.112377", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpgy_izz8m/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:118 TASK [apply the desired state if necessary with reboot] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:44 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:52 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] TASK [check that something changed if it should have] ****************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check that nothing changed if it should not have] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:61 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [check that desired state has been applied properly] ************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:66 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [check that desired state has been saved properly] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:70 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [display transition name] ***************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:1 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "msg": "testing transition permissive -> enforcing" } TASK [setup the initial state] ***************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:5 included: /tmp/tmpgy_izz8m/tests/selinux_apply_reboot.yml for /home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2 TASK [include_role : selinux] ****************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_apply_reboot.yml:3 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-14.1.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-29.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:31 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.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/tmpgy_izz8m/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/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-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpgy_izz8m/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:05.451701", "end": "2019-05-26 09:14:26.138971", "rc": 0, "start": "2019-05-26 09:14:20.687270", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpgy_izz8m/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:118 TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:10 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] TASK [check that initial state has been set up properly] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:14 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [save the initial state] ****************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:18 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.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/tmpgy_izz8m/tests/selinux_test_transitions.yml:22 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-14.1.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-29.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:31 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/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-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpgy_izz8m/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:05.993186", "end": "2019-05-26 09:14:40.900651", "rc": 0, "start": "2019-05-26 09:14:34.907465", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpgy_izz8m/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:118 TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:26 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] TASK [check that the run w/o parameters has not changed anything] ****************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:30 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [apply the desired state if possible without reboot] ************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:34 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-14.1.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-29.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:31 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.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/tmpgy_izz8m/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/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-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpgy_izz8m/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:05.666196", "end": "2019-05-26 09:14:56.512401", "rc": 0, "start": "2019-05-26 09:14:50.846205", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpgy_izz8m/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:118 TASK [apply the desired state if necessary with reboot] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:44 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:52 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] TASK [check that something changed if it should have] ****************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:56 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [check that nothing changed if it should not have] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:61 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check that desired state has been applied properly] ************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:66 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [check that desired state has been saved properly] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:70 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [display transition name] ***************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:1 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "msg": "testing transition permissive -> disabled" } TASK [setup the initial state] ***************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:5 included: /tmp/tmpgy_izz8m/tests/selinux_apply_reboot.yml for /home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2 TASK [include_role : selinux] ****************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_apply_reboot.yml:3 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-14.1.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-29.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:31 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.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/tmpgy_izz8m/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/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-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpgy_izz8m/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:05.856135", "end": "2019-05-26 09:15:14.212683", "rc": 0, "start": "2019-05-26 09:15:08.356548", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpgy_izz8m/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:118 TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:10 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] TASK [check that initial state has been set up properly] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:14 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [save the initial state] ****************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:18 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.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/tmpgy_izz8m/tests/selinux_test_transitions.yml:22 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-14.1.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-29.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:31 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/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-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpgy_izz8m/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:05.935623", "end": "2019-05-26 09:15:28.613186", "rc": 0, "start": "2019-05-26 09:15:22.677563", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpgy_izz8m/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:118 TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:26 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] TASK [check that the run w/o parameters has not changed anything] ****************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:30 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [apply the desired state if possible without reboot] ************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:34 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [apply the desired state if necessary with reboot] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:44 included: /tmp/tmpgy_izz8m/tests/selinux_apply_reboot.yml for /home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2 TASK [include_role : selinux] ****************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_apply_reboot.yml:3 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-14.1.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-29.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:31 [WARNING]: SELinux state change will take effect next reboot changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.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/tmpgy_izz8m/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"ansible_facts": {"selinux_reboot_required": true}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/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-7.6-210.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/tmpgy_izz8m/tests/selinux_apply_reboot.yml:7 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [restart managed host] ******************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_apply_reboot.yml:12 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"ansible_job_id": "149932696904.5409", "changed": true, "finished": 0, "results_file": "/root/.ansible_async/149932696904.5409", "started": 1} TASK [wait for managed host to come back] ****************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_apply_reboot.yml:18 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "elapsed": 38} TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:52 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] TASK [check that something changed if it should have] ****************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:56 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [check that nothing changed if it should not have] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:61 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check that desired state has been applied properly] ************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:66 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [check that desired state has been saved properly] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:70 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [display transition name] ***************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:1 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "msg": "testing transition enforcing -> permissive" } TASK [setup the initial state] ***************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:5 included: /tmp/tmpgy_izz8m/tests/selinux_apply_reboot.yml for /home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2 TASK [include_role : selinux] ****************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_apply_reboot.yml:3 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-14.1.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-29.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:31 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/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-7.6-210.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/tmpgy_izz8m/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"ansible_facts": {"selinux_reboot_required": true}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/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-7.6-210.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/tmpgy_izz8m/tests/selinux_apply_reboot.yml:7 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [restart managed host] ******************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_apply_reboot.yml:12 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"ansible_job_id": "709630041588.3310", "changed": true, "finished": 0, "results_file": "/root/.ansible_async/709630041588.3310", "started": 1} TASK [wait for managed host to come back] ****************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_apply_reboot.yml:18 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "elapsed": 115} TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:10 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] TASK [check that initial state has been set up properly] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:14 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [save the initial state] ****************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:18 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"ansible_facts": {"initial_selinux_fact": {"config_mode": "enforcing", "mode": "enforcing", "policyvers": 31, "status": "enabled", "type": "targeted"}}, "changed": false} TASK [apply the role without parameters] ******************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:22 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-14.1.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-29.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:31 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/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-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpgy_izz8m/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:06.380214", "end": "2019-05-26 09:18:41.199758", "rc": 0, "start": "2019-05-26 09:18:34.819544", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpgy_izz8m/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:118 TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:26 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] TASK [check that the run w/o parameters has not changed anything] ****************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:30 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [apply the desired state if possible without reboot] ************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:34 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-14.1.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-29.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:31 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.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/tmpgy_izz8m/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/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-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpgy_izz8m/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:05.622510", "end": "2019-05-26 09:18:57.310820", "rc": 0, "start": "2019-05-26 09:18:51.688310", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpgy_izz8m/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:118 TASK [apply the desired state if necessary with reboot] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:44 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:52 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] TASK [check that something changed if it should have] ****************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:56 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [check that nothing changed if it should not have] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:61 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check that desired state has been applied properly] ************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:66 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [check that desired state has been saved properly] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:70 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [display transition name] ***************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:1 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "msg": "testing transition enforcing -> enforcing" } TASK [setup the initial state] ***************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:5 included: /tmp/tmpgy_izz8m/tests/selinux_apply_reboot.yml for /home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2 TASK [include_role : selinux] ****************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_apply_reboot.yml:3 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-14.1.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-29.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:31 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.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/tmpgy_izz8m/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/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-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpgy_izz8m/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:05.455722", "end": "2019-05-26 09:19:14.818409", "rc": 0, "start": "2019-05-26 09:19:09.362687", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpgy_izz8m/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:118 TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:10 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] TASK [check that initial state has been set up properly] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:14 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [save the initial state] ****************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:18 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"ansible_facts": {"initial_selinux_fact": {"config_mode": "enforcing", "mode": "enforcing", "policyvers": 31, "status": "enabled", "type": "targeted"}}, "changed": false} TASK [apply the role without parameters] ******************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:22 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-14.1.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-29.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:31 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/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-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpgy_izz8m/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:05.930992", "end": "2019-05-26 09:19:29.581270", "rc": 0, "start": "2019-05-26 09:19:23.650278", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpgy_izz8m/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:118 TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:26 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] TASK [check that the run w/o parameters has not changed anything] ****************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:30 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [apply the desired state if possible without reboot] ************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:34 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-14.1.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-29.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:31 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "configfile": "/etc/selinux/config", "msg": "", "policy": "targeted", "reboot_required": false, "state": "enforcing"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/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-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpgy_izz8m/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:05.370146", "end": "2019-05-26 09:19:46.299544", "rc": 0, "start": "2019-05-26 09:19:40.929398", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpgy_izz8m/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:118 TASK [apply the desired state if necessary with reboot] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:44 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:52 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] TASK [check that something changed if it should have] ****************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check that nothing changed if it should not have] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:61 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [check that desired state has been applied properly] ************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:66 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [check that desired state has been saved properly] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:70 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [display transition name] ***************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:1 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "msg": "testing transition enforcing -> disabled" } TASK [setup the initial state] ***************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:5 included: /tmp/tmpgy_izz8m/tests/selinux_apply_reboot.yml for /home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2 TASK [include_role : selinux] ****************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_apply_reboot.yml:3 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-14.1.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-29.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:31 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "configfile": "/etc/selinux/config", "msg": "", "policy": "targeted", "reboot_required": false, "state": "enforcing"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/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-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpgy_izz8m/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:05.179930", "end": "2019-05-26 09:20:01.732901", "rc": 0, "start": "2019-05-26 09:19:56.552971", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpgy_izz8m/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:118 TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:10 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] TASK [check that initial state has been set up properly] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:14 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [save the initial state] ****************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:18 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"ansible_facts": {"initial_selinux_fact": {"config_mode": "enforcing", "mode": "enforcing", "policyvers": 31, "status": "enabled", "type": "targeted"}}, "changed": false} TASK [apply the role without parameters] ******************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:22 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-14.1.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-29.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:31 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/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-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpgy_izz8m/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:05.222068", "end": "2019-05-26 09:20:16.480893", "rc": 0, "start": "2019-05-26 09:20:11.258825", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpgy_izz8m/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:118 TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:26 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] TASK [check that the run w/o parameters has not changed anything] ****************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:30 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [apply the desired state if possible without reboot] ************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:34 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [apply the desired state if necessary with reboot] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:44 included: /tmp/tmpgy_izz8m/tests/selinux_apply_reboot.yml for /home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2 TASK [include_role : selinux] ****************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_apply_reboot.yml:3 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-14.1.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-29.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:31 [WARNING]: SELinux state temporarily changed from 'enforcing' to 'permissive'. State change will take effect next reboot. changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "configfile": "/etc/selinux/config", "msg": "Config SELinux state changed from 'enforcing' to 'disabled'", "policy": "targeted", "reboot_required": true, "state": "disabled"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"ansible_facts": {"selinux_reboot_required": true}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/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-7.6-210.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/tmpgy_izz8m/tests/selinux_apply_reboot.yml:7 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [restart managed host] ******************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_apply_reboot.yml:12 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"ansible_job_id": "631156307448.4942", "changed": true, "finished": 0, "results_file": "/root/.ansible_async/631156307448.4942", "started": 1} TASK [wait for managed host to come back] ****************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_apply_reboot.yml:18 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "elapsed": 39} TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:52 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] TASK [check that something changed if it should have] ****************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:56 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [check that nothing changed if it should not have] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:61 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check that desired state has been applied properly] ************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:66 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [check that desired state has been saved properly] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:70 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [display transition name] ***************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:1 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "msg": "testing transition disabled -> permissive" } TASK [setup the initial state] ***************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:5 included: /tmp/tmpgy_izz8m/tests/selinux_apply_reboot.yml for /home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2 TASK [include_role : selinux] ****************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_apply_reboot.yml:3 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-14.1.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-29.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:31 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:38 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "configfile": "/etc/selinux/config", "msg": "", "policy": "targeted", "reboot_required": false, "state": "disabled"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/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-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:56 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "msg": "SELinux is disabled on system - some SELinux modules can crash" } TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpgy_izz8m/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:80 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpgy_izz8m/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:118 TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:10 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] TASK [check that initial state has been set up properly] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:14 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [save the initial state] ****************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:18 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"ansible_facts": {"initial_selinux_fact": {"status": "disabled"}}, "changed": false} TASK [apply the role without parameters] ******************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:22 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-14.1.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-29.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:31 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/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-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:56 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "msg": "SELinux is disabled on system - some SELinux modules can crash" } TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpgy_izz8m/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:80 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpgy_izz8m/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:118 TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:26 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] TASK [check that the run w/o parameters has not changed anything] ****************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:30 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [apply the desired state if possible without reboot] ************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:34 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [apply the desired state if necessary with reboot] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:44 included: /tmp/tmpgy_izz8m/tests/selinux_apply_reboot.yml for /home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2 TASK [include_role : selinux] ****************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_apply_reboot.yml:3 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-14.1.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-29.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:31 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:38 [WARNING]: Reboot is required to set SELinux state to 'permissive' changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "configfile": "/etc/selinux/config", "msg": "Config SELinux state changed from 'disabled' to 'permissive'", "policy": "targeted", "reboot_required": true, "state": "permissive"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"ansible_facts": {"selinux_reboot_required": true}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/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-7.6-210.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/tmpgy_izz8m/tests/selinux_apply_reboot.yml:7 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [restart managed host] ******************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_apply_reboot.yml:12 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"ansible_job_id": "591977702597.3686", "changed": true, "finished": 0, "results_file": "/root/.ansible_async/591977702597.3686", "started": 1} TASK [wait for managed host to come back] ****************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_apply_reboot.yml:18 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "elapsed": 95} TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:52 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] TASK [check that something changed if it should have] ****************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:56 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [check that nothing changed if it should not have] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:61 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check that desired state has been applied properly] ************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:66 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [check that desired state has been saved properly] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:70 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [display transition name] ***************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:1 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "msg": "testing transition disabled -> enforcing" } TASK [setup the initial state] ***************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:5 included: /tmp/tmpgy_izz8m/tests/selinux_apply_reboot.yml for /home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2 TASK [include_role : selinux] ****************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_apply_reboot.yml:3 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-14.1.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-29.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:31 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.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/tmpgy_izz8m/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"ansible_facts": {"selinux_reboot_required": true}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/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-7.6-210.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/tmpgy_izz8m/tests/selinux_apply_reboot.yml:7 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [restart managed host] ******************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_apply_reboot.yml:12 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"ansible_job_id": "101384936580.3323", "changed": true, "finished": 0, "results_file": "/root/.ansible_async/101384936580.3323", "started": 1} TASK [wait for managed host to come back] ****************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_apply_reboot.yml:18 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "elapsed": 39} TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:10 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] TASK [check that initial state has been set up properly] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:14 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [save the initial state] ****************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:18 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"ansible_facts": {"initial_selinux_fact": {"status": "disabled"}}, "changed": false} TASK [apply the role without parameters] ******************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:22 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-14.1.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-29.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:31 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/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-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:56 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "msg": "SELinux is disabled on system - some SELinux modules can crash" } TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpgy_izz8m/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:80 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpgy_izz8m/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:118 TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:26 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] TASK [check that the run w/o parameters has not changed anything] ****************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:30 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [apply the desired state if possible without reboot] ************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:34 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [apply the desired state if necessary with reboot] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:44 included: /tmp/tmpgy_izz8m/tests/selinux_apply_reboot.yml for /home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2 TASK [include_role : selinux] ****************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_apply_reboot.yml:3 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-14.1.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-29.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:31 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:38 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.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/tmpgy_izz8m/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"ansible_facts": {"selinux_reboot_required": true}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/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-7.6-210.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/tmpgy_izz8m/tests/selinux_apply_reboot.yml:7 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [restart managed host] ******************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_apply_reboot.yml:12 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"ansible_job_id": "605599889766.3476", "changed": true, "finished": 0, "results_file": "/root/.ansible_async/605599889766.3476", "started": 1} TASK [wait for managed host to come back] ****************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_apply_reboot.yml:18 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "elapsed": 89} TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:52 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] TASK [check that something changed if it should have] ****************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:56 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [check that nothing changed if it should not have] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:61 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check that desired state has been applied properly] ************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:66 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [check that desired state has been saved properly] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:70 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [display transition name] ***************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:1 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "msg": "testing transition disabled -> disabled" } TASK [setup the initial state] ***************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:5 included: /tmp/tmpgy_izz8m/tests/selinux_apply_reboot.yml for /home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2 TASK [include_role : selinux] ****************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_apply_reboot.yml:3 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-14.1.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-29.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:31 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "configfile": "/etc/selinux/config", "msg": "Config SELinux state changed from 'enforcing' to 'disabled'", "policy": "targeted", "reboot_required": true, "state": "disabled"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"ansible_facts": {"selinux_reboot_required": true}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/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-7.6-210.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/tmpgy_izz8m/tests/selinux_apply_reboot.yml:7 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [restart managed host] ******************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_apply_reboot.yml:12 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"ansible_job_id": "525011097165.3319", "changed": true, "finished": 0, "results_file": "/root/.ansible_async/525011097165.3319", "started": 1} TASK [wait for managed host to come back] ****************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_apply_reboot.yml:18 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "elapsed": 28} TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:10 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] TASK [check that initial state has been set up properly] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:14 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [save the initial state] ****************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:18 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"ansible_facts": {"initial_selinux_fact": {"status": "disabled"}}, "changed": false} TASK [apply the role without parameters] ******************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:22 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-14.1.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-29.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:31 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/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-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:56 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "msg": "SELinux is disabled on system - some SELinux modules can crash" } TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpgy_izz8m/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:80 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpgy_izz8m/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:118 TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:26 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] TASK [check that the run w/o parameters has not changed anything] ****************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:30 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [apply the desired state if possible without reboot] ************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:34 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-14.1.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-29.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:31 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:38 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "configfile": "/etc/selinux/config", "msg": "", "policy": "targeted", "reboot_required": false, "state": "disabled"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/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-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:56 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "msg": "SELinux is disabled on system - some SELinux modules can crash" } TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpgy_izz8m/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:80 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpgy_izz8m/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:118 TASK [apply the desired state if necessary with reboot] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:44 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:52 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] TASK [check that something changed if it should have] ****************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check that nothing changed if it should not have] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:61 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [check that desired state has been applied properly] ************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:66 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [check that desired state has been saved properly] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_test_transitions.yml:70 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [restore config] ************************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/tests_all_transitions.yml:23 included: /tmp/tmpgy_izz8m/tests/selinux_config_restore.yml for /home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2 TASK [Restore original /etc/selinux/config] **************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_config_restore.yml:1 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "checksum": "fe4ed0aa93618472e1004b6f68ae1b0733485fc5", "dest": "/etc/selinux/config", "gid": 0, "group": "root", "md5sum": "ff8d2663b88f1a20c8489fdf152e6b31", "mode": "0644", "owner": "root", "size": 542, "src": "/etc/selinux/config.test_selinux_save", "state": "file", "uid": 0} TASK [Remove /etc/selinux/config backup] ******************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tests/selinux_config_restore.yml:8 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "path": "/etc/selinux/config.test_selinux_save", "state": "absent"} TASK [restart managed host] ******************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_config_restore.yml:15 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"ansible_job_id": "534197509053.3606", "changed": true, "finished": 0, "results_file": "/root/.ansible_async/534197509053.3606", "started": 1} TASK [wait for managed host to come back] ****************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/selinux_config_restore.yml:21 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "elapsed": 74} META: ran handlers META: ran handlers PLAY RECAP ************************************************************************************************************************************************************************************************* /home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2 : ok=255 changed=39 unreachable=0 failed=0 skipped=376 rescued=7 ignored=0 + cd /tmp/tmpgy_izz8m/tests; TEST_SUBJECTS=/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_selinux-35-af5a0a6-rhel-7-c5g40ows/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpgy_izz8m/_setup.yml /tmp/tmpgy_izz8m/tests/tests_boolean.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/tmpgy_izz8m/_setup.yml PLAY [Fail when only localhost is available] *************************************************************************************************************************************************************** META: ran handlers TASK [debug] *********************************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/_setup.yml:5 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "groups": { "all": [ "/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2" ], "localhost": [ "/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2" ], "subjects": [ "/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2" ], "ungrouped": [] } } TASK [fail] ************************************************************************************************************************************************************************************************ task path: /tmp/tmpgy_izz8m/_setup.yml:7 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.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/tmpgy_izz8m/_setup.yml:16 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.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-7.6-210.x86_64.qcow2 : ok=2 changed=1 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 statically imported: /tmp/tmpgy_izz8m/tests/set_selinux_variables.yml statically imported: /tmp/tmpgy_izz8m/tests/set_selinux_variables.yml statically imported: /tmp/tmpgy_izz8m/tests/set_selinux_variables.yml PLAYBOOK: tests_boolean.yml ******************************************************************************************************************************************************************************** 1 plays in /tmp/tmpgy_izz8m/tests/tests_boolean.yml PLAY [Check if selinux role sets SELinux booleans] ********************************************************************************************************************************************************* TASK [Gathering Facts] ************************************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tests/tests_boolean.yml:2 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.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": "/boot/vmlinuz-3.10.0-957.el7.x86_64", "LANG": "en_US.UTF-8", "console": "ttyS0,115200n8", "crashkernel": "auto", "net.ifnames": "0", "no_timer_check": true, "ro": true, "root": "UUID=6c248666-70f5-4037-8b24-17100c2f5c1e"}, "ansible_date_time": {"date": "2019-05-26", "day": "26", "epoch": "1558877325", "hour": "09", "iso8601": "2019-05-26T13:28:45Z", "iso8601_basic": "20190526T092845731263", "iso8601_basic_short": "20190526T092845", "iso8601_micro": "2019-05-26T13:28:45.731507Z", "minute": "28", "month": "05", "second": "45", "time": "09:28:45", "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-15-27-56-00"], "vda1": ["6c248666-70f5-4037-8b24-17100c2f5c1e"]}}, "ansible_devices": {"fd0": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "1", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "deadline", "sectors": "8", "sectorsize": "512", "size": "4.00 KB", "support_discard": "0", "vendor": null, "virtual": 1}, "sr0": {"holders": [], "host": "", "links": {"ids": ["ata-QEMU_DVD-ROM_QM00003"], "labels": ["cidata"], "masters": [], "uuids": ["2019-05-26-15-27-56-00"]}, "model": "QEMU DVD-ROM", "partitions": {}, "removable": "1", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "deadline", "sectors": "728", "sectorsize": "2048", "size": "364.00 KB", "support_discard": "0", "vendor": "QEMU", "virtual": 1}, "vda": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {"vda1": {"holders": [], "links": {"ids": [], "labels": [], "masters": [], "uuids": ["6c248666-70f5-4037-8b24-17100c2f5c1e"]}, "sectors": "20969439", "sectorsize": 512, "size": "10.00 GB", "start": "2048", "uuid": "6c248666-70f5-4037-8b24-17100c2f5c1e"}}, "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": "7", "ansible_distribution_release": "Maipo", "ansible_distribution_version": "7.6", "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": {"HOME": "/root", "LANG": "de_DE.UTF-8", "LESSOPEN": "||/usr/bin/lesspipe.sh %s", "LOGNAME": "root", "LS_COLORS": "rs=0:di=38;5;27:ln=38;5;51:mh=44;38;5;15: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=05;48;5;232;38;5;15: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;34:*.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:*.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:*.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:*.jpg=38;5;13:*.jpeg=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:*.axv=38;5;13:*.anx=38;5;13:*.ogv=38;5;13:*.ogx=38;5;13:*.aac=38;5;45:*.au=38;5;45:*.flac=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:*.axa=38;5;45:*.oga=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 41232 22", "SSH_CONNECTION": "10.0.2.2 41232 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/bin/python2"}, "ansible_eth0": {"active": true, "device": "eth0", "features": {"busy_poll": "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", "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_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_ipip_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_sit_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_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 [fixed]", "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, "timestamping": ["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": "3.10.0-957.el7.x86_64", "ansible_lo": {"active": true, "device": "lo", "features": {"busy_poll": "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", "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_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_ipip_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_sit_segmentation": "off [fixed]", "tx_tcp6_segmentation": "on", "tx_tcp_ecn_segmentation": "on", "tx_tcp_mangleid_segmentation": "on", "tx_tcp_segmentation": "on", "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": "on", "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": ["rx_software", "software"], "type": "loopback"}, "ansible_local": {}, "ansible_lsb": {}, "ansible_machine": "x86_64", "ansible_machine_id": "c59f6dc436614c06931f041cff84992b", "ansible_memfree_mb": 743, "ansible_memory_mb": {"nocache": {"free": 865, "used": 125}, "real": {"free": 743, "total": 990, "used": 247}, "swap": {"cached": 0, "free": 0, "total": 0, "used": 0}}, "ansible_memtotal_mb": 990, "ansible_mounts": [{"block_available": 2378299, "block_size": 4096, "block_total": 2618619, "block_used": 240320, "device": "/dev/vda1", "fstype": "xfs", "inode_available": 5213930, "inode_total": 5242352, "inode_used": 28422, "mount": "/", "options": "rw,seclabel,relatime,attr2,inode64,noquota", "size_available": 9741512704, "size_total": 10725863424, "uuid": "6c248666-70f5-4037-8b24-17100c2f5c1e"}], "ansible_nodename": "ibm-p8-kvm-03-guest-02.virt.pnr.lab.eng.rdu2.redhat.com", "ansible_os_family": "RedHat", "ansible_pkg_mgr": "yum", "ansible_proc_cmdline": {"BOOT_IMAGE": "/boot/vmlinuz-3.10.0-957.el7.x86_64", "LANG": "en_US.UTF-8", "console": ["tty0", "ttyS0,115200n8"], "crashkernel": "auto", "net.ifnames": "0", "no_timer_check": true, "ro": true, "root": "UUID=6c248666-70f5-4037-8b24-17100c2f5c1e"}, "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/bin/python2", "has_sslcontext": true, "type": "CPython", "version": {"major": 2, "micro": 5, "minor": 7, "releaselevel": "final", "serial": 0}, "version_info": [2, 7, 5, "final", 0]}, "ansible_python_version": "2.7.5", "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": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBC23iueALvLgLd44DwhF8DrdUE2hBYCYXK2KG5EaOtdWarorZ3Eryairiz1d6xdcmGLDqoroxEXRAP36juFUm/g=", "ansible_ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAIAsaWPVYt8OUi9Ezb24DXACOB0FRE+E7zvu/qKW585uV", "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABAQCv+Y6PezseruJvEb6PNT57rsSALVBGgbVhQdYigVOOE0Qtzd2NhutYgY53WhysUS85AmrzSv+RKVCuB+Z7tD2+7cawvAwTkFd/NKNJMzP79pQo3P+E7reqXz6flCAXmXta898LYzQUDFXEX9aLxZRw+QNlfdUYW4/kipNXrGFFwyQuzuqCd75Dx+odtviE8RkOAvAZsdyjcXppDUMaYpNAqLm3cmHdUrT8Tp9OQjyNq2wyG4eK1jEcivQceXgTPBXB90uFJQsYnPpPbO02k54Eu+GLO7AUwzYetytgQBpLgB7ZltUZwTwZgl/vho6LQsZZ3K+E2yRtzJd1++FJUCp/", "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", "35", "36+ep"], "ansible_system_capabilities_enforced": "True", "ansible_system_vendor": "QEMU", "ansible_uptime_seconds": 44, "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 [initial changes] ************************************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tests/tests_boolean.yml:7 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-14.1.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-29.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:31 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/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-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:64 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": "/usr/sbin/semanage boolean -D", "delta": "0:00:02.099420", "end": "2019-05-26 09:28:54.069080", "rc": 0, "start": "2019-05-26 09:28:51.969660", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpgy_izz8m/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:05.325980", "end": "2019-05-26 09:29:00.614554", "rc": 0, "start": "2019-05-26 09:28:55.288574", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:84 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => (item={'name': 'samba_enable_home_dirs', 'state': 'on', 'persistent': 'yes'}) => {"ansible_loop_var": "item", "changed": true, "item": {"name": "samba_enable_home_dirs", "persistent": "yes", "state": "on"}, "name": "samba_enable_home_dirs", "persistent": true, "state": true} TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpgy_izz8m/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:118 TASK [Get local modifications - boolean] ******************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tests/set_selinux_variables.yml:2 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["/usr/sbin/semanage", "boolean", "-l", "-n", "-C"], "delta": "0:00:00.667214", "end": "2019-05-26 09:29:05.848493", "rc": 0, "start": "2019-05-26 09:29:05.181279", "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/tmpgy_izz8m/tests/set_selinux_variables.yml:5 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["/usr/sbin/semanage", "port", "-l", "-n", "-C"], "delta": "0:00:00.547376", "end": "2019-05-26 09:29:07.459163", "rc": 0, "start": "2019-05-26 09:29:06.911787", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - login] ********************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tests/set_selinux_variables.yml:8 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["/usr/sbin/semanage", "login", "-l", "-n", "-C"], "delta": "0:00:00.578640", "end": "2019-05-26 09:29:09.069084", "rc": 0, "start": "2019-05-26 09:29:08.490444", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - fcontext] ****************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/set_selinux_variables.yml:11 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["/usr/sbin/semanage", "fcontext", "-l", "-n", "-C"], "delta": "0:00:00.824246", "end": "2019-05-26 09:29:10.947972", "rc": 0, "start": "2019-05-26 09:29:10.123726", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [save state after initial changes and before other changes] ******************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tests/tests_boolean.yml:16 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"ansible_facts": {"boolean_before": ["samba_enable_home_dirs (ein , ein) Allow samba to enable home dirs"]}, "changed": false} TASK [Check if there are SELinux boolean changes] ********************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/tests_boolean.yml:20 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [subsequent changes] ********************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/tests_boolean.yml:24 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-14.1.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-29.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:31 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/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-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpgy_izz8m/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:04.335341", "end": "2019-05-26 09:29:21.416770", "rc": 0, "start": "2019-05-26 09:29:17.081429", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:84 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => (item={'name': 'httpd_can_network_connect', 'state': 'on', 'persistent': 'yes'}) => {"ansible_loop_var": "item", "changed": true, "item": {"name": "httpd_can_network_connect", "persistent": "yes", "state": "on"}, "name": "httpd_can_network_connect", "persistent": true, "state": true} TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpgy_izz8m/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:118 TASK [Get local modifications - boolean] ******************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tests/set_selinux_variables.yml:2 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["/usr/sbin/semanage", "boolean", "-l", "-n", "-C"], "delta": "0:00:00.570827", "end": "2019-05-26 09:29:26.280952", "rc": 0, "start": "2019-05-26 09:29:25.710125", "stderr": "", "stderr_lines": [], "stdout": "httpd_can_network_connect (ein , ein) Allow httpd to can network connect\nsamba_enable_home_dirs (ein , ein) Allow samba to enable home dirs", "stdout_lines": ["httpd_can_network_connect (ein , ein) Allow httpd to can network connect", "samba_enable_home_dirs (ein , ein) Allow samba to enable home dirs"]} TASK [Get local modifications - port] ********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/set_selinux_variables.yml:5 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["/usr/sbin/semanage", "port", "-l", "-n", "-C"], "delta": "0:00:00.541828", "end": "2019-05-26 09:29:27.946188", "rc": 0, "start": "2019-05-26 09:29:27.404360", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - login] ********************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tests/set_selinux_variables.yml:8 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["/usr/sbin/semanage", "login", "-l", "-n", "-C"], "delta": "0:00:00.715282", "end": "2019-05-26 09:29:29.676730", "rc": 0, "start": "2019-05-26 09:29:28.961448", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - fcontext] ****************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/set_selinux_variables.yml:11 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["/usr/sbin/semanage", "fcontext", "-l", "-n", "-C"], "delta": "0:00:00.735135", "end": "2019-05-26 09:29:31.555578", "rc": 0, "start": "2019-05-26 09:29:30.820443", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [save state after other changes] ********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/tests_boolean.yml:33 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"ansible_facts": {"boolean_after": ["httpd_can_network_connect (ein , ein) Allow httpd to can network connect", "samba_enable_home_dirs (ein , ein) Allow samba to enable home dirs"]}, "changed": false} TASK [Check if there are SELinux boolean changes] ********************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/tests_boolean.yml:37 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [include_role : selinux] ****************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/tests_boolean.yml:41 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-14.1.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-29.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:31 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/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-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:64 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": "/usr/sbin/semanage boolean -D", "delta": "0:00:06.735549", "end": "2019-05-26 09:29:44.478813", "rc": 0, "start": "2019-05-26 09:29:37.743264", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpgy_izz8m/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:04.447215", "end": "2019-05-26 09:29:50.288565", "rc": 0, "start": "2019-05-26 09:29:45.841350", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpgy_izz8m/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:118 TASK [Get local modifications - boolean] ******************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tests/set_selinux_variables.yml:2 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["/usr/sbin/semanage", "boolean", "-l", "-n", "-C"], "delta": "0:00:00.701953", "end": "2019-05-26 09:29:52.398249", "rc": 0, "start": "2019-05-26 09:29:51.696296", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - port] ********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/set_selinux_variables.yml:5 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["/usr/sbin/semanage", "port", "-l", "-n", "-C"], "delta": "0:00:00.550949", "end": "2019-05-26 09:29:53.998356", "rc": 0, "start": "2019-05-26 09:29:53.447407", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - login] ********************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tests/set_selinux_variables.yml:8 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["/usr/sbin/semanage", "login", "-l", "-n", "-C"], "delta": "0:00:00.609853", "end": "2019-05-26 09:29:55.831064", "rc": 0, "start": "2019-05-26 09:29:55.221211", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - fcontext] ****************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/set_selinux_variables.yml:11 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["/usr/sbin/semanage", "fcontext", "-l", "-n", "-C"], "delta": "0:00:00.475068", "end": "2019-05-26 09:29:57.493811", "rc": 0, "start": "2019-05-26 09:29:57.018743", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Check if there are no SELinux boolean mapping changes] *********************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/tests_boolean.yml:47 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } META: ran handlers META: ran handlers PLAY RECAP ************************************************************************************************************************************************************************************************* /home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2 : ok=36 changed=20 unreachable=0 failed=0 skipped=48 rescued=0 ignored=0 + cd /tmp/tmpgy_izz8m/tests; TEST_SUBJECTS=/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_selinux-35-af5a0a6-rhel-7-c5g40ows/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpgy_izz8m/_setup.yml /tmp/tmpgy_izz8m/tests/tests_fcontext.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/tmpgy_izz8m/_setup.yml PLAY [Fail when only localhost is available] *************************************************************************************************************************************************************** META: ran handlers TASK [debug] *********************************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/_setup.yml:5 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "groups": { "all": [ "/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2" ], "localhost": [ "/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2" ], "subjects": [ "/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2" ], "ungrouped": [] } } TASK [fail] ************************************************************************************************************************************************************************************************ task path: /tmp/tmpgy_izz8m/_setup.yml:7 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.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/tmpgy_izz8m/_setup.yml:16 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.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-7.6-210.x86_64.qcow2 : ok=2 changed=1 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 statically imported: /tmp/tmpgy_izz8m/tests/set_selinux_variables.yml statically imported: /tmp/tmpgy_izz8m/tests/set_selinux_variables.yml statically imported: /tmp/tmpgy_izz8m/tests/set_selinux_variables.yml statically imported: /tmp/tmpgy_izz8m/tests/set_selinux_variables.yml PLAYBOOK: tests_fcontext.yml ******************************************************************************************************************************************************************************* 1 plays in /tmp/tmpgy_izz8m/tests/tests_fcontext.yml PLAY [Check if selinux role sets SELinux fcontext mappings] ************************************************************************************************************************************************ TASK [Gathering Facts] ************************************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tests/tests_fcontext.yml:2 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.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": "/boot/vmlinuz-3.10.0-957.el7.x86_64", "LANG": "en_US.UTF-8", "console": "ttyS0,115200n8", "crashkernel": "auto", "net.ifnames": "0", "no_timer_check": true, "ro": true, "root": "UUID=6c248666-70f5-4037-8b24-17100c2f5c1e"}, "ansible_date_time": {"date": "2019-05-26", "day": "26", "epoch": "1558877448", "hour": "09", "iso8601": "2019-05-26T13:30:48Z", "iso8601_basic": "20190526T093048191806", "iso8601_basic_short": "20190526T093048", "iso8601_micro": "2019-05-26T13:30:48.191946Z", "minute": "30", "month": "05", "second": "48", "time": "09:30:48", "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-15-29-58-00"], "vda1": ["6c248666-70f5-4037-8b24-17100c2f5c1e"]}}, "ansible_devices": {"fd0": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "1", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "deadline", "sectors": "8", "sectorsize": "512", "size": "4.00 KB", "support_discard": "0", "vendor": null, "virtual": 1}, "sr0": {"holders": [], "host": "", "links": {"ids": ["ata-QEMU_DVD-ROM_QM00003"], "labels": ["cidata"], "masters": [], "uuids": ["2019-05-26-15-29-58-00"]}, "model": "QEMU DVD-ROM", "partitions": {}, "removable": "1", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "deadline", "sectors": "728", "sectorsize": "2048", "size": "364.00 KB", "support_discard": "0", "vendor": "QEMU", "virtual": 1}, "vda": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {"vda1": {"holders": [], "links": {"ids": [], "labels": [], "masters": [], "uuids": ["6c248666-70f5-4037-8b24-17100c2f5c1e"]}, "sectors": "20969439", "sectorsize": 512, "size": "10.00 GB", "start": "2048", "uuid": "6c248666-70f5-4037-8b24-17100c2f5c1e"}}, "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": "7", "ansible_distribution_release": "Maipo", "ansible_distribution_version": "7.6", "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": {"HOME": "/root", "LANG": "de_DE.UTF-8", "LESSOPEN": "||/usr/bin/lesspipe.sh %s", "LOGNAME": "root", "LS_COLORS": "rs=0:di=38;5;27:ln=38;5;51:mh=44;38;5;15: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=05;48;5;232;38;5;15: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;34:*.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:*.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:*.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:*.jpg=38;5;13:*.jpeg=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:*.axv=38;5;13:*.anx=38;5;13:*.ogv=38;5;13:*.ogx=38;5;13:*.aac=38;5;45:*.au=38;5;45:*.flac=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:*.axa=38;5;45:*.oga=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 35690 22", "SSH_CONNECTION": "10.0.2.2 35690 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/bin/python2"}, "ansible_eth0": {"active": true, "device": "eth0", "features": {"busy_poll": "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", "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_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_ipip_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_sit_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_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 [fixed]", "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, "timestamping": ["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": "3.10.0-957.el7.x86_64", "ansible_lo": {"active": true, "device": "lo", "features": {"busy_poll": "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", "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_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_ipip_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_sit_segmentation": "off [fixed]", "tx_tcp6_segmentation": "on", "tx_tcp_ecn_segmentation": "on", "tx_tcp_mangleid_segmentation": "on", "tx_tcp_segmentation": "on", "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": "on", "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": ["rx_software", "software"], "type": "loopback"}, "ansible_local": {}, "ansible_lsb": {}, "ansible_machine": "x86_64", "ansible_machine_id": "1eab56ee020a4457a40daee99d4a9584", "ansible_memfree_mb": 744, "ansible_memory_mb": {"nocache": {"free": 866, "used": 124}, "real": {"free": 744, "total": 990, "used": 246}, "swap": {"cached": 0, "free": 0, "total": 0, "used": 0}}, "ansible_memtotal_mb": 990, "ansible_mounts": [{"block_available": 2378544, "block_size": 4096, "block_total": 2618619, "block_used": 240075, "device": "/dev/vda1", "fstype": "xfs", "inode_available": 5213930, "inode_total": 5242352, "inode_used": 28422, "mount": "/", "options": "rw,seclabel,relatime,attr2,inode64,noquota", "size_available": 9742516224, "size_total": 10725863424, "uuid": "6c248666-70f5-4037-8b24-17100c2f5c1e"}], "ansible_nodename": "ibm-p8-kvm-03-guest-02.virt.pnr.lab.eng.rdu2.redhat.com", "ansible_os_family": "RedHat", "ansible_pkg_mgr": "yum", "ansible_proc_cmdline": {"BOOT_IMAGE": "/boot/vmlinuz-3.10.0-957.el7.x86_64", "LANG": "en_US.UTF-8", "console": ["tty0", "ttyS0,115200n8"], "crashkernel": "auto", "net.ifnames": "0", "no_timer_check": true, "ro": true, "root": "UUID=6c248666-70f5-4037-8b24-17100c2f5c1e"}, "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/bin/python2", "has_sslcontext": true, "type": "CPython", "version": {"major": 2, "micro": 5, "minor": 7, "releaselevel": "final", "serial": 0}, "version_info": [2, 7, 5, "final", 0]}, "ansible_python_version": "2.7.5", "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": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBCfLVVKCgr+IwbI69Y28/2mIRUPrbtzxx3ZD3FVk59fEwDTxGcnfjblQz12er8R47dWKvjU/D68oUciwaiG81JI=", "ansible_ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAIOj5+8NVts2iyOYFz8lguOyXWmRDwCfNUbVNqsBzBs63", "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABAQCbXOqBvMJrUduwcdECRzd03ZMB7lxGUz68LBYHp0AdyNWKYW46VodvlVv+UunZYuMgeCkk9oofxQyPQnopXjYU1utU6QaIIJBFdrUOmC44Bige8dbI7IqhhNE2g6IrkEaYt3IpgMMO5LlkVXSupmu2tZaM+JcveCdjnKhOEeABx+HG0mrnggfC0cZUpQWckrXLtAeZvscP4Ry9dRYzJy4GiIeTPVfUoxCZr1X5cm+E7b5OJ3QoKLcqNrF+pootkVvstdZ1njDc7pmUmxVjsNpa3y8u1Xak3EySeP5JpOwD1xQxg3BuBEVioC0LsQIhZ+aph7c7RHnN0LYayhiDPIAz", "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", "35", "36+ep"], "ansible_system_capabilities_enforced": "True", "ansible_system_vendor": "QEMU", "ansible_uptime_seconds": 45, "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 [initial changes] ************************************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tests/tests_fcontext.yml:8 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-14.1.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-29.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:31 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/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-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:68 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": "/usr/sbin/semanage fcontext -D", "delta": "0:00:02.208149", "end": "2019-05-26 09:30:57.388990", "rc": 0, "start": "2019-05-26 09:30:55.180841", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpgy_izz8m/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:04.886995", "end": "2019-05-26 09:31:03.501290", "rc": 0, "start": "2019-05-26 09:30:58.614295", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:97 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => (item={'target': '/tmp/test_dir1(/.*)?', 'setype': 'user_home_dir_t', 'ftype': 'd'}) => {"ansible_loop_var": "item", "changed": true, "ftype": "d", "item": {"ftype": "d", "setype": "user_home_dir_t", "target": "/tmp/test_dir1(/.*)?"}, "serange": "s0", "setype": "user_home_dir_t", "seuser": "system_u", "state": "present", "target": "/tmp/test_dir1(/.*)?"} TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpgy_izz8m/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:118 TASK [Get local modifications - boolean] ******************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tests/set_selinux_variables.yml:2 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["/usr/sbin/semanage", "boolean", "-l", "-n", "-C"], "delta": "0:00:00.628829", "end": "2019-05-26 09:31:13.470664", "rc": 0, "start": "2019-05-26 09:31:12.841835", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - port] ********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/set_selinux_variables.yml:5 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["/usr/sbin/semanage", "port", "-l", "-n", "-C"], "delta": "0:00:00.525946", "end": "2019-05-26 09:31:15.272467", "rc": 0, "start": "2019-05-26 09:31:14.746521", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - login] ********************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tests/set_selinux_variables.yml:8 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["/usr/sbin/semanage", "login", "-l", "-n", "-C"], "delta": "0:00:00.568813", "end": "2019-05-26 09:31:16.851609", "rc": 0, "start": "2019-05-26 09:31:16.282796", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - fcontext] ****************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/set_selinux_variables.yml:11 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["/usr/sbin/semanage", "fcontext", "-l", "-n", "-C"], "delta": "0:00:00.743719", "end": "2019-05-26 09:31:18.748303", "rc": 0, "start": "2019-05-26 09:31:18.004584", "stderr": "", "stderr_lines": [], "stdout": "/tmp/test_dir1(/.*)? directory system_u:object_r:user_home_dir_t:s0 ", "stdout_lines": ["/tmp/test_dir1(/.*)? directory system_u:object_r:user_home_dir_t:s0 "]} TASK [save state after initial changes and before other changes] ******************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tests/tests_fcontext.yml:17 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"ansible_facts": {"fcontext_before": "/tmp/test_dir1(/.*)? directory system_u:object_r:user_home_dir_t:s0 "}, "changed": false} TASK [Check if there are SELinux fcontext mapping changes] ************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tests/tests_fcontext.yml:21 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [subsequent changes] ********************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/tests_fcontext.yml:25 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-14.1.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-29.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:31 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/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-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpgy_izz8m/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:04.706691", "end": "2019-05-26 09:31:29.394652", "rc": 0, "start": "2019-05-26 09:31:24.687961", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:97 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => (item={'target': '/tmp/test_dir2(/.*)?', 'setype': 'user_home_dir_t', 'ftype': 'd'}) => {"ansible_loop_var": "item", "changed": true, "ftype": "d", "item": {"ftype": "d", "setype": "user_home_dir_t", "target": "/tmp/test_dir2(/.*)?"}, "serange": "s0", "setype": "user_home_dir_t", "seuser": "system_u", "state": "present", "target": "/tmp/test_dir2(/.*)?"} TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpgy_izz8m/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:118 TASK [Get local modifications - boolean] ******************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tests/set_selinux_variables.yml:2 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["/usr/sbin/semanage", "boolean", "-l", "-n", "-C"], "delta": "0:00:00.701972", "end": "2019-05-26 09:31:39.270037", "rc": 0, "start": "2019-05-26 09:31:38.568065", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - port] ********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/set_selinux_variables.yml:5 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["/usr/sbin/semanage", "port", "-l", "-n", "-C"], "delta": "0:00:00.728704", "end": "2019-05-26 09:31:40.993337", "rc": 0, "start": "2019-05-26 09:31:40.264633", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - login] ********************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tests/set_selinux_variables.yml:8 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["/usr/sbin/semanage", "login", "-l", "-n", "-C"], "delta": "0:00:00.857253", "end": "2019-05-26 09:31:43.403577", "rc": 0, "start": "2019-05-26 09:31:42.546324", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - fcontext] ****************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/set_selinux_variables.yml:11 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["/usr/sbin/semanage", "fcontext", "-l", "-n", "-C"], "delta": "0:00:00.529894", "end": "2019-05-26 09:31:45.003436", "rc": 0, "start": "2019-05-26 09:31:44.473542", "stderr": "", "stderr_lines": [], "stdout": "/tmp/test_dir1(/.*)? directory system_u:object_r:user_home_dir_t:s0 \n/tmp/test_dir2(/.*)? directory system_u:object_r:user_home_dir_t:s0 ", "stdout_lines": ["/tmp/test_dir1(/.*)? directory system_u:object_r:user_home_dir_t:s0 ", "/tmp/test_dir2(/.*)? directory system_u:object_r:user_home_dir_t:s0 "]} TASK [save state after other changes] ********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/tests_fcontext.yml:34 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"ansible_facts": {"fcontext_after": "/tmp/test_dir1(/.*)? directory system_u:object_r:user_home_dir_t:s0 \n/tmp/test_dir2(/.*)? directory system_u:object_r:user_home_dir_t:s0 "}, "changed": false} TASK [Check if there are SELinux fcontext mapping changes] ************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tests/tests_fcontext.yml:38 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [revert subsequent changes] *************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/tests_fcontext.yml:42 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-14.1.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-29.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:31 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/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-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpgy_izz8m/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:04.517563", "end": "2019-05-26 09:31:55.048983", "rc": 0, "start": "2019-05-26 09:31:50.531420", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:97 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => (item={'target': '/tmp/test_dir2(/.*)?', 'setype': 'user_home_dir_t', 'ftype': 'd', 'state': 'absent'}) => {"ansible_loop_var": "item", "changed": true, "ftype": "d", "item": {"ftype": "d", "setype": "user_home_dir_t", "state": "absent", "target": "/tmp/test_dir2(/.*)?"}, "setype": "user_home_dir_t", "state": "absent", "target": "/tmp/test_dir2(/.*)?"} TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpgy_izz8m/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:118 TASK [Get local modifications - boolean] ******************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tests/set_selinux_variables.yml:2 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["/usr/sbin/semanage", "boolean", "-l", "-n", "-C"], "delta": "0:00:00.868335", "end": "2019-05-26 09:32:05.527437", "rc": 0, "start": "2019-05-26 09:32:04.659102", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - port] ********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/set_selinux_variables.yml:5 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["/usr/sbin/semanage", "port", "-l", "-n", "-C"], "delta": "0:00:00.566767", "end": "2019-05-26 09:32:07.435511", "rc": 0, "start": "2019-05-26 09:32:06.868744", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - login] ********************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tests/set_selinux_variables.yml:8 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["/usr/sbin/semanage", "login", "-l", "-n", "-C"], "delta": "0:00:00.458154", "end": "2019-05-26 09:32:08.820910", "rc": 0, "start": "2019-05-26 09:32:08.362756", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - fcontext] ****************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/set_selinux_variables.yml:11 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["/usr/sbin/semanage", "fcontext", "-l", "-n", "-C"], "delta": "0:00:00.795642", "end": "2019-05-26 09:32:10.732085", "rc": 0, "start": "2019-05-26 09:32:09.936443", "stderr": "", "stderr_lines": [], "stdout": "/tmp/test_dir1(/.*)? directory system_u:object_r:user_home_dir_t:s0 ", "stdout_lines": ["/tmp/test_dir1(/.*)? directory system_u:object_r:user_home_dir_t:s0 "]} TASK [save state after reverting other changes] ************************************************************************************************************************************************************ task path: /tmp/tmpgy_izz8m/tests/tests_fcontext.yml:51 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"ansible_facts": {"fcontext_after": "/tmp/test_dir1(/.*)? directory system_u:object_r:user_home_dir_t:s0 "}, "changed": false} TASK [Check if SELinux fcontext mapping is as before] ****************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/tests_fcontext.yml:55 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [include_role : selinux] ****************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/tests_fcontext.yml:59 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-14.1.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-29.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:31 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/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-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:68 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": "/usr/sbin/semanage fcontext -D", "delta": "0:00:06.305586", "end": "2019-05-26 09:32:22.971397", "rc": 0, "start": "2019-05-26 09:32:16.665811", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpgy_izz8m/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:04.968578", "end": "2019-05-26 09:32:29.205655", "rc": 0, "start": "2019-05-26 09:32:24.237077", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpgy_izz8m/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:118 TASK [Get local modifications - boolean] ******************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tests/set_selinux_variables.yml:2 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["/usr/sbin/semanage", "boolean", "-l", "-n", "-C"], "delta": "0:00:00.702079", "end": "2019-05-26 09:32:31.494597", "rc": 0, "start": "2019-05-26 09:32:30.792518", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - port] ********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/set_selinux_variables.yml:5 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["/usr/sbin/semanage", "port", "-l", "-n", "-C"], "delta": "0:00:00.664217", "end": "2019-05-26 09:32:33.302921", "rc": 0, "start": "2019-05-26 09:32:32.638704", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - login] ********************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tests/set_selinux_variables.yml:8 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["/usr/sbin/semanage", "login", "-l", "-n", "-C"], "delta": "0:00:00.741682", "end": "2019-05-26 09:32:35.425103", "rc": 0, "start": "2019-05-26 09:32:34.683421", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - fcontext] ****************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/set_selinux_variables.yml:11 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["/usr/sbin/semanage", "fcontext", "-l", "-n", "-C"], "delta": "0:00:00.483764", "end": "2019-05-26 09:32:36.965335", "rc": 0, "start": "2019-05-26 09:32:36.481571", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Check if there are no SELinux fcontext mapping changes] ********************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/tests_fcontext.yml:65 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } META: ran handlers META: ran handlers PLAY RECAP ************************************************************************************************************************************************************************************************* /home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2 : ok=47 changed=26 unreachable=0 failed=0 skipped=64 rescued=0 ignored=0 + cd /tmp/tmpgy_izz8m/tests; TEST_SUBJECTS=/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_selinux-35-af5a0a6-rhel-7-c5g40ows/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpgy_izz8m/_setup.yml /tmp/tmpgy_izz8m/tests/tests_login.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/tmpgy_izz8m/_setup.yml PLAY [Fail when only localhost is available] *************************************************************************************************************************************************************** META: ran handlers TASK [debug] *********************************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/_setup.yml:5 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "groups": { "all": [ "/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2" ], "localhost": [ "/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2" ], "subjects": [ "/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2" ], "ungrouped": [] } } TASK [fail] ************************************************************************************************************************************************************************************************ task path: /tmp/tmpgy_izz8m/_setup.yml:7 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.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/tmpgy_izz8m/_setup.yml:16 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.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-7.6-210.x86_64.qcow2 : ok=2 changed=1 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 statically imported: /tmp/tmpgy_izz8m/tests/set_selinux_variables.yml statically imported: /tmp/tmpgy_izz8m/tests/set_selinux_variables.yml statically imported: /tmp/tmpgy_izz8m/tests/set_selinux_variables.yml statically imported: /tmp/tmpgy_izz8m/tests/set_selinux_variables.yml PLAYBOOK: tests_login.yml ********************************************************************************************************************************************************************************** 1 plays in /tmp/tmpgy_izz8m/tests/tests_login.yml PLAY [Check if selinux role sets SELinux login mappings] *************************************************************************************************************************************************** TASK [Gathering Facts] ************************************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tests/tests_login.yml:2 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.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": "/boot/vmlinuz-3.10.0-957.el7.x86_64", "LANG": "en_US.UTF-8", "console": "ttyS0,115200n8", "crashkernel": "auto", "net.ifnames": "0", "no_timer_check": true, "ro": true, "root": "UUID=6c248666-70f5-4037-8b24-17100c2f5c1e"}, "ansible_date_time": {"date": "2019-05-26", "day": "26", "epoch": "1558877608", "hour": "09", "iso8601": "2019-05-26T13:33:28Z", "iso8601_basic": "20190526T093328790266", "iso8601_basic_short": "20190526T093328", "iso8601_micro": "2019-05-26T13:33:28.790401Z", "minute": "33", "month": "05", "second": "28", "time": "09:33:28", "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-15-32-38-00"], "vda1": ["6c248666-70f5-4037-8b24-17100c2f5c1e"]}}, "ansible_devices": {"fd0": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "1", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "deadline", "sectors": "8", "sectorsize": "512", "size": "4.00 KB", "support_discard": "0", "vendor": null, "virtual": 1}, "sr0": {"holders": [], "host": "", "links": {"ids": ["ata-QEMU_DVD-ROM_QM00003"], "labels": ["cidata"], "masters": [], "uuids": ["2019-05-26-15-32-38-00"]}, "model": "QEMU DVD-ROM", "partitions": {}, "removable": "1", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "deadline", "sectors": "728", "sectorsize": "2048", "size": "364.00 KB", "support_discard": "0", "vendor": "QEMU", "virtual": 1}, "vda": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {"vda1": {"holders": [], "links": {"ids": [], "labels": [], "masters": [], "uuids": ["6c248666-70f5-4037-8b24-17100c2f5c1e"]}, "sectors": "20969439", "sectorsize": 512, "size": "10.00 GB", "start": "2048", "uuid": "6c248666-70f5-4037-8b24-17100c2f5c1e"}}, "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": "7", "ansible_distribution_release": "Maipo", "ansible_distribution_version": "7.6", "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": {"HOME": "/root", "LANG": "de_DE.UTF-8", "LESSOPEN": "||/usr/bin/lesspipe.sh %s", "LOGNAME": "root", "LS_COLORS": "rs=0:di=38;5;27:ln=38;5;51:mh=44;38;5;15: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=05;48;5;232;38;5;15: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;34:*.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:*.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:*.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:*.jpg=38;5;13:*.jpeg=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:*.axv=38;5;13:*.anx=38;5;13:*.ogv=38;5;13:*.ogx=38;5;13:*.aac=38;5;45:*.au=38;5;45:*.flac=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:*.axa=38;5;45:*.oga=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 45922 22", "SSH_CONNECTION": "10.0.2.2 45922 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/bin/python2"}, "ansible_eth0": {"active": true, "device": "eth0", "features": {"busy_poll": "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", "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_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_ipip_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_sit_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_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 [fixed]", "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, "timestamping": ["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": "3.10.0-957.el7.x86_64", "ansible_lo": {"active": true, "device": "lo", "features": {"busy_poll": "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", "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_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_ipip_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_sit_segmentation": "off [fixed]", "tx_tcp6_segmentation": "on", "tx_tcp_ecn_segmentation": "on", "tx_tcp_mangleid_segmentation": "on", "tx_tcp_segmentation": "on", "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": "on", "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": ["rx_software", "software"], "type": "loopback"}, "ansible_local": {}, "ansible_lsb": {}, "ansible_machine": "x86_64", "ansible_machine_id": "02157b32152842eea872cb85240d20f0", "ansible_memfree_mb": 741, "ansible_memory_mb": {"nocache": {"free": 863, "used": 127}, "real": {"free": 741, "total": 990, "used": 249}, "swap": {"cached": 0, "free": 0, "total": 0, "used": 0}}, "ansible_memtotal_mb": 990, "ansible_mounts": [{"block_available": 2378299, "block_size": 4096, "block_total": 2618619, "block_used": 240320, "device": "/dev/vda1", "fstype": "xfs", "inode_available": 5213930, "inode_total": 5242352, "inode_used": 28422, "mount": "/", "options": "rw,seclabel,relatime,attr2,inode64,noquota", "size_available": 9741512704, "size_total": 10725863424, "uuid": "6c248666-70f5-4037-8b24-17100c2f5c1e"}], "ansible_nodename": "ibm-p8-kvm-03-guest-02.virt.pnr.lab.eng.rdu2.redhat.com", "ansible_os_family": "RedHat", "ansible_pkg_mgr": "yum", "ansible_proc_cmdline": {"BOOT_IMAGE": "/boot/vmlinuz-3.10.0-957.el7.x86_64", "LANG": "en_US.UTF-8", "console": ["tty0", "ttyS0,115200n8"], "crashkernel": "auto", "net.ifnames": "0", "no_timer_check": true, "ro": true, "root": "UUID=6c248666-70f5-4037-8b24-17100c2f5c1e"}, "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/bin/python2", "has_sslcontext": true, "type": "CPython", "version": {"major": 2, "micro": 5, "minor": 7, "releaselevel": "final", "serial": 0}, "version_info": [2, 7, 5, "final", 0]}, "ansible_python_version": "2.7.5", "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": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBGT+qb+S6lOIZF5vZKRnZePj08fBO1Es9qYzWcwDpVkkhp7an0VVNgXvaIZQ/4tnQle3ZjMm6y18qeVNMLIHPAM=", "ansible_ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAIMcfPj3S78lek7+BT3Wikipg7p39/vkTyi4tKtCmUhMx", "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABAQDQnzf25rhpNxnsFrJclPxRtqDlt+zx8hDm5vif1g8mUs7zK/QE2XaUHNOLg06X2ugWZBTCKZS8Ucy0D1zvFTR9XDjVgeWndeN4TNdQ0n01vZ5+jVxUIbUMrvYp05/dnT85f8panhmJlQBLPjF3uzkvmB9UDnlNlVZ+BbJ/JeRbUyoY0tIen73IKpdOlxa47WVgmPpbDoz8p6bnW5VAPYY9TTJymhdz8VOKqJCf/DE4rBaqF1nczgI8HbzBd2kdXx1az1YtXuUgC98GoFvdYb8kILbLnT85Tb1xleG6kOddddoR9094M+uYzZBjEkDtxQsAeY6/+S8qg2TADd0NzX8T", "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", "35", "36+ep"], "ansible_system_capabilities_enforced": "True", "ansible_system_vendor": "QEMU", "ansible_uptime_seconds": 46, "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 [Add a System Api Roles SELinux User] ***************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/tests_login.yml:7 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "comment": "System Api 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 [initial changes] ************************************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tests/tests_login.yml:12 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-14.1.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-29.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:31 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/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-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpgy_izz8m/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:76 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": "/usr/sbin/semanage login -D", "delta": "0:00:02.326428", "end": "2019-05-26 09:33:40.252983", "rc": 0, "start": "2019-05-26 09:33:37.926555", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:04.690732", "end": "2019-05-26 09:33:46.225027", "rc": 0, "start": "2019-05-26 09:33:41.534295", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpgy_izz8m/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:118 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => (item={'login': 'sar-user', 'seuser': 'staff_u', 'serange': 's0-s0:c0.c1023', 'state': 'present'}) => {"ansible_loop_var": "item", "changed": true, "item": {"login": "sar-user", "serange": "s0-s0:c0.c1023", "seuser": "staff_u", "state": "present"}, "login": "sar-user", "serange": "s0-s0:c0.c1023", "seuser": "staff_u", "state": "present"} TASK [Get local modifications - boolean] ******************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tests/set_selinux_variables.yml:2 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["/usr/sbin/semanage", "boolean", "-l", "-n", "-C"], "delta": "0:00:00.707476", "end": "2019-05-26 09:33:51.801467", "rc": 0, "start": "2019-05-26 09:33:51.093991", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - port] ********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/set_selinux_variables.yml:5 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["/usr/sbin/semanage", "port", "-l", "-n", "-C"], "delta": "0:00:00.473105", "end": "2019-05-26 09:33:53.451149", "rc": 0, "start": "2019-05-26 09:33:52.978044", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - login] ********************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tests/set_selinux_variables.yml:8 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["/usr/sbin/semanage", "login", "-l", "-n", "-C"], "delta": "0:00:00.425464", "end": "2019-05-26 09:33:54.925915", "rc": 0, "start": "2019-05-26 09:33:54.500451", "stderr": "", "stderr_lines": [], "stdout": "sar-user staff_u s0-s0:c0.c1023 *", "stdout_lines": ["sar-user staff_u s0-s0:c0.c1023 *"]} TASK [Get local modifications - fcontext] ****************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/set_selinux_variables.yml:11 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["/usr/sbin/semanage", "fcontext", "-l", "-n", "-C"], "delta": "0:00:00.490845", "end": "2019-05-26 09:33:56.521700", "rc": 0, "start": "2019-05-26 09:33:56.030855", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [save state after initial changes and before other changes] ******************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tests/tests_login.yml:22 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"ansible_facts": {"login_before": "sar-user staff_u s0-s0:c0.c1023 *"}, "changed": false} TASK [Check if there are SELinux login mapping changes] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/tests_login.yml:26 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [subsequent changes] ********************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/tests_login.yml:30 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-14.1.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-29.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:31 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/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-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpgy_izz8m/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:04.835248", "end": "2019-05-26 09:34:07.040249", "rc": 0, "start": "2019-05-26 09:34:02.205001", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpgy_izz8m/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:118 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => (item={'login': '__default__', 'seuser': 'staff_u', 'serange': 's0-s0:c0.c1023', 'state': 'present'}) => {"ansible_loop_var": "item", "changed": false, "item": {"login": "__default__", "serange": "s0-s0:c0.c1023", "seuser": "staff_u", "state": "present"}, "login": "__default__", "serange": "s0-s0:c0.c1023", "seuser": "staff_u", "state": "present"} TASK [Get local modifications - boolean] ******************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tests/set_selinux_variables.yml:2 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["/usr/sbin/semanage", "boolean", "-l", "-n", "-C"], "delta": "0:00:00.680138", "end": "2019-05-26 09:34:11.582263", "rc": 0, "start": "2019-05-26 09:34:10.902125", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - port] ********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/set_selinux_variables.yml:5 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["/usr/sbin/semanage", "port", "-l", "-n", "-C"], "delta": "0:00:00.602740", "end": "2019-05-26 09:34:13.121979", "rc": 0, "start": "2019-05-26 09:34:12.519239", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - login] ********************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tests/set_selinux_variables.yml:8 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["/usr/sbin/semanage", "login", "-l", "-n", "-C"], "delta": "0:00:00.419924", "end": "2019-05-26 09:34:14.500129", "rc": 0, "start": "2019-05-26 09:34:14.080205", "stderr": "", "stderr_lines": [], "stdout": "__default__ staff_u s0-s0:c0.c1023 *\nsar-user staff_u s0-s0:c0.c1023 *", "stdout_lines": ["__default__ staff_u s0-s0:c0.c1023 *", "sar-user staff_u s0-s0:c0.c1023 *"]} TASK [Get local modifications - fcontext] ****************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/set_selinux_variables.yml:11 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["/usr/sbin/semanage", "fcontext", "-l", "-n", "-C"], "delta": "0:00:00.410010", "end": "2019-05-26 09:34:15.623989", "rc": 0, "start": "2019-05-26 09:34:15.213979", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [save state after other changes] ********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/tests_login.yml:40 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"ansible_facts": {"login_after": "__default__ staff_u s0-s0:c0.c1023 *\nsar-user staff_u s0-s0:c0.c1023 *"}, "changed": false} TASK [Check if there are SELinux login mapping changes] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/tests_login.yml:44 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [revert subsequent changes] *************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/tests_login.yml:48 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-14.1.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-29.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:31 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/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-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpgy_izz8m/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:04.031779", "end": "2019-05-26 09:34:23.943122", "rc": 0, "start": "2019-05-26 09:34:19.911343", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpgy_izz8m/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:118 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => (item={'login': '__default__', 'seuser': 'staff_u', 'serange': 's0-s0:c0.c1023', 'state': 'absent'}) => {"ansible_loop_var": "item", "changed": true, "item": {"login": "__default__", "serange": "s0-s0:c0.c1023", "seuser": "staff_u", "state": "absent"}, "login": "__default__", "serange": "s0-s0:c0.c1023", "seuser": "staff_u", "state": "absent"} TASK [Get local modifications - boolean] ******************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tests/set_selinux_variables.yml:2 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["/usr/sbin/semanage", "boolean", "-l", "-n", "-C"], "delta": "0:00:00.416292", "end": "2019-05-26 09:34:27.360257", "rc": 0, "start": "2019-05-26 09:34:26.943965", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - port] ********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/set_selinux_variables.yml:5 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["/usr/sbin/semanage", "port", "-l", "-n", "-C"], "delta": "0:00:00.358109", "end": "2019-05-26 09:34:28.441961", "rc": 0, "start": "2019-05-26 09:34:28.083852", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - login] ********************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tests/set_selinux_variables.yml:8 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["/usr/sbin/semanage", "login", "-l", "-n", "-C"], "delta": "0:00:00.414066", "end": "2019-05-26 09:34:29.662942", "rc": 0, "start": "2019-05-26 09:34:29.248876", "stderr": "", "stderr_lines": [], "stdout": "sar-user staff_u s0-s0:c0.c1023 *", "stdout_lines": ["sar-user staff_u s0-s0:c0.c1023 *"]} TASK [Get local modifications - fcontext] ****************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/set_selinux_variables.yml:11 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["/usr/sbin/semanage", "fcontext", "-l", "-n", "-C"], "delta": "0:00:00.462300", "end": "2019-05-26 09:34:30.818152", "rc": 0, "start": "2019-05-26 09:34:30.355852", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [save state after reverting other changes] ************************************************************************************************************************************************************ task path: /tmp/tmpgy_izz8m/tests/tests_login.yml:58 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"ansible_facts": {"login_after": "sar-user staff_u s0-s0:c0.c1023 *"}, "changed": false} TASK [Check if SELinux login mapping is as before] ********************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tests/tests_login.yml:62 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [include_role : selinux] ****************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/tests_login.yml:66 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-14.1.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-29.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:31 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/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-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpgy_izz8m/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:76 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": "/usr/sbin/semanage login -D", "delta": "0:00:05.214720", "end": "2019-05-26 09:34:41.348963", "rc": 0, "start": "2019-05-26 09:34:36.134243", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:04.643656", "end": "2019-05-26 09:34:46.923343", "rc": 0, "start": "2019-05-26 09:34:42.279687", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpgy_izz8m/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:118 TASK [Get local modifications - boolean] ******************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tests/set_selinux_variables.yml:2 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["/usr/sbin/semanage", "boolean", "-l", "-n", "-C"], "delta": "0:00:00.574766", "end": "2019-05-26 09:34:48.977944", "rc": 0, "start": "2019-05-26 09:34:48.403178", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - port] ********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/set_selinux_variables.yml:5 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["/usr/sbin/semanage", "port", "-l", "-n", "-C"], "delta": "0:00:00.593257", "end": "2019-05-26 09:34:50.500548", "rc": 0, "start": "2019-05-26 09:34:49.907291", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - login] ********************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tests/set_selinux_variables.yml:8 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["/usr/sbin/semanage", "login", "-l", "-n", "-C"], "delta": "0:00:00.538616", "end": "2019-05-26 09:34:52.100001", "rc": 0, "start": "2019-05-26 09:34:51.561385", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - fcontext] ****************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/set_selinux_variables.yml:11 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["/usr/sbin/semanage", "fcontext", "-l", "-n", "-C"], "delta": "0:00:00.696781", "end": "2019-05-26 09:34:53.793235", "rc": 0, "start": "2019-05-26 09:34:53.096454", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Check if there are no SELinux login mapping changes] ************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tests/tests_login.yml:72 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Remove a System Api Roles SELinux User] ************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/tests_login.yml:76 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "force": false, "name": "sar-user", "remove": false, "state": "absent"} META: ran handlers META: ran handlers PLAY RECAP ************************************************************************************************************************************************************************************************* /home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2 : ok=49 changed=27 unreachable=0 failed=0 skipped=64 rescued=0 ignored=0 + cd /tmp/tmpgy_izz8m/tests; TEST_SUBJECTS=/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_selinux-35-af5a0a6-rhel-7-c5g40ows/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpgy_izz8m/_setup.yml /tmp/tmpgy_izz8m/tests/tests_port.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/tmpgy_izz8m/_setup.yml PLAY [Fail when only localhost is available] *************************************************************************************************************************************************************** META: ran handlers TASK [debug] *********************************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/_setup.yml:5 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "groups": { "all": [ "/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2" ], "localhost": [ "/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2" ], "subjects": [ "/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2" ], "ungrouped": [] } } TASK [fail] ************************************************************************************************************************************************************************************************ task path: /tmp/tmpgy_izz8m/_setup.yml:7 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.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/tmpgy_izz8m/_setup.yml:16 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.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-7.6-210.x86_64.qcow2 : ok=2 changed=1 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 statically imported: /tmp/tmpgy_izz8m/tests/set_selinux_variables.yml statically imported: /tmp/tmpgy_izz8m/tests/set_selinux_variables.yml statically imported: /tmp/tmpgy_izz8m/tests/set_selinux_variables.yml statically imported: /tmp/tmpgy_izz8m/tests/set_selinux_variables.yml PLAYBOOK: tests_port.yml *********************************************************************************************************************************************************************************** 1 plays in /tmp/tmpgy_izz8m/tests/tests_port.yml PLAY [Check if selinux role sets SELinux port mapping] ***************************************************************************************************************************************************** TASK [Gathering Facts] ************************************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tests/tests_port.yml:2 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.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": "/boot/vmlinuz-3.10.0-957.el7.x86_64", "LANG": "en_US.UTF-8", "console": "ttyS0,115200n8", "crashkernel": "auto", "net.ifnames": "0", "no_timer_check": true, "ro": true, "root": "UUID=6c248666-70f5-4037-8b24-17100c2f5c1e"}, "ansible_date_time": {"date": "2019-05-26", "day": "26", "epoch": "1558877747", "hour": "09", "iso8601": "2019-05-26T13:35:47Z", "iso8601_basic": "20190526T093547293662", "iso8601_basic_short": "20190526T093547", "iso8601_micro": "2019-05-26T13:35:47.293785Z", "minute": "35", "month": "05", "second": "47", "time": "09:35:47", "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-15-34-56-00"], "vda1": ["6c248666-70f5-4037-8b24-17100c2f5c1e"]}}, "ansible_devices": {"fd0": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "1", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "deadline", "sectors": "8", "sectorsize": "512", "size": "4.00 KB", "support_discard": "0", "vendor": null, "virtual": 1}, "sr0": {"holders": [], "host": "", "links": {"ids": ["ata-QEMU_DVD-ROM_QM00003"], "labels": ["cidata"], "masters": [], "uuids": ["2019-05-26-15-34-56-00"]}, "model": "QEMU DVD-ROM", "partitions": {}, "removable": "1", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "deadline", "sectors": "728", "sectorsize": "2048", "size": "364.00 KB", "support_discard": "0", "vendor": "QEMU", "virtual": 1}, "vda": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {"vda1": {"holders": [], "links": {"ids": [], "labels": [], "masters": [], "uuids": ["6c248666-70f5-4037-8b24-17100c2f5c1e"]}, "sectors": "20969439", "sectorsize": 512, "size": "10.00 GB", "start": "2048", "uuid": "6c248666-70f5-4037-8b24-17100c2f5c1e"}}, "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": "7", "ansible_distribution_release": "Maipo", "ansible_distribution_version": "7.6", "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": {"HOME": "/root", "LANG": "de_DE.UTF-8", "LESSOPEN": "||/usr/bin/lesspipe.sh %s", "LOGNAME": "root", "LS_COLORS": "rs=0:di=38;5;27:ln=38;5;51:mh=44;38;5;15: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=05;48;5;232;38;5;15: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;34:*.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:*.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:*.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:*.jpg=38;5;13:*.jpeg=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:*.axv=38;5;13:*.anx=38;5;13:*.ogv=38;5;13:*.ogx=38;5;13:*.aac=38;5;45:*.au=38;5;45:*.flac=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:*.axa=38;5;45:*.oga=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 55666 22", "SSH_CONNECTION": "10.0.2.2 55666 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/bin/python2"}, "ansible_eth0": {"active": true, "device": "eth0", "features": {"busy_poll": "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", "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_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_ipip_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_sit_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_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 [fixed]", "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, "timestamping": ["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": "3.10.0-957.el7.x86_64", "ansible_lo": {"active": true, "device": "lo", "features": {"busy_poll": "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", "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_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_ipip_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_sit_segmentation": "off [fixed]", "tx_tcp6_segmentation": "on", "tx_tcp_ecn_segmentation": "on", "tx_tcp_mangleid_segmentation": "on", "tx_tcp_segmentation": "on", "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": "on", "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": ["rx_software", "software"], "type": "loopback"}, "ansible_local": {}, "ansible_lsb": {}, "ansible_machine": "x86_64", "ansible_machine_id": "5b578636976a4e3ebf8de8d89acff683", "ansible_memfree_mb": 745, "ansible_memory_mb": {"nocache": {"free": 867, "used": 123}, "real": {"free": 745, "total": 990, "used": 245}, "swap": {"cached": 0, "free": 0, "total": 0, "used": 0}}, "ansible_memtotal_mb": 990, "ansible_mounts": [{"block_available": 2378299, "block_size": 4096, "block_total": 2618619, "block_used": 240320, "device": "/dev/vda1", "fstype": "xfs", "inode_available": 5213930, "inode_total": 5242352, "inode_used": 28422, "mount": "/", "options": "rw,seclabel,relatime,attr2,inode64,noquota", "size_available": 9741512704, "size_total": 10725863424, "uuid": "6c248666-70f5-4037-8b24-17100c2f5c1e"}], "ansible_nodename": "ibm-p8-kvm-03-guest-02.virt.pnr.lab.eng.rdu2.redhat.com", "ansible_os_family": "RedHat", "ansible_pkg_mgr": "yum", "ansible_proc_cmdline": {"BOOT_IMAGE": "/boot/vmlinuz-3.10.0-957.el7.x86_64", "LANG": "en_US.UTF-8", "console": ["tty0", "ttyS0,115200n8"], "crashkernel": "auto", "net.ifnames": "0", "no_timer_check": true, "ro": true, "root": "UUID=6c248666-70f5-4037-8b24-17100c2f5c1e"}, "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/bin/python2", "has_sslcontext": true, "type": "CPython", "version": {"major": 2, "micro": 5, "minor": 7, "releaselevel": "final", "serial": 0}, "version_info": [2, 7, 5, "final", 0]}, "ansible_python_version": "2.7.5", "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": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBBGfzleYsp/0LUO8yExom4aopuaicqpmEp9Phr6zssIX+M6Y4qcCVVKLzLlfU0/6FBnbn2B4jEU6J/bxY+B0mbI=", "ansible_ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAIM/W54MoFuunH3M6STQBac+M9yeLL9OSdyy4/RE8ZDIp", "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABAQC31rNVVshfMRm0uGA32tHM/uRaRsL7ud1+TfuHmT76CulzdHrSgFG8F/8AaXBjWWt1c1gOSmoiIXBefcha07xDLxNtykW493NZlGcJsmbqAKyEJ0LIWlprGPHO+dCTFrAj54sy8oPoKmYA3hj36qS50kgWnhnMAjIkYJQmppum49Sn9P4WlUhaWiVcgZj3HUfPhInGLz/bU4j75bCy4yztfTG3at6r1jJhPIoZDaMv6c5x0mVDUpq3uXQ+Y1btLZED0hCltS4FgZyNtqa4eb0UWNNpPQWAyJX002T1We3qgCHkXd1d5WMQuKRIzjsaBhoV9ZWlZqGpnoSNaNrSoD1F", "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", "35", "36+ep"], "ansible_system_capabilities_enforced": "True", "ansible_system_vendor": "QEMU", "ansible_uptime_seconds": 46, "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 [initial changes] ************************************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tests/tests_port.yml:7 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-14.1.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-29.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:31 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/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-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpgy_izz8m/tasks/main.yml:72 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": "/usr/sbin/semanage port -D", "delta": "0:00:02.683086", "end": "2019-05-26 09:35:56.100591", "rc": 0, "start": "2019-05-26 09:35:53.417505", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:05.574475", "end": "2019-05-26 09:36:02.777905", "rc": 0, "start": "2019-05-26 09:35:57.203430", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpgy_izz8m/tasks/main.yml:110 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => (item={'ports': '22100', 'proto': 'tcp', 'setype': 'ssh_port_t', 'state': 'present'}) => {"ansible_loop_var": "item", "changed": true, "item": {"ports": "22100", "proto": "tcp", "setype": "ssh_port_t", "state": "present"}, "ports": ["22100"], "proto": "tcp", "setype": "ssh_port_t", "state": "present"} TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:118 TASK [Get local modifications - boolean] ******************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tests/set_selinux_variables.yml:2 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["/usr/sbin/semanage", "boolean", "-l", "-n", "-C"], "delta": "0:00:00.506795", "end": "2019-05-26 09:36:12.470637", "rc": 0, "start": "2019-05-26 09:36:11.963842", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - port] ********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/set_selinux_variables.yml:5 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["/usr/sbin/semanage", "port", "-l", "-n", "-C"], "delta": "0:00:00.476576", "end": "2019-05-26 09:36:13.933648", "rc": 0, "start": "2019-05-26 09:36:13.457072", "stderr": "", "stderr_lines": [], "stdout": "ssh_port_t tcp 22100", "stdout_lines": ["ssh_port_t tcp 22100"]} TASK [Get local modifications - login] ********************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tests/set_selinux_variables.yml:8 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["/usr/sbin/semanage", "login", "-l", "-n", "-C"], "delta": "0:00:00.419217", "end": "2019-05-26 09:36:15.067599", "rc": 0, "start": "2019-05-26 09:36:14.648382", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - fcontext] ****************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/set_selinux_variables.yml:11 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["/usr/sbin/semanage", "fcontext", "-l", "-n", "-C"], "delta": "0:00:00.620616", "end": "2019-05-26 09:36:16.541064", "rc": 0, "start": "2019-05-26 09:36:15.920448", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [save state after initial changes and before other changes] ******************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tests/tests_port.yml:16 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"ansible_facts": {"port_before": "ssh_port_t tcp 22100"}, "changed": false} TASK [Check if there are SELinux port mapping changes] ***************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/tests_port.yml:20 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [subsequent changes] ********************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/tests_port.yml:24 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-14.1.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-29.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:31 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/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-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpgy_izz8m/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:04.656223", "end": "2019-05-26 09:36:26.571845", "rc": 0, "start": "2019-05-26 09:36:21.915622", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpgy_izz8m/tasks/main.yml:110 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => (item={'ports': '22022', 'proto': 'tcp', 'setype': 'ssh_port_t', 'state': 'present'}) => {"ansible_loop_var": "item", "changed": true, "item": {"ports": "22022", "proto": "tcp", "setype": "ssh_port_t", "state": "present"}, "ports": ["22022"], "proto": "tcp", "setype": "ssh_port_t", "state": "present"} TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:118 TASK [Get local modifications - boolean] ******************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tests/set_selinux_variables.yml:2 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["/usr/sbin/semanage", "boolean", "-l", "-n", "-C"], "delta": "0:00:00.549982", "end": "2019-05-26 09:36:36.010066", "rc": 0, "start": "2019-05-26 09:36:35.460084", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - port] ********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/set_selinux_variables.yml:5 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["/usr/sbin/semanage", "port", "-l", "-n", "-C"], "delta": "0:00:00.483268", "end": "2019-05-26 09:36:37.533979", "rc": 0, "start": "2019-05-26 09:36:37.050711", "stderr": "", "stderr_lines": [], "stdout": "ssh_port_t tcp 22100, 22022", "stdout_lines": ["ssh_port_t tcp 22100, 22022"]} TASK [Get local modifications - login] ********************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tests/set_selinux_variables.yml:8 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["/usr/sbin/semanage", "login", "-l", "-n", "-C"], "delta": "0:00:00.447568", "end": "2019-05-26 09:36:38.981330", "rc": 0, "start": "2019-05-26 09:36:38.533762", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - fcontext] ****************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/set_selinux_variables.yml:11 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["/usr/sbin/semanage", "fcontext", "-l", "-n", "-C"], "delta": "0:00:00.976916", "end": "2019-05-26 09:36:41.684728", "rc": 0, "start": "2019-05-26 09:36:40.707812", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [save state after other changes] ********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/tests_port.yml:33 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"ansible_facts": {"port_after": "ssh_port_t tcp 22100, 22022"}, "changed": false} TASK [Check if there are SELinux port mapping changes] ***************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/tests_port.yml:37 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [revert subsequent changes] *************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/tests_port.yml:41 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-14.1.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-29.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:31 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/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-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpgy_izz8m/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:04.760375", "end": "2019-05-26 09:36:52.177947", "rc": 0, "start": "2019-05-26 09:36:47.417572", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpgy_izz8m/tasks/main.yml:110 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => (item={'ports': '22022', 'proto': 'tcp', 'setype': 'ssh_port_t', 'state': 'absent'}) => {"ansible_loop_var": "item", "changed": true, "item": {"ports": "22022", "proto": "tcp", "setype": "ssh_port_t", "state": "absent"}, "ports": ["22022"], "proto": "tcp", "setype": "ssh_port_t", "state": "absent"} TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:118 TASK [Get local modifications - boolean] ******************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tests/set_selinux_variables.yml:2 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["/usr/sbin/semanage", "boolean", "-l", "-n", "-C"], "delta": "0:00:00.558024", "end": "2019-05-26 09:37:01.570459", "rc": 0, "start": "2019-05-26 09:37:01.012435", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - port] ********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/set_selinux_variables.yml:5 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["/usr/sbin/semanage", "port", "-l", "-n", "-C"], "delta": "0:00:00.536094", "end": "2019-05-26 09:37:03.153869", "rc": 0, "start": "2019-05-26 09:37:02.617775", "stderr": "", "stderr_lines": [], "stdout": "ssh_port_t tcp 22100", "stdout_lines": ["ssh_port_t tcp 22100"]} TASK [Get local modifications - login] ********************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tests/set_selinux_variables.yml:8 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["/usr/sbin/semanage", "login", "-l", "-n", "-C"], "delta": "0:00:00.555638", "end": "2019-05-26 09:37:04.677078", "rc": 0, "start": "2019-05-26 09:37:04.121440", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - fcontext] ****************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/set_selinux_variables.yml:11 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["/usr/sbin/semanage", "fcontext", "-l", "-n", "-C"], "delta": "0:00:00.693794", "end": "2019-05-26 09:37:06.675436", "rc": 0, "start": "2019-05-26 09:37:05.981642", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [save state after reverting other changes] ************************************************************************************************************************************************************ task path: /tmp/tmpgy_izz8m/tests/tests_port.yml:50 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"ansible_facts": {"port_after": "ssh_port_t tcp 22100"}, "changed": false} TASK [Check if SELinux port mapping is as before] ********************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/tests_port.yml:54 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [include_role : selinux] ****************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/tests_port.yml:58 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-14.1.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-29.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:31 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/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-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpgy_izz8m/tasks/main.yml:72 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": "/usr/sbin/semanage port -D", "delta": "0:00:05.117359", "end": "2019-05-26 09:37:16.674988", "rc": 0, "start": "2019-05-26 09:37:11.557629", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:03.865136", "end": "2019-05-26 09:37:21.271796", "rc": 0, "start": "2019-05-26 09:37:17.406660", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpgy_izz8m/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:118 TASK [Get local modifications - boolean] ******************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tests/set_selinux_variables.yml:2 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["/usr/sbin/semanage", "boolean", "-l", "-n", "-C"], "delta": "0:00:00.444383", "end": "2019-05-26 09:37:23.015866", "rc": 0, "start": "2019-05-26 09:37:22.571483", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - port] ********************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/set_selinux_variables.yml:5 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["/usr/sbin/semanage", "port", "-l", "-n", "-C"], "delta": "0:00:00.423873", "end": "2019-05-26 09:37:24.365761", "rc": 0, "start": "2019-05-26 09:37:23.941888", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - login] ********************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tests/set_selinux_variables.yml:8 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["/usr/sbin/semanage", "login", "-l", "-n", "-C"], "delta": "0:00:00.350778", "end": "2019-05-26 09:37:25.478436", "rc": 0, "start": "2019-05-26 09:37:25.127658", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - fcontext] ****************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/set_selinux_variables.yml:11 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["/usr/sbin/semanage", "fcontext", "-l", "-n", "-C"], "delta": "0:00:00.401491", "end": "2019-05-26 09:37:26.611111", "rc": 0, "start": "2019-05-26 09:37:26.209620", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Check if there are no SELinux port mapping changes] ************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/tests_port.yml:64 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } META: ran handlers META: ran handlers PLAY RECAP ************************************************************************************************************************************************************************************************* /home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2 : ok=47 changed=26 unreachable=0 failed=0 skipped=64 rescued=0 ignored=0 + cd /tmp/tmpgy_izz8m/tests; TEST_SUBJECTS=/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_selinux-35-af5a0a6-rhel-7-c5g40ows/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpgy_izz8m/_setup.yml /tmp/tmpgy_izz8m/tests/tests_selinux_disabled.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/tmpgy_izz8m/_setup.yml PLAY [Fail when only localhost is available] *************************************************************************************************************************************************************** META: ran handlers TASK [debug] *********************************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/_setup.yml:5 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "groups": { "all": [ "/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2" ], "localhost": [ "/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2" ], "subjects": [ "/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2" ], "ungrouped": [] } } TASK [fail] ************************************************************************************************************************************************************************************************ task path: /tmp/tmpgy_izz8m/_setup.yml:7 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.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/tmpgy_izz8m/_setup.yml:16 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.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-7.6-210.x86_64.qcow2 : ok=2 changed=1 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_selinux_disabled.yml *********************************************************************************************************************************************************************** 1 plays in /tmp/tmpgy_izz8m/tests/tests_selinux_disabled.yml PLAY [Ensure the default is targeted, enforcing, without local modifications] ****************************************************************************************************************************** TASK [Gathering Facts] ************************************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tests/tests_selinux_disabled.yml:2 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.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": "/boot/vmlinuz-3.10.0-957.el7.x86_64", "LANG": "en_US.UTF-8", "console": "ttyS0,115200n8", "crashkernel": "auto", "net.ifnames": "0", "no_timer_check": true, "ro": true, "root": "UUID=6c248666-70f5-4037-8b24-17100c2f5c1e"}, "ansible_date_time": {"date": "2019-05-26", "day": "26", "epoch": "1558877887", "hour": "09", "iso8601": "2019-05-26T13:38:07Z", "iso8601_basic": "20190526T093807276628", "iso8601_basic_short": "20190526T093807", "iso8601_micro": "2019-05-26T13:38:07.276813Z", "minute": "38", "month": "05", "second": "07", "time": "09:38:07", "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-15-37-27-00"], "vda1": ["6c248666-70f5-4037-8b24-17100c2f5c1e"]}}, "ansible_devices": {"fd0": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "1", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "deadline", "sectors": "8", "sectorsize": "512", "size": "4.00 KB", "support_discard": "0", "vendor": null, "virtual": 1}, "sr0": {"holders": [], "host": "", "links": {"ids": ["ata-QEMU_DVD-ROM_QM00003"], "labels": ["cidata"], "masters": [], "uuids": ["2019-05-26-15-37-27-00"]}, "model": "QEMU DVD-ROM", "partitions": {}, "removable": "1", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "deadline", "sectors": "728", "sectorsize": "2048", "size": "364.00 KB", "support_discard": "0", "vendor": "QEMU", "virtual": 1}, "vda": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {"vda1": {"holders": [], "links": {"ids": [], "labels": [], "masters": [], "uuids": ["6c248666-70f5-4037-8b24-17100c2f5c1e"]}, "sectors": "20969439", "sectorsize": 512, "size": "10.00 GB", "start": "2048", "uuid": "6c248666-70f5-4037-8b24-17100c2f5c1e"}}, "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": "7", "ansible_distribution_release": "Maipo", "ansible_distribution_version": "7.6", "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": {"HOME": "/root", "LANG": "de_DE.UTF-8", "LESSOPEN": "||/usr/bin/lesspipe.sh %s", "LOGNAME": "root", "LS_COLORS": "rs=0:di=38;5;27:ln=38;5;51:mh=44;38;5;15: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=05;48;5;232;38;5;15: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;34:*.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:*.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:*.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:*.jpg=38;5;13:*.jpeg=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:*.axv=38;5;13:*.anx=38;5;13:*.ogv=38;5;13:*.ogx=38;5;13:*.aac=38;5;45:*.au=38;5;45:*.flac=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:*.axa=38;5;45:*.oga=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 36642 22", "SSH_CONNECTION": "10.0.2.2 36642 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/bin/python2"}, "ansible_eth0": {"active": true, "device": "eth0", "features": {"busy_poll": "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", "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_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_ipip_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_sit_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_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 [fixed]", "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, "timestamping": ["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": "3.10.0-957.el7.x86_64", "ansible_lo": {"active": true, "device": "lo", "features": {"busy_poll": "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", "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_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_ipip_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_sit_segmentation": "off [fixed]", "tx_tcp6_segmentation": "on", "tx_tcp_ecn_segmentation": "on", "tx_tcp_mangleid_segmentation": "on", "tx_tcp_segmentation": "on", "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": "on", "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": ["rx_software", "software"], "type": "loopback"}, "ansible_local": {}, "ansible_lsb": {}, "ansible_machine": "x86_64", "ansible_machine_id": "49630cc35bec4c43a351b4ac44d69b75", "ansible_memfree_mb": 742, "ansible_memory_mb": {"nocache": {"free": 864, "used": 126}, "real": {"free": 742, "total": 990, "used": 248}, "swap": {"cached": 0, "free": 0, "total": 0, "used": 0}}, "ansible_memtotal_mb": 990, "ansible_mounts": [{"block_available": 2378299, "block_size": 4096, "block_total": 2618619, "block_used": 240320, "device": "/dev/vda1", "fstype": "xfs", "inode_available": 5213930, "inode_total": 5242352, "inode_used": 28422, "mount": "/", "options": "rw,seclabel,relatime,attr2,inode64,noquota", "size_available": 9741512704, "size_total": 10725863424, "uuid": "6c248666-70f5-4037-8b24-17100c2f5c1e"}], "ansible_nodename": "ibm-p8-kvm-03-guest-02.virt.pnr.lab.eng.rdu2.redhat.com", "ansible_os_family": "RedHat", "ansible_pkg_mgr": "yum", "ansible_proc_cmdline": {"BOOT_IMAGE": "/boot/vmlinuz-3.10.0-957.el7.x86_64", "LANG": "en_US.UTF-8", "console": ["tty0", "ttyS0,115200n8"], "crashkernel": "auto", "net.ifnames": "0", "no_timer_check": true, "ro": true, "root": "UUID=6c248666-70f5-4037-8b24-17100c2f5c1e"}, "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/bin/python2", "has_sslcontext": true, "type": "CPython", "version": {"major": 2, "micro": 5, "minor": 7, "releaselevel": "final", "serial": 0}, "version_info": [2, 7, 5, "final", 0]}, "ansible_python_version": "2.7.5", "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": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBF39Tq1qX6pkWffSEJEdKx4p3KYmO2aGehNUrAMthdpOfOT4x/sjVwzLumDjjgvk8I5Iqj3tCZbEL+hyTSCc+wk=", "ansible_ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAIDLCYCHFAW9k0caJyiQUhSM8mulINDbMnjKQN7X5KPbF", "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABAQCtoS0i26qCs3EprTAXH3YtXKiGN6jm8Oep6UwgfLGcikDZc8s6JrnBbjpL8Q7bcU0KHO+z3mypedRzUh3OColnsymJ3W3U7afMuFR5wHbg3hjUPojZ9NBSYdRg+9lUDUqmLkEG7mINYrwx4b6VJyC0ykzTtzGnMTKdeqrsatZUhoTmm/66ojkf0V/qlCUoEslVyPeU5qwVwt5no7hNuGTFdt4krwjbZFPNAlKGNu0ZmZt/bQdC85QJYqzX+veM8mf44sJ5ys5Lma9KcbcvXVvCF3GRZgw8kZW8Nhkzr9UMThgtu38m8JXJKz0/umEU0q6qghzO/4RjUO9KWit8ChCt", "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", "35", "36+ep"], "ansible_system_capabilities_enforced": "True", "ansible_system_vendor": "QEMU", "ansible_uptime_seconds": 35, "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/tmpgy_izz8m/tests/tests_selinux_disabled.yml:16 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Add a Linux System Roles SELinux User] *************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/tests_selinux_disabled.yml:23 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.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/tmpgy_izz8m/tests/tests_selinux_disabled.yml:27 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.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.922145", "end": "2019-05-26 09:38:17.705720", "rc": 0, "start": "2019-05-26 09:38:09.783575", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Backup original /etc/selinux/config] ***************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/tests_selinux_disabled.yml:29 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "checksum": "fe4ed0aa93618472e1004b6f68ae1b0733485fc5", "dest": "/etc/selinux/config.test_selinux_disabled", "gid": 0, "group": "root", "md5sum": "ff8d2663b88f1a20c8489fdf152e6b31", "mode": "0644", "owner": "root", "secontext": "system_u:object_r:selinux_config_t:s0", "size": 542, "src": "/etc/selinux/config", "state": "file", "uid": 0} TASK [Upload testing /etc/selinux/config] ****************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/tests_selinux_disabled.yml:34 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "checksum": "385caf4e178c9a1dfcdaac71738934c735201480", "dest": "/etc/selinux/config", "gid": 0, "group": "root", "md5sum": "293160d55f3a26d5bc687154d028eb47", "mode": "0644", "owner": "root", "secontext": "system_u:object_r:selinux_config_t:s0", "size": 547, "src": "/root/.ansible/tmp/ansible-tmp-1558877899.0069351-4136869932137/source", "state": "file", "uid": 0} TASK [Switch to permissive to allow login when selinuxfs is not mounted] *********************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/tests_selinux_disabled.yml:38 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["setenforce", "0"], "delta": "0:00:00.018062", "end": "2019-05-26 09:38:21.660888", "rc": 0, "start": "2019-05-26 09:38:21.642826", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get selinuxfs mountpoint] **************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/tests_selinux_disabled.yml:41 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": "findmnt -n -t selinuxfs --output=target", "delta": "0:00:00.014330", "end": "2019-05-26 09:38:22.715341", "rc": 0, "start": "2019-05-26 09:38:22.701011", "stderr": "", "stderr_lines": [], "stdout": "/sys/fs/selinux", "stdout_lines": ["/sys/fs/selinux"]} TASK [Umount /sys/fs/selinux to emulate SELinux disabled system] ******************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tests/tests_selinux_disabled.yml:44 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["umount", "/sys/fs/selinux"], "delta": "0:00:00.029951", "end": "2019-05-26 09:38:23.851925", "rc": 0, "start": "2019-05-26 09:38:23.821974", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [include_role : selinux] ****************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/tests_selinux_disabled.yml:49 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-14.1.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-29.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgy_izz8m/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tasks/main.yml:31 skipping: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/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-7.6-210.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/tmpgy_izz8m/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"ansible_facts": {"selinux_reboot_required": true}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/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-7.6-210.x86_64.qcow2]: FAILED! => {"changed": false, "msg": "Reboot is required to apply changes. Re-execute the role after boot."} TASK [examine the selinux_reboot_required variable] ******************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/tests_selinux_disabled.yml:52 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"ansible_facts": {"test_selinux_reboot_required": true}, "changed": false} TASK [check that the role has failed and set the correct variable] ***************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/tests_selinux_disabled.yml:56 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Mount /sys/fs/selinux back to system] **************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/tests_selinux_disabled.yml:60 [WARNING]: Consider using the mount module rather than running 'mount'. If you need to use command because mount is insufficient you can add 'warn: false' to this command task or set 'command_warnings=False' in ansible.cfg to get rid of this message. changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["mount", "-t", "selinuxfs", "selinuxfs", "/sys/fs/selinux"], "delta": "0:00:00.040033", "end": "2019-05-26 09:38:33.137965", "rc": 0, "start": "2019-05-26 09:38:33.097932", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Switch back to enforcing] **************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/tests_selinux_disabled.yml:62 changed: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] => {"changed": true, "cmd": ["setenforce", "1"], "delta": "0:00:00.038379", "end": "2019-05-26 09:38:34.674827", "rc": 0, "start": "2019-05-26 09:38:34.636448", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Gather facts again] ********************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/tests_selinux_disabled.yml:64 ok: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2] TASK [Check SELinux config mode] *************************************************************************************************************************************************************************** task path: /tmp/tmpgy_izz8m/tests/tests_selinux_disabled.yml:66 fatal: [/home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2]: FAILED! => {"changed": false, "msg": "Invalid options for assert: mgs"} PLAY RECAP ************************************************************************************************************************************************************************************************* /home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2 : ok=19 changed=11 unreachable=0 failed=1 skipped=5 rescued=1 ignored=0