+ cd /tmp/tmpb2b2nphi/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-cjl1o16m/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpb2b2nphi/_setup.yml /tmp/tmpb2b2nphi/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/tmpb2b2nphi/_setup.yml PLAY [Fail when only localhost is available] *************************************************************************************************************************************************************** META: ran handlers TASK [debug] *********************************************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/_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/tmpb2b2nphi/_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/tmpb2b2nphi/_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/tmpb2b2nphi/tests/set_selinux_variables.yml statically imported: /tmp/tmpb2b2nphi/tests/set_selinux_variables.yml PLAYBOOK: tests_all_purge.yml ****************************************************************************************************************************************************************************** 1 plays in /tmp/tmpb2b2nphi/tests/tests_all_purge.yml PLAY [Test that selinux_all_purge drops local modifications, defaults to no] ******************************************************************************************************************************* TASK [Gathering Facts] ************************************************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/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-25", "day": "25", "epoch": "1558810450", "hour": "14", "iso8601": "2019-05-25T18:54:10Z", "iso8601_basic": "20190525T145410363106", "iso8601_basic_short": "20190525T145410", "iso8601_micro": "2019-05-25T18:54:10.363259Z", "minute": "54", "month": "05", "second": "10", "time": "14:54:10", "tz": "EDT", "tz_offset": "-0400", "weekday": "Samstag", "weekday_number": "6", "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-25-20-53-40-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-25-20-53-40-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 52470 22", "SSH_CONNECTION": "10.0.2.2 52470 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": "afe4e11f04224f39a2da4a6ebe9071b2", "ansible_memfree_mb": 739, "ansible_memory_mb": {"nocache": {"free": 861, "used": 129}, "real": {"free": 739, "total": 990, "used": 251}, "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": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBJKVCfQHAfwLRh0hH7MBKvnGpEuf7c4NYpnXkSg1ltgoBsXFhZpdZFw0ZP1OjDkH0cAFlqFMyOqhQuXI/cF+ab8=", "ansible_ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAIFU5YERcojU80awHnRPbJeUdasuxiO5nYqSwTnzVmGDE", "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABAQCTJ6fXUtcASfeNRyyyfVd+cAfU22wceF64bjVlWVZzmMk6Hx7ry4m6o5rAYR8g3+4OHzsBga+l5cetOvuaTgl0hCVIIBPTeS3gPiotsfroGw96gCqOU47/QJI1ARFmmhdu9Sne9d59CDy96326FO+ZHfUTdFUAAY8XKqT9JUIj47y9comBdfLBqefjt1pCZDE7qyAVehEhU4QghuBlT5xRDKGT5jDW5Awam82stbr/aUcvntEfRnQfpNouZeYyiOwVIZ9o1LDWHYc4rObRSQa33TXyv33v3CBU5v0ELCMzk772JnqcPZFfJVMR/LxAjSiTsgpQ4gbSa9LHWS895gGB", "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": 26, "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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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:05.824414", "end": "2019-05-25 14:54:18.485350", "rc": 0, "start": "2019-05-25 14:54:12.660936", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Apply role with defaults, should not drop local modifications] *************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tests/tests_all_purge.yml:27 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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:02.788406", "end": "2019-05-25 14:54:24.255199", "rc": 0, "start": "2019-05-25 14:54:21.466793", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpb2b2nphi/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:118 TASK [Get local modifications - boolean] ******************************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/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.252848", "end": "2019-05-25 14:54:25.011261", "rc": 0, "start": "2019-05-25 14:54:24.758413", "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/tmpb2b2nphi/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.190858", "end": "2019-05-25 14:54:25.503459", "rc": 0, "start": "2019-05-25 14:54:25.312601", "stderr": "", "stderr_lines": [], "stdout": "ssh_port_t tcp 22100", "stdout_lines": ["ssh_port_t tcp 22100"]} TASK [Get local modifications - login] ********************************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/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.327661", "end": "2019-05-25 14:54:26.151933", "rc": 0, "start": "2019-05-25 14:54:25.824272", "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/tmpb2b2nphi/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.414270", "end": "2019-05-25 14:54:27.205667", "rc": 0, "start": "2019-05-25 14:54:26.791397", "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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/tests/tests_all_purge.yml:45 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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:01.466784", "end": "2019-05-25 14:54:32.923480", "rc": 0, "start": "2019-05-25 14:54:31.456696", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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.342229", "end": "2019-05-25 14:54:37.051159", "rc": 0, "start": "2019-05-25 14:54:33.708930", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpb2b2nphi/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:118 TASK [Get local modifications - boolean] ******************************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/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.389230", "end": "2019-05-25 14:54:38.456321", "rc": 0, "start": "2019-05-25 14:54:38.067091", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - port] ********************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/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.284252", "end": "2019-05-25 14:54:39.476593", "rc": 0, "start": "2019-05-25 14:54:39.192341", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - login] ********************************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/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.247427", "end": "2019-05-25 14:54:40.400119", "rc": 0, "start": "2019-05-25 14:54:40.152692", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - fcontext] ****************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/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.323212", "end": "2019-05-25 14:54:41.286591", "rc": 0, "start": "2019-05-25 14:54:40.963379", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Check if local modifications are empty - booleans] *************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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-cjl1o16m/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpb2b2nphi/_setup.yml /tmp/tmpb2b2nphi/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/tmpb2b2nphi/_setup.yml PLAY [Fail when only localhost is available] *************************************************************************************************************************************************************** META: ran handlers TASK [debug] *********************************************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/_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/tmpb2b2nphi/_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/tmpb2b2nphi/_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/tmpb2b2nphi/tests/tests_all_transitions.yml PLAY [Test all the possible selinux_state transitions] ***************************************************************************************************************************************************** TASK [Gathering Facts] ************************************************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/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-25", "day": "25", "epoch": "1558810511", "hour": "14", "iso8601": "2019-05-25T18:55:11Z", "iso8601_basic": "20190525T145511383836", "iso8601_basic_short": "20190525T145511", "iso8601_micro": "2019-05-25T18:55:11.383995Z", "minute": "55", "month": "05", "second": "11", "time": "14:55:11", "tz": "EDT", "tz_offset": "-0400", "weekday": "Samstag", "weekday_number": "6", "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-25-20-54-43-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-25-20-54-43-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 57196 22", "SSH_CONNECTION": "10.0.2.2 57196 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": "398467e20d04482db81140394a514cce", "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": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBDdo1ixqzzwyxmfH8S9JSmf+sFNcG8I1MCywKLRepypbx1sRLYbg/VIW+TOVfevrV8Enoek9GVqIZZPzgKPv9qc=", "ansible_ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAIBeIstMaWabim5IVQMjl5oj7U3PF8Rgzs1ck8HaoS/RQ", "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABAQDHGtRve5VXlDUZpOjphoySoDCdSrn6EpO/W1Kfk3p72GWboTx701tscyE5rRDz7A1V0dh3sHQiee5vOSY6TZNSZCXrSWT3IyVp/ZQXjYIqLh+r/Ks5LsEnMsuyLXiKXImCxFvrguW32WHa9zwhAtSM5Q+QWm2WHQ39zKeYxiD3qhDGEaA1R/2CRFaBOKplk7JK0MStOW/Ib7OXg89VHhoTXO4ehFvPnANq8l4yD7Q3ink7fZ5cHzU64i+iT1g7PfSaZUuz3Q53vO//A5KWzzkArwhca1tVq2rzUZJ1Qz5fUJ2f67xe54igojkufUsJjAX598sHm98qom28gBrgk00F", "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": 24, "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/tmpb2b2nphi/tests/tests_all_transitions.yml:11 included: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/tests/tests_all_transitions.yml:14 included: /tmp/tmpb2b2nphi/tests/selinux_test_transitions.yml for /home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2 included: /tmp/tmpb2b2nphi/tests/selinux_test_transitions.yml for /home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2 included: /tmp/tmpb2b2nphi/tests/selinux_test_transitions.yml for /home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2 included: /tmp/tmpb2b2nphi/tests/selinux_test_transitions.yml for /home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2 included: /tmp/tmpb2b2nphi/tests/selinux_test_transitions.yml for /home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2 included: /tmp/tmpb2b2nphi/tests/selinux_test_transitions.yml for /home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2 included: /tmp/tmpb2b2nphi/tests/selinux_test_transitions.yml for /home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2 included: /tmp/tmpb2b2nphi/tests/selinux_test_transitions.yml for /home/till/lsr-test-harness-files/cache/rhel-guest-image-7.6-210.x86_64.qcow2 included: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/tests/selinux_test_transitions.yml:5 included: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/tests/selinux_apply_reboot.yml:3 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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:02.493263", "end": "2019-05-25 14:55:20.087133", "rc": 0, "start": "2019-05-25 14:55:17.593870", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpb2b2nphi/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:118 TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/tests/selinux_test_transitions.yml:22 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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:02.761955", "end": "2019-05-25 14:55:26.719228", "rc": 0, "start": "2019-05-25 14:55:23.957273", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpb2b2nphi/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:118 TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/tests/selinux_test_transitions.yml:34 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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.065726", "end": "2019-05-25 14:55:35.405609", "rc": 0, "start": "2019-05-25 14:55:32.339883", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpb2b2nphi/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:118 TASK [apply the desired state if necessary with reboot] **************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/tests/selinux_test_transitions.yml:5 included: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/tests/selinux_apply_reboot.yml:3 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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:02.552413", "end": "2019-05-25 14:55:42.716058", "rc": 0, "start": "2019-05-25 14:55:40.163645", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpb2b2nphi/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:118 TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/tests/selinux_test_transitions.yml:22 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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:02.958378", "end": "2019-05-25 14:55:50.170244", "rc": 0, "start": "2019-05-25 14:55:47.211866", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpb2b2nphi/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:118 TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/tests/selinux_test_transitions.yml:34 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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.325077", "end": "2019-05-25 14:55:57.599805", "rc": 0, "start": "2019-05-25 14:55:54.274728", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpb2b2nphi/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:118 TASK [apply the desired state if necessary with reboot] **************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/tests/selinux_test_transitions.yml:5 included: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/tests/selinux_apply_reboot.yml:3 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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.012779", "end": "2019-05-25 14:56:06.743564", "rc": 0, "start": "2019-05-25 14:56:03.730785", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpb2b2nphi/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:118 TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/tests/selinux_test_transitions.yml:22 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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:02.917701", "end": "2019-05-25 14:56:13.590812", "rc": 0, "start": "2019-05-25 14:56:10.673111", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpb2b2nphi/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:118 TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/tests/selinux_test_transitions.yml:44 included: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/tests/selinux_apply_reboot.yml:3 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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": "294769422601.5380", "changed": true, "finished": 0, "results_file": "/root/.ansible_async/294769422601.5380", "started": 1} TASK [wait for managed host to come back] ****************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/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": 18} TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/tests/selinux_test_transitions.yml:5 included: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/tests/selinux_apply_reboot.yml:3 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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": "995663736193.3304", "changed": true, "finished": 0, "results_file": "/root/.ansible_async/995663736193.3304", "started": 1} TASK [wait for managed host to come back] ****************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/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": 45} TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/tests/selinux_test_transitions.yml:22 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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:02.648006", "end": "2019-05-25 14:57:29.560178", "rc": 0, "start": "2019-05-25 14:57:26.912172", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpb2b2nphi/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:118 TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/tests/selinux_test_transitions.yml:34 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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:02.438974", "end": "2019-05-25 14:57:35.418935", "rc": 0, "start": "2019-05-25 14:57:32.979961", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpb2b2nphi/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:118 TASK [apply the desired state if necessary with reboot] **************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/tests/selinux_test_transitions.yml:5 included: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/tests/selinux_apply_reboot.yml:3 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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:02.534303", "end": "2019-05-25 14:57:41.547899", "rc": 0, "start": "2019-05-25 14:57:39.013596", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpb2b2nphi/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:118 TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/tests/selinux_test_transitions.yml:22 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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:02.347377", "end": "2019-05-25 14:57:46.699559", "rc": 0, "start": "2019-05-25 14:57:44.352182", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpb2b2nphi/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:118 TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/tests/selinux_test_transitions.yml:34 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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:02.453057", "end": "2019-05-25 14:57:52.282252", "rc": 0, "start": "2019-05-25 14:57:49.829195", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpb2b2nphi/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:118 TASK [apply the desired state if necessary with reboot] **************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/tests/selinux_test_transitions.yml:5 included: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/tests/selinux_apply_reboot.yml:3 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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:02.454148", "end": "2019-05-25 14:57:58.445050", "rc": 0, "start": "2019-05-25 14:57:55.990902", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpb2b2nphi/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:118 TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/tests/selinux_test_transitions.yml:22 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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:02.502495", "end": "2019-05-25 14:58:04.140140", "rc": 0, "start": "2019-05-25 14:58:01.637645", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpb2b2nphi/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:118 TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/tests/selinux_test_transitions.yml:44 included: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/tests/selinux_apply_reboot.yml:3 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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": "890257116499.4911", "changed": true, "finished": 0, "results_file": "/root/.ansible_async/890257116499.4911", "started": 1} TASK [wait for managed host to come back] ****************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/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": 21} TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/tests/selinux_test_transitions.yml:5 included: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/tests/selinux_apply_reboot.yml:3 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpb2b2nphi/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:118 TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/tests/selinux_test_transitions.yml:22 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpb2b2nphi/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:118 TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/tests/selinux_test_transitions.yml:44 included: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/tests/selinux_apply_reboot.yml:3 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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": "985562159114.3681", "changed": true, "finished": 0, "results_file": "/root/.ansible_async/985562159114.3681", "started": 1} TASK [wait for managed host to come back] ****************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/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": 44} TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/tests/selinux_test_transitions.yml:5 included: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/tests/selinux_apply_reboot.yml:3 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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": "589272173288.3321", "changed": true, "finished": 0, "results_file": "/root/.ansible_async/589272173288.3321", "started": 1} TASK [wait for managed host to come back] ****************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/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": 18} TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/tests/selinux_test_transitions.yml:22 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpb2b2nphi/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:118 TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/tests/selinux_test_transitions.yml:44 included: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/tests/selinux_apply_reboot.yml:3 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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": "975996558135.3469", "changed": true, "finished": 0, "results_file": "/root/.ansible_async/975996558135.3469", "started": 1} TASK [wait for managed host to come back] ****************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/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": 43} TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/tests/selinux_test_transitions.yml:5 included: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/tests/selinux_apply_reboot.yml:3 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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": "184904362305.3312", "changed": true, "finished": 0, "results_file": "/root/.ansible_async/184904362305.3312", "started": 1} TASK [wait for managed host to come back] ****************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/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": 21} TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/tests/selinux_test_transitions.yml:22 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpb2b2nphi/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:118 TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/tests/selinux_test_transitions.yml:34 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpb2b2nphi/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:118 TASK [apply the desired state if necessary with reboot] **************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/tests/tests_all_transitions.yml:23 included: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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": "381044115502.3626", "changed": true, "finished": 0, "results_file": "/root/.ansible_async/381044115502.3626", "started": 1} TASK [wait for managed host to come back] ****************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/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": 50} 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/tmpb2b2nphi/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-cjl1o16m/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpb2b2nphi/_setup.yml /tmp/tmpb2b2nphi/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/tmpb2b2nphi/_setup.yml PLAY [Fail when only localhost is available] *************************************************************************************************************************************************************** META: ran handlers TASK [debug] *********************************************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/_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/tmpb2b2nphi/_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/tmpb2b2nphi/_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/tmpb2b2nphi/tests/set_selinux_variables.yml statically imported: /tmp/tmpb2b2nphi/tests/set_selinux_variables.yml statically imported: /tmp/tmpb2b2nphi/tests/set_selinux_variables.yml PLAYBOOK: tests_boolean.yml ******************************************************************************************************************************************************************************** 1 plays in /tmp/tmpb2b2nphi/tests/tests_boolean.yml PLAY [Check if selinux role sets SELinux booleans] ********************************************************************************************************************************************************* TASK [Gathering Facts] ************************************************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/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-25", "day": "25", "epoch": "1558810944", "hour": "15", "iso8601": "2019-05-25T19:02:24Z", "iso8601_basic": "20190525T150224660403", "iso8601_basic_short": "20190525T150224", "iso8601_micro": "2019-05-25T19:02:24.660483Z", "minute": "02", "month": "05", "second": "24", "time": "15:02:24", "tz": "EDT", "tz_offset": "-0400", "weekday": "Samstag", "weekday_number": "6", "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-25-21-01-59-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-25-21-01-59-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 44458 22", "SSH_CONNECTION": "10.0.2.2 44458 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": "dfda45c1f6d94a87b7684740be7fc6c7", "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": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBF/NQnXKO+7ciu7owEKFBa3j0LUSid434xW7UUCKk4WgiUoA15rGsyH48g2MBWEWf4Z+cAlxJ7RScbEExXjF8eA=", "ansible_ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAIHRbU/TUvCiQo+a2sRAgp0c4DsiZxRhgJV2MKCXSHy73", "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABAQC+OyOyXbnxWcJ+KxC63EtgBeIyuCq0IK2wPHDb6XggDTpOT+hBKXNeUWSL7Q9PCXkea8Az5vbB0jzCWWOcxQqlMQi9eRPhnLWvgpqRGSK23wV+al00TRExLN9vt58t4BUdlvvSpRArfSS3boKDIv887lH5PYTVT1DJeBtbTicTnkQ7bqv5722bSnJkENAce1jKqZqOtVN8jVRa1Y2AGo7aI1eB/JD9djVxGok09nyq9WoeafEKiyI1h/9yP0GrXSjUrDab7alJINyjJmCPSr44YH1a+pZpopIG2FYSxWSEaSvmEkiPWoG7rFWtWfyJObYqYMgVZ7z1G0dhojk/JgRz", "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": 21, "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/tmpb2b2nphi/tests/tests_boolean.yml:7 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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:01.005366", "end": "2019-05-25 15:02:28.083131", "rc": 0, "start": "2019-05-25 15:02:27.077765", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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:02.412978", "end": "2019-05-25 15:02:30.878856", "rc": 0, "start": "2019-05-25 15:02:28.465878", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpb2b2nphi/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:118 TASK [Get local modifications - boolean] ******************************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/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.194256", "end": "2019-05-25 15:02:32.805623", "rc": 0, "start": "2019-05-25 15:02:32.611367", "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/tmpb2b2nphi/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.179401", "end": "2019-05-25 15:02:33.392392", "rc": 0, "start": "2019-05-25 15:02:33.212991", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - login] ********************************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/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.286237", "end": "2019-05-25 15:02:34.046928", "rc": 0, "start": "2019-05-25 15:02:33.760691", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - fcontext] ****************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/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.238216", "end": "2019-05-25 15:02:34.608011", "rc": 0, "start": "2019-05-25 15:02:34.369795", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [save state after initial changes and before other changes] ******************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/tests/tests_boolean.yml:24 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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:02.416723", "end": "2019-05-25 15:02:39.556206", "rc": 0, "start": "2019-05-25 15:02:37.139483", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpb2b2nphi/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:118 TASK [Get local modifications - boolean] ******************************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/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.197440", "end": "2019-05-25 15:02:41.206718", "rc": 0, "start": "2019-05-25 15:02:41.009278", "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/tmpb2b2nphi/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.190110", "end": "2019-05-25 15:02:41.712831", "rc": 0, "start": "2019-05-25 15:02:41.522721", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - login] ********************************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/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.185750", "end": "2019-05-25 15:02:42.295680", "rc": 0, "start": "2019-05-25 15:02:42.109930", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - fcontext] ****************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/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.184504", "end": "2019-05-25 15:02:42.805423", "rc": 0, "start": "2019-05-25 15:02:42.620919", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [save state after other changes] ********************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/tests/tests_boolean.yml:41 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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:03.287176", "end": "2019-05-25 15:02:48.028687", "rc": 0, "start": "2019-05-25 15:02:44.741511", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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:02.415391", "end": "2019-05-25 15:02:50.932892", "rc": 0, "start": "2019-05-25 15:02:48.517501", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpb2b2nphi/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:118 TASK [Get local modifications - boolean] ******************************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/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.258256", "end": "2019-05-25 15:02:51.881269", "rc": 0, "start": "2019-05-25 15:02:51.623013", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - port] ********************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/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.186351", "end": "2019-05-25 15:02:52.425667", "rc": 0, "start": "2019-05-25 15:02:52.239316", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - login] ********************************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/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.201254", "end": "2019-05-25 15:02:52.940795", "rc": 0, "start": "2019-05-25 15:02:52.739541", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - fcontext] ****************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/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.175256", "end": "2019-05-25 15:02:53.457183", "rc": 0, "start": "2019-05-25 15:02:53.281927", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Check if there are no SELinux boolean mapping changes] *********************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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-cjl1o16m/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpb2b2nphi/_setup.yml /tmp/tmpb2b2nphi/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/tmpb2b2nphi/_setup.yml PLAY [Fail when only localhost is available] *************************************************************************************************************************************************************** META: ran handlers TASK [debug] *********************************************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/_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/tmpb2b2nphi/_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/tmpb2b2nphi/_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/tmpb2b2nphi/tests/set_selinux_variables.yml statically imported: /tmp/tmpb2b2nphi/tests/set_selinux_variables.yml statically imported: /tmp/tmpb2b2nphi/tests/set_selinux_variables.yml statically imported: /tmp/tmpb2b2nphi/tests/set_selinux_variables.yml PLAYBOOK: tests_fcontext.yml ******************************************************************************************************************************************************************************* 1 plays in /tmp/tmpb2b2nphi/tests/tests_fcontext.yml PLAY [Check if selinux role sets SELinux fcontext mappings] ************************************************************************************************************************************************ TASK [Gathering Facts] ************************************************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/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-25", "day": "25", "epoch": "1558811001", "hour": "15", "iso8601": "2019-05-25T19:03:21Z", "iso8601_basic": "20190525T150321026650", "iso8601_basic_short": "20190525T150321", "iso8601_micro": "2019-05-25T19:03:21.026791Z", "minute": "03", "month": "05", "second": "21", "time": "15:03:21", "tz": "EDT", "tz_offset": "-0400", "weekday": "Samstag", "weekday_number": "6", "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-25-21-02-54-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-25-21-02-54-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 38266 22", "SSH_CONNECTION": "10.0.2.2 38266 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": "c7752b3af17f486ea9c6c0c52719b132", "ansible_memfree_mb": 740, "ansible_memory_mb": {"nocache": {"free": 862, "used": 128}, "real": {"free": 740, "total": 990, "used": 250}, "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": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBO45f/XOr4N2xApytXah0QUgDa0xqDDn6s/SbZYrbZrTyPhCNaa3RrG5WDW8QfxZpFGoOQwwtBCp7Ru8XHeZo5I=", "ansible_ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAIFrkzC6kVqiR0y4i9smt3pCiUvOrCRybti+fiqq97sSW", "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABAQDbGQlwLSsZgoEH6W9zxh+kE2kc51nbAtCNZt7Np7q6wMBbhz9JzGXfhsAxms7oufWMgqmwrJFO0Y6O2WGgKa4RxDW2nuzh2sqlEHwEyXL0WzdLonBBIA03wDRyRPqi7FZ9BAXw00S3Xb9gYy0q5ZxkwnpXLndxFlLbDpTUCOMqPVZzEdyOy3ht1pqEDDS9YWaHqIRsiKyMDNBf3xcNLiPIbySwd2DhXiWZh29lEahNglHHzhxz7On1pMqjWOKwwB8AmJcWM8/vQJj26rwbN+rXpKXQxjnj9H7Ov0ielXdjN0PwFNkFLASg91mOvR3JVXcYMe4dlVzLTFN9C7czpIlr", "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": 23, "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/tmpb2b2nphi/tests/tests_fcontext.yml:8 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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:01.026275", "end": "2019-05-25 15:03:25.280546", "rc": 0, "start": "2019-05-25 15:03:24.254271", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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:02.713072", "end": "2019-05-25 15:03:28.399072", "rc": 0, "start": "2019-05-25 15:03:25.686000", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpb2b2nphi/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:118 TASK [Get local modifications - boolean] ******************************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/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.388594", "end": "2019-05-25 15:03:34.182074", "rc": 0, "start": "2019-05-25 15:03:33.793480", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - port] ********************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/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.379236", "end": "2019-05-25 15:03:35.212334", "rc": 0, "start": "2019-05-25 15:03:34.833098", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - login] ********************************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/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.391853", "end": "2019-05-25 15:03:36.096767", "rc": 0, "start": "2019-05-25 15:03:35.704914", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - fcontext] ****************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/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.219801", "end": "2019-05-25 15:03:36.694782", "rc": 0, "start": "2019-05-25 15:03:36.474981", "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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/tests/tests_fcontext.yml:25 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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:02.448137", "end": "2019-05-25 15:03:41.139499", "rc": 0, "start": "2019-05-25 15:03:38.691362", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpb2b2nphi/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:118 TASK [Get local modifications - boolean] ******************************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/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.203809", "end": "2019-05-25 15:03:45.306229", "rc": 0, "start": "2019-05-25 15:03:45.102420", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - port] ********************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/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.193308", "end": "2019-05-25 15:03:45.794103", "rc": 0, "start": "2019-05-25 15:03:45.600795", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - login] ********************************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/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.198604", "end": "2019-05-25 15:03:46.333005", "rc": 0, "start": "2019-05-25 15:03:46.134401", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - fcontext] ****************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/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.284056", "end": "2019-05-25 15:03:46.928991", "rc": 0, "start": "2019-05-25 15:03:46.644935", "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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/tests/tests_fcontext.yml:42 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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:02.386815", "end": "2019-05-25 15:03:51.567763", "rc": 0, "start": "2019-05-25 15:03:49.180948", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpb2b2nphi/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:118 TASK [Get local modifications - boolean] ******************************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/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.196947", "end": "2019-05-25 15:03:55.810876", "rc": 0, "start": "2019-05-25 15:03:55.613929", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - port] ********************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/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.209773", "end": "2019-05-25 15:03:56.401279", "rc": 0, "start": "2019-05-25 15:03:56.191506", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - login] ********************************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/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.247542", "end": "2019-05-25 15:03:56.952527", "rc": 0, "start": "2019-05-25 15:03:56.704985", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - fcontext] ****************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/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.214863", "end": "2019-05-25 15:03:57.499978", "rc": 0, "start": "2019-05-25 15:03:57.285115", "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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/tests/tests_fcontext.yml:59 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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:03.696996", "end": "2019-05-25 15:04:03.115533", "rc": 0, "start": "2019-05-25 15:03:59.418537", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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:02.446592", "end": "2019-05-25 15:04:05.993780", "rc": 0, "start": "2019-05-25 15:04:03.547188", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpb2b2nphi/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:118 TASK [Get local modifications - boolean] ******************************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/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.191741", "end": "2019-05-25 15:04:06.660935", "rc": 0, "start": "2019-05-25 15:04:06.469194", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - port] ********************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/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.211862", "end": "2019-05-25 15:04:07.286649", "rc": 0, "start": "2019-05-25 15:04:07.074787", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - login] ********************************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/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.191353", "end": "2019-05-25 15:04:07.801895", "rc": 0, "start": "2019-05-25 15:04:07.610542", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - fcontext] ****************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/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.216953", "end": "2019-05-25 15:04:08.432128", "rc": 0, "start": "2019-05-25 15:04:08.215175", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Check if there are no SELinux fcontext mapping changes] ********************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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-cjl1o16m/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpb2b2nphi/_setup.yml /tmp/tmpb2b2nphi/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/tmpb2b2nphi/_setup.yml PLAY [Fail when only localhost is available] *************************************************************************************************************************************************************** META: ran handlers TASK [debug] *********************************************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/_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/tmpb2b2nphi/_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/tmpb2b2nphi/_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/tmpb2b2nphi/tests/set_selinux_variables.yml statically imported: /tmp/tmpb2b2nphi/tests/set_selinux_variables.yml statically imported: /tmp/tmpb2b2nphi/tests/set_selinux_variables.yml statically imported: /tmp/tmpb2b2nphi/tests/set_selinux_variables.yml PLAYBOOK: tests_login.yml ********************************************************************************************************************************************************************************** 1 plays in /tmp/tmpb2b2nphi/tests/tests_login.yml PLAY [Check if selinux role sets SELinux login mappings] *************************************************************************************************************************************************** TASK [Gathering Facts] ************************************************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/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-25", "day": "25", "epoch": "1558811074", "hour": "15", "iso8601": "2019-05-25T19:04:34Z", "iso8601_basic": "20190525T150434712496", "iso8601_basic_short": "20190525T150434", "iso8601_micro": "2019-05-25T19:04:34.712565Z", "minute": "04", "month": "05", "second": "34", "time": "15:04:34", "tz": "EDT", "tz_offset": "-0400", "weekday": "Samstag", "weekday_number": "6", "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-25-21-04-09-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-25-21-04-09-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 56922 22", "SSH_CONNECTION": "10.0.2.2 56922 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": "2d2b52609db14ad385c33071903f80f7", "ansible_memfree_mb": 740, "ansible_memory_mb": {"nocache": {"free": 862, "used": 128}, "real": {"free": 740, "total": 990, "used": 250}, "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": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBNbmQb2SoWa/aSBmDxWUTbdcF9m0v7w/S3/6wFFLGHTCo+Yn87jL+0D9m3d/w9shJnzurHk5DQi/QwfqmIXmR18=", "ansible_ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAILxOGknuSa5qp1I4TILG40NYnbroNq5mT7nANCO0q3Wb", "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABAQDSJHUmY+KQG1VRXIy3Yvbyz/oA2ZaWVB7V0RsGZs+blBYefk66w7vISBMoehy3misf2FPajhlqKiuE/gYyGcfKGURqxz/hsGBhqWsSjDmuBhwjJMiKJeC5biiMudhSvjg553D1nRclZqFMuOwVhTmxmRPlD4kMt9me65hkQD/XXlHNaCJchNDtYK14c+1XzQT8pUsRBVlt5jvxcr18aLzq4jH+2/ijKbTZ8kuDh7oKBMH9cADvKX92QCMzsbFPo+8IHD3Pfp35CTvg7p4Leww7pQ5fM3jlfFQhA3dwZmwseJmN5bHi2WmhVzpsaHjj6XcEjlOIJbL7gnfNNd+uaz3j", "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": 22, "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/tmpb2b2nphi/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/tmpb2b2nphi/tests/tests_login.yml:12 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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:01.023634", "end": "2019-05-25 15:04:38.987658", "rc": 0, "start": "2019-05-25 15:04:37.964024", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/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:02.431217", "end": "2019-05-25 15:04:41.772783", "rc": 0, "start": "2019-05-25 15:04:39.341566", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpb2b2nphi/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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.194555", "end": "2019-05-25 15:04:43.803994", "rc": 0, "start": "2019-05-25 15:04:43.609439", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - port] ********************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/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.200807", "end": "2019-05-25 15:04:44.387027", "rc": 0, "start": "2019-05-25 15:04:44.186220", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - login] ********************************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/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.416589", "end": "2019-05-25 15:04:45.108831", "rc": 0, "start": "2019-05-25 15:04:44.692242", "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/tmpb2b2nphi/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.317908", "end": "2019-05-25 15:04:45.872525", "rc": 0, "start": "2019-05-25 15:04:45.554617", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [save state after initial changes and before other changes] ******************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/tests/tests_login.yml:30 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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:02.336529", "end": "2019-05-25 15:04:50.353155", "rc": 0, "start": "2019-05-25 15:04:48.016626", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpb2b2nphi/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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.301650", "end": "2019-05-25 15:04:52.039643", "rc": 0, "start": "2019-05-25 15:04:51.737993", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - port] ********************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/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.222423", "end": "2019-05-25 15:04:52.580385", "rc": 0, "start": "2019-05-25 15:04:52.357962", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - login] ********************************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/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.220904", "end": "2019-05-25 15:04:53.147069", "rc": 0, "start": "2019-05-25 15:04:52.926165", "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/tmpb2b2nphi/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.205120", "end": "2019-05-25 15:04:53.683508", "rc": 0, "start": "2019-05-25 15:04:53.478388", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [save state after other changes] ********************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/tests/tests_login.yml:48 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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:02.400297", "end": "2019-05-25 15:04:58.039760", "rc": 0, "start": "2019-05-25 15:04:55.639463", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpb2b2nphi/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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.293846", "end": "2019-05-25 15:04:59.901639", "rc": 0, "start": "2019-05-25 15:04:59.607793", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - port] ********************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/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.365816", "end": "2019-05-25 15:05:01.006570", "rc": 0, "start": "2019-05-25 15:05:00.640754", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - login] ********************************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/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.239856", "end": "2019-05-25 15:05:01.904441", "rc": 0, "start": "2019-05-25 15:05:01.664585", "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/tmpb2b2nphi/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.241319", "end": "2019-05-25 15:05:02.695379", "rc": 0, "start": "2019-05-25 15:05:02.454060", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [save state after reverting other changes] ************************************************************************************************************************************************************ task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/tests/tests_login.yml:66 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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:03.093968", "end": "2019-05-25 15:05:08.253691", "rc": 0, "start": "2019-05-25 15:05:05.159723", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/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:02.663630", "end": "2019-05-25 15:05:11.263804", "rc": 0, "start": "2019-05-25 15:05:08.600174", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpb2b2nphi/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:118 TASK [Get local modifications - boolean] ******************************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/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.274749", "end": "2019-05-25 15:05:11.979912", "rc": 0, "start": "2019-05-25 15:05:11.705163", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - port] ********************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/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.196114", "end": "2019-05-25 15:05:12.500043", "rc": 0, "start": "2019-05-25 15:05:12.303929", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - login] ********************************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/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.331236", "end": "2019-05-25 15:05:13.136719", "rc": 0, "start": "2019-05-25 15:05:12.805483", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - fcontext] ****************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/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.397714", "end": "2019-05-25 15:05:14.028649", "rc": 0, "start": "2019-05-25 15:05:13.630935", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Check if there are no SELinux login mapping changes] ************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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-cjl1o16m/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpb2b2nphi/_setup.yml /tmp/tmpb2b2nphi/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/tmpb2b2nphi/_setup.yml PLAY [Fail when only localhost is available] *************************************************************************************************************************************************************** META: ran handlers TASK [debug] *********************************************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/_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/tmpb2b2nphi/_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/tmpb2b2nphi/_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/tmpb2b2nphi/tests/set_selinux_variables.yml statically imported: /tmp/tmpb2b2nphi/tests/set_selinux_variables.yml statically imported: /tmp/tmpb2b2nphi/tests/set_selinux_variables.yml statically imported: /tmp/tmpb2b2nphi/tests/set_selinux_variables.yml PLAYBOOK: tests_port.yml *********************************************************************************************************************************************************************************** 1 plays in /tmp/tmpb2b2nphi/tests/tests_port.yml PLAY [Check if selinux role sets SELinux port mapping] ***************************************************************************************************************************************************** TASK [Gathering Facts] ************************************************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/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-25", "day": "25", "epoch": "1558811139", "hour": "15", "iso8601": "2019-05-25T19:05:39Z", "iso8601_basic": "20190525T150539272647", "iso8601_basic_short": "20190525T150539", "iso8601_micro": "2019-05-25T19:05:39.272817Z", "minute": "05", "month": "05", "second": "39", "time": "15:05:39", "tz": "EDT", "tz_offset": "-0400", "weekday": "Samstag", "weekday_number": "6", "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-25-21-05-15-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-25-21-05-15-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 60470 22", "SSH_CONNECTION": "10.0.2.2 60470 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": "f2e6a3848c6247c0a57f5d7f6d416e9a", "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": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBG/YqOaEF+zYouOdYlge/R8U4wbcfn91I9gF0mtSbGQvg2q9IAhXVHLPFH4s5uYM8IFvcqRHCgSkTGjXRbQDBWA=", "ansible_ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAIM8mAi0vWG3exaGaVZsujI+mU2FLS+XFkcNoJuy2zxpE", "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABAQDhGOlTENq8HQUSk6D3wx/djd+qHdgAmhKZEWROiFhH1S31QFHSYLLfrl6pFtxGoW5Mim2/GhwvC6KNsKgoWPE8ic2UsTT90qorhasOPzNy/uMEklM8dGQSjgOOnbK8pClHE/rAXvcljbbhmDtozRnHBz7UThBOBHkxE5kQBddW6UH1hFybE8TgaVX6f0bt7RQ8rpXXra+12SxzzcjvgaPf01/F/Ag9Ko2uf/VyF+AeLAbN1w/Yb6Ljmwf6d/4CzAxBPUd/99tTE572/AdSM1i4fM9zOf2/mzwf8z2W9kJZnpMza1hnTFFPZz4P16vrO6Ytv5qi5cIitE85RfywySn1", "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": 21, "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/tmpb2b2nphi/tests/tests_port.yml:7 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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:01.269594", "end": "2019-05-25 15:05:42.742141", "rc": 0, "start": "2019-05-25 15:05:41.472547", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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:02.395534", "end": "2019-05-25 15:05:45.559524", "rc": 0, "start": "2019-05-25 15:05:43.163990", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/tasks/main.yml:118 TASK [Get local modifications - boolean] ******************************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/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.171684", "end": "2019-05-25 15:05:49.808131", "rc": 0, "start": "2019-05-25 15:05:49.636447", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - port] ********************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/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.184952", "end": "2019-05-25 15:05:50.398796", "rc": 0, "start": "2019-05-25 15:05:50.213844", "stderr": "", "stderr_lines": [], "stdout": "ssh_port_t tcp 22100", "stdout_lines": ["ssh_port_t tcp 22100"]} TASK [Get local modifications - login] ********************************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/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.245504", "end": "2019-05-25 15:05:50.951955", "rc": 0, "start": "2019-05-25 15:05:50.706451", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - fcontext] ****************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/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.194361", "end": "2019-05-25 15:05:51.446229", "rc": 0, "start": "2019-05-25 15:05:51.251868", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [save state after initial changes and before other changes] ******************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/tests/tests_port.yml:24 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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:02.390233", "end": "2019-05-25 15:05:55.869510", "rc": 0, "start": "2019-05-25 15:05:53.479277", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/tasks/main.yml:118 TASK [Get local modifications - boolean] ******************************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/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.300259", "end": "2019-05-25 15:06:00.063160", "rc": 0, "start": "2019-05-25 15:05:59.762901", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - port] ********************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/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.233901", "end": "2019-05-25 15:06:00.853432", "rc": 0, "start": "2019-05-25 15:06:00.619531", "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/tmpb2b2nphi/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.177013", "end": "2019-05-25 15:06:01.546080", "rc": 0, "start": "2019-05-25 15:06:01.369067", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - fcontext] ****************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/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.225407", "end": "2019-05-25 15:06:02.174291", "rc": 0, "start": "2019-05-25 15:06:01.948884", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [save state after other changes] ********************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/tests/tests_port.yml:41 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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:02.872695", "end": "2019-05-25 15:06:07.085865", "rc": 0, "start": "2019-05-25 15:06:04.213170", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/tasks/main.yml:118 TASK [Get local modifications - boolean] ******************************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/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.253305", "end": "2019-05-25 15:06:11.979323", "rc": 0, "start": "2019-05-25 15:06:11.726018", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - port] ********************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/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.183953", "end": "2019-05-25 15:06:12.498488", "rc": 0, "start": "2019-05-25 15:06:12.314535", "stderr": "", "stderr_lines": [], "stdout": "ssh_port_t tcp 22100", "stdout_lines": ["ssh_port_t tcp 22100"]} TASK [Get local modifications - login] ********************************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/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.288942", "end": "2019-05-25 15:06:13.090803", "rc": 0, "start": "2019-05-25 15:06:12.801861", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - fcontext] ****************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/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.195640", "end": "2019-05-25 15:06:13.595449", "rc": 0, "start": "2019-05-25 15:06:13.399809", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [save state after reverting other changes] ************************************************************************************************************************************************************ task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/tests/tests_port.yml:58 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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:03.265573", "end": "2019-05-25 15:06:18.882019", "rc": 0, "start": "2019-05-25 15:06:15.616446", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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:02.410934", "end": "2019-05-25 15:06:21.776968", "rc": 0, "start": "2019-05-25 15:06:19.366034", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpb2b2nphi/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tasks/main.yml:118 TASK [Get local modifications - boolean] ******************************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/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.196079", "end": "2019-05-25 15:06:22.552107", "rc": 0, "start": "2019-05-25 15:06:22.356028", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - port] ********************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/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.231353", "end": "2019-05-25 15:06:23.137596", "rc": 0, "start": "2019-05-25 15:06:22.906243", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - login] ********************************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/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.196894", "end": "2019-05-25 15:06:23.673932", "rc": 0, "start": "2019-05-25 15:06:23.477038", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - fcontext] ****************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/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.329016", "end": "2019-05-25 15:06:24.410043", "rc": 0, "start": "2019-05-25 15:06:24.081027", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Check if there are no SELinux port mapping changes] ************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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-cjl1o16m/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpb2b2nphi/_setup.yml /tmp/tmpb2b2nphi/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/tmpb2b2nphi/_setup.yml PLAY [Fail when only localhost is available] *************************************************************************************************************************************************************** META: ran handlers TASK [debug] *********************************************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/_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/tmpb2b2nphi/_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/tmpb2b2nphi/_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/tmpb2b2nphi/tests/tests_selinux_disabled.yml PLAY [Ensure the default is targeted, enforcing, without local modifications] ****************************************************************************************************************************** TASK [Gathering Facts] ************************************************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/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-25", "day": "25", "epoch": "1558811209", "hour": "15", "iso8601": "2019-05-25T19:06:49Z", "iso8601_basic": "20190525T150649463004", "iso8601_basic_short": "20190525T150649", "iso8601_micro": "2019-05-25T19:06:49.463134Z", "minute": "06", "month": "05", "second": "49", "time": "15:06:49", "tz": "EDT", "tz_offset": "-0400", "weekday": "Samstag", "weekday_number": "6", "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-25-21-06-25-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-25-21-06-25-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 49452 22", "SSH_CONNECTION": "10.0.2.2 49452 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": "17070a02334e46e8bcb48c79d84426d0", "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": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBFovC9dHw/NG0mSxqxcvyLNNot3dEe71YuQyixDxiXib3XlWVLwETTaaz2I0QTjl022iLIX3rNdnBND8Fxo4oxY=", "ansible_ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAIG2fgMNCLmr4436UZ6GocURbJgcYsYX5FLHk09i6tyDo", "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABAQDEqqlZIIuYX0Lvo5nceRIvJ1qtQOgtfDb8jIEBIMAbUt9n9Pq7kbPqNjm6FRw3/1/d7E1o3JUVzU9BdYoTKcg2Xoqf/xDIcZJkibQ+B/rlz+l23wTQPOdw/YrAzjGHZfodO1M5XKehM0CAMQXsQx1R6NgVUhXk2dhHkP6x76u9DZkpoGXp8tLVER1dc+afdxDdhydaXE2pdSaNSnTljZb85WXqiJCieEo+JhRNXcPgVhe0XtSjNvUsj17E+5V5mQ/EZrqh+5XtGmUlZCg6NOkKgu+xH89Qn3XMsVbXviJ01S1Yy0KgIwnppZaLt+QKwo68inu0YQXBmWC/FsSYgWMj", "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": 21, "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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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:04.585913", "end": "2019-05-25 15:06:55.256331", "rc": 0, "start": "2019-05-25 15:06:50.670418", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Backup original /etc/selinux/config] ***************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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-1558811215.6233969-55410246222784/source", "state": "file", "uid": 0} TASK [Switch to permissive to allow login when selinuxfs is not mounted] *********************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/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.004865", "end": "2019-05-25 15:06:56.571588", "rc": 0, "start": "2019-05-25 15:06:56.566723", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get selinuxfs mountpoint] **************************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/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.006530", "end": "2019-05-25 15:06:56.918608", "rc": 0, "start": "2019-05-25 15:06:56.912078", "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/tmpb2b2nphi/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.010678", "end": "2019-05-25 15:06:57.308796", "rc": 0, "start": "2019-05-25 15:06:57.298118", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [include_role : selinux] ****************************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/tests/tests_selinux_disabled.yml:49 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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/tmpb2b2nphi/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.004682", "end": "2019-05-25 15:07:00.777690", "rc": 0, "start": "2019-05-25 15:07:00.773008", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Switch back to enforcing] **************************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/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.011095", "end": "2019-05-25 15:07:01.450282", "rc": 0, "start": "2019-05-25 15:07:01.439187", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Gather facts again] ********************************************************************************************************************************************************************************** task path: /tmp/tmpb2b2nphi/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/tmpb2b2nphi/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