+ cd /tmp/tmpzt1cfv20/tests; TEST_SUBJECTS=/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_selinux-35-af5a0a6-centos-7-zhnzhoz4/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpzt1cfv20/_setup.yml /tmp/tmpzt1cfv20/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 *************************************************************************************************************************************************************************************** 1 plays in /tmp/tmpzt1cfv20/_setup.yml PLAY [Fail when only localhost is available] *************************************************************************************************************************************************************** META: ran handlers TASK [debug] *********************************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/_setup.yml:5 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "groups": { "all": [ "/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c" ], "localhost": [ "/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c" ], "subjects": [ "/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c" ], "ungrouped": [] } } TASK [fail] ************************************************************************************************************************************************************************************************ task path: /tmp/tmpzt1cfv20/_setup.yml:7 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ************************************************************************************************************************************************************************************************* /home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 statically imported: /tmp/tmpzt1cfv20/tests/set_selinux_variables.yml statically imported: /tmp/tmpzt1cfv20/tests/set_selinux_variables.yml PLAYBOOK: tests_all_purge.yml ****************************************************************************************************************************************************************************** 1 plays in /tmp/tmpzt1cfv20/tests/tests_all_purge.yml PLAY [Test that selinux_all_purge drops local modifications, defaults to no] ******************************************************************************************************************************* TASK [Gathering Facts] ************************************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tests/tests_all_purge.yml:1 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"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-862.14.4.el7.x86_64", "LANG": "en_US.UTF-8", "console": "ttyS0,115200", "crashkernel": "auto", "ro": true, "root": "UUID=de86ba8a-914b-4104-9fd8-f9de800452ea"}, "ansible_date_time": {"date": "2019-05-26", "day": "26", "epoch": "1558868841", "hour": "11", "iso8601": "2019-05-26T11:07:21Z", "iso8601_basic": "20190526T110721141627", "iso8601_basic_short": "20190526T110721", "iso8601_micro": "2019-05-26T11:07:21.141834Z", "minute": "07", "month": "05", "second": "21", "time": "11:07:21", "tz": "UTC", "tz_offset": "+0000", "weekday": "Sonntag", "weekday_number": "0", "weeknumber": "20", "year": "2019"}, "ansible_default_ipv4": {"address": "10.0.2.15", "alias": "eth0", "broadcast": "10.0.2.255", "gateway": "10.0.2.2", "interface": "eth0", "macaddress": "52:54:00:12:34:56", "mtu": 1500, "netmask": "255.255.255.0", "network": "10.0.2.0", "type": "ether"}, "ansible_default_ipv6": {"address": "fec0::5054:ff:fe12:3456", "gateway": "fe80::2", "interface": "eth0", "macaddress": "52:54:00:12:34:56", "mtu": 1500, "prefix": "64", "scope": "site", "type": "ether"}, "ansible_device_links": {"ids": {"sr0": ["ata-QEMU_DVD-ROM_QM00003"]}, "labels": {"sr0": ["cidata"]}, "masters": {}, "uuids": {"sr0": ["2019-05-26-13-06-35-00"], "vda1": ["de86ba8a-914b-4104-9fd8-f9de800452ea"]}}, "ansible_devices": {"fd0": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "1", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "deadline", "sectors": "8", "sectorsize": "512", "size": "4.00 KB", "support_discard": "0", "vendor": null, "virtual": 1}, "sr0": {"holders": [], "host": "", "links": {"ids": ["ata-QEMU_DVD-ROM_QM00003"], "labels": ["cidata"], "masters": [], "uuids": ["2019-05-26-13-06-35-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": ["de86ba8a-914b-4104-9fd8-f9de800452ea"]}, "sectors": "16775168", "sectorsize": 512, "size": "8.00 GB", "start": "2048", "uuid": "de86ba8a-914b-4104-9fd8-f9de800452ea"}}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "mq-deadline", "sectors": "16777216", "sectorsize": "512", "size": "8.00 GB", "support_discard": "0", "vendor": "0x1af4", "virtual": 1}}, "ansible_distribution": "CentOS", "ansible_distribution_file_parsed": true, "ansible_distribution_file_path": "/etc/redhat-release", "ansible_distribution_file_variety": "RedHat", "ansible_distribution_major_version": "7", "ansible_distribution_release": "Core", "ansible_distribution_version": "7", "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 57266 22", "SSH_CONNECTION": "10.0.2.2 57266 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_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-862.14.4.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_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": "5003025f93c1a84914ea5ae66519c100", "ansible_memfree_mb": 758, "ansible_memory_mb": {"nocache": {"free": 874, "used": 117}, "real": {"free": 758, "total": 991, "used": 233}, "swap": {"cached": 0, "free": 0, "total": 0, "used": 0}}, "ansible_memtotal_mb": 991, "ansible_mounts": [{"block_available": 1872651, "block_size": 4096, "block_total": 2094336, "block_used": 221685, "device": "/dev/vda1", "fstype": "xfs", "inode_available": 4168555, "inode_total": 4193792, "inode_used": 25237, "mount": "/", "options": "rw,seclabel,relatime,attr2,inode64,noquota", "size_available": 7670378496, "size_total": 8578400256, "uuid": "de86ba8a-914b-4104-9fd8-f9de800452ea"}], "ansible_nodename": "ibm-p8-kvm-03-guest-02", "ansible_os_family": "RedHat", "ansible_pkg_mgr": "yum", "ansible_proc_cmdline": {"BOOT_IMAGE": "/boot/vmlinuz-3.10.0-862.14.4.el7.x86_64", "LANG": "en_US.UTF-8", "console": ["tty0", "ttyS0,115200n8", "ttyS0,115200"], "crashkernel": "auto", "ro": true, "root": "UUID=de86ba8a-914b-4104-9fd8-f9de800452ea"}, "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": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBBIRzsShaOEoqRVmnoCJ+hfKywZz6QsL1HHv2kQ0MHF+g2d3WN7yNvtb6k72Bqk4paL4VirzBaB6kvNCLPhgFy4=", "ansible_ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAIAlCjny7dET5NbBtcQY5zpd7Dcy7k+EC3aWQEW8w8QVE", "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABAQCmAKlQPyy3Y/q0qMgyAg65p4CYRXWHcfivmJBVG4dHMWcpe0KMQBDa4ZD7QQGGqINzhbxpVExwWKiPIjjbDhLao87682ZPC8h1lwSiyPVTuMG/tMjOYNI2WznKDDKrhOCLLKTApXCnCkgCgXJukDqKPF7uZ8t6jkaEhocpVNa10C2Kt+1wGC41R/r4z6+2CyiBdcHv0REen4SbaBMJVMPRW1uoKfdrnIoDtpRyWDvOaZaSl+Fjt48Dnf8gy8in/yRPwnxZWxcJQLwfPsCpa1lkoh4hgIRltc0wD6tjpOy7dLQHA0YXudpPEboQQT6+fRtqDYm1JzQnQvJcLSaj8dTV", "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": 41, "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/tmpzt1cfv20/tests/tests_all_purge.yml:12 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Add a Linux System Roles SELinux User] *************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/tests_all_purge.yml:19 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"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/tmpzt1cfv20/tests/tests_all_purge.yml:24 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"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:09.857452", "end": "2019-05-26 11:07:34.782982", "rc": 0, "start": "2019-05-26 11:07:24.925530", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Apply role with defaults, should not drop local modifications] *************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/tests_all_purge.yml:27 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-12.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-22.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:31 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/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/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpzt1cfv20/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:05.736859", "end": "2019-05-26 11:07:48.161078", "rc": 0, "start": "2019-05-26 11:07:42.424219", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpzt1cfv20/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:118 TASK [Get local modifications - boolean] ******************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tests/set_selinux_variables.yml:2 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["/usr/sbin/semanage", "boolean", "-l", "-n", "-C"], "delta": "0:00:00.747984", "end": "2019-05-26 11:07:50.660421", "rc": 0, "start": "2019-05-26 11:07:49.912437", "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/tmpzt1cfv20/tests/set_selinux_variables.yml:5 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["/usr/sbin/semanage", "port", "-l", "-n", "-C"], "delta": "0:00:00.774650", "end": "2019-05-26 11:07:52.905167", "rc": 0, "start": "2019-05-26 11:07:52.130517", "stderr": "", "stderr_lines": [], "stdout": "ssh_port_t tcp 22100", "stdout_lines": ["ssh_port_t tcp 22100"]} TASK [Get local modifications - login] ********************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tests/set_selinux_variables.yml:8 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["/usr/sbin/semanage", "login", "-l", "-n", "-C"], "delta": "0:00:00.382998", "end": "2019-05-26 11:07:54.295266", "rc": 0, "start": "2019-05-26 11:07:53.912268", "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/tmpzt1cfv20/tests/set_selinux_variables.yml:11 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["/usr/sbin/semanage", "fcontext", "-l", "-n", "-C"], "delta": "0:00:00.419685", "end": "2019-05-26 11:07:55.633307", "rc": 0, "start": "2019-05-26 11:07:55.213622", "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/tmpzt1cfv20/tests/tests_all_purge.yml:32 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "changed": false, "msg": "All assertions passed" } TASK [Check if local modifications are not empty - port] *************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/tests_all_purge.yml:35 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "changed": false, "msg": "All assertions passed" } TASK [Check if local modifications are not empty - login] ************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/tests_all_purge.yml:38 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "changed": false, "msg": "All assertions passed" } TASK [Check if local modifications are not empty - fcontext] *********************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/tests_all_purge.yml:41 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "changed": false, "msg": "All assertions passed" } TASK [Apply the role to drop local modifications] ********************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/tests_all_purge.yml:45 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-12.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-22.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:31 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/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/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:60 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": "echo -e -n \"boolean -D -N\nlogin -D -N\nport -D -N\nfcontext -D -N\n\" | /usr/sbin/semanage -i -", "delta": "0:00:02.429730", "end": "2019-05-26 11:08:04.151045", "rc": 0, "start": "2019-05-26 11:08:01.721315", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpzt1cfv20/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:04.851372", "end": "2019-05-26 11:08:10.494441", "rc": 0, "start": "2019-05-26 11:08:05.643069", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpzt1cfv20/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:118 TASK [Get local modifications - boolean] ******************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tests/set_selinux_variables.yml:2 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["/usr/sbin/semanage", "boolean", "-l", "-n", "-C"], "delta": "0:00:00.417422", "end": "2019-05-26 11:08:12.553826", "rc": 0, "start": "2019-05-26 11:08:12.136404", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - port] ********************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/set_selinux_variables.yml:5 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["/usr/sbin/semanage", "port", "-l", "-n", "-C"], "delta": "0:00:00.687491", "end": "2019-05-26 11:08:14.525537", "rc": 0, "start": "2019-05-26 11:08:13.838046", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - login] ********************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tests/set_selinux_variables.yml:8 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["/usr/sbin/semanage", "login", "-l", "-n", "-C"], "delta": "0:00:00.404463", "end": "2019-05-26 11:08:16.268105", "rc": 0, "start": "2019-05-26 11:08:15.863642", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - fcontext] ****************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/set_selinux_variables.yml:11 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["/usr/sbin/semanage", "fcontext", "-l", "-n", "-C"], "delta": "0:00:00.736494", "end": "2019-05-26 11:08:18.168647", "rc": 0, "start": "2019-05-26 11:08:17.432153", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Check if local modifications are empty - booleans] *************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/tests_all_purge.yml:52 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "changed": false, "msg": "All assertions passed" } TASK [Check if local modifications are empty - port] ******************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tests/tests_all_purge.yml:55 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "changed": false, "msg": "All assertions passed" } TASK [Check if local modifications are empty - login] ****************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/tests_all_purge.yml:58 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "changed": false, "msg": "All assertions passed" } TASK [Check if local modifications are empty - fcontext] *************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/tests_all_purge.yml:61 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "changed": false, "msg": "All assertions passed" } TASK [Remove Linux System Roles SELinux User] ************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/tests_all_purge.yml:65 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"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/CentOS-7-x86_64-GenericCloud-1809.qcow2c : ok=30 changed=14 unreachable=0 failed=0 skipped=35 rescued=0 ignored=0 + cd /tmp/tmpzt1cfv20/tests; TEST_SUBJECTS=/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_selinux-35-af5a0a6-centos-7-zhnzhoz4/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpzt1cfv20/_setup.yml /tmp/tmpzt1cfv20/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 *************************************************************************************************************************************************************************************** 1 plays in /tmp/tmpzt1cfv20/_setup.yml PLAY [Fail when only localhost is available] *************************************************************************************************************************************************************** META: ran handlers TASK [debug] *********************************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/_setup.yml:5 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "groups": { "all": [ "/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c" ], "localhost": [ "/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c" ], "subjects": [ "/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c" ], "ungrouped": [] } } TASK [fail] ************************************************************************************************************************************************************************************************ task path: /tmp/tmpzt1cfv20/_setup.yml:7 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ************************************************************************************************************************************************************************************************* /home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_all_transitions.yml ************************************************************************************************************************************************************************ 1 plays in /tmp/tmpzt1cfv20/tests/tests_all_transitions.yml PLAY [Test all the possible selinux_state transitions] ***************************************************************************************************************************************************** TASK [Gathering Facts] ************************************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tests/tests_all_transitions.yml:1 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"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-862.14.4.el7.x86_64", "LANG": "en_US.UTF-8", "console": "ttyS0,115200", "crashkernel": "auto", "ro": true, "root": "UUID=de86ba8a-914b-4104-9fd8-f9de800452ea"}, "ansible_date_time": {"date": "2019-05-26", "day": "26", "epoch": "1558868950", "hour": "11", "iso8601": "2019-05-26T11:09:10Z", "iso8601_basic": "20190526T110910443844", "iso8601_basic_short": "20190526T110910", "iso8601_micro": "2019-05-26T11:09:10.443959Z", "minute": "09", "month": "05", "second": "10", "time": "11:09:10", "tz": "UTC", "tz_offset": "+0000", "weekday": "Sonntag", "weekday_number": "0", "weeknumber": "20", "year": "2019"}, "ansible_default_ipv4": {"address": "10.0.2.15", "alias": "eth0", "broadcast": "10.0.2.255", "gateway": "10.0.2.2", "interface": "eth0", "macaddress": "52:54:00:12:34:56", "mtu": 1500, "netmask": "255.255.255.0", "network": "10.0.2.0", "type": "ether"}, "ansible_default_ipv6": {"address": "fec0::5054:ff:fe12:3456", "gateway": "fe80::2", "interface": "eth0", "macaddress": "52:54:00:12:34:56", "mtu": 1500, "prefix": "64", "scope": "site", "type": "ether"}, "ansible_device_links": {"ids": {"sr0": ["ata-QEMU_DVD-ROM_QM00003"]}, "labels": {"sr0": ["cidata"]}, "masters": {}, "uuids": {"sr0": ["2019-05-26-13-08-21-00"], "vda1": ["de86ba8a-914b-4104-9fd8-f9de800452ea"]}}, "ansible_devices": {"fd0": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "1", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "deadline", "sectors": "8", "sectorsize": "512", "size": "4.00 KB", "support_discard": "0", "vendor": null, "virtual": 1}, "sr0": {"holders": [], "host": "", "links": {"ids": ["ata-QEMU_DVD-ROM_QM00003"], "labels": ["cidata"], "masters": [], "uuids": ["2019-05-26-13-08-21-00"]}, "model": "QEMU DVD-ROM", "partitions": {}, "removable": "1", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "deadline", "sectors": "728", "sectorsize": "2048", "size": "364.00 KB", "support_discard": "0", "vendor": "QEMU", "virtual": 1}, "vda": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {"vda1": {"holders": [], "links": {"ids": [], "labels": [], "masters": [], "uuids": ["de86ba8a-914b-4104-9fd8-f9de800452ea"]}, "sectors": "16775168", "sectorsize": 512, "size": "8.00 GB", "start": "2048", "uuid": "de86ba8a-914b-4104-9fd8-f9de800452ea"}}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "mq-deadline", "sectors": "16777216", "sectorsize": "512", "size": "8.00 GB", "support_discard": "0", "vendor": "0x1af4", "virtual": 1}}, "ansible_distribution": "CentOS", "ansible_distribution_file_parsed": true, "ansible_distribution_file_path": "/etc/redhat-release", "ansible_distribution_file_variety": "RedHat", "ansible_distribution_major_version": "7", "ansible_distribution_release": "Core", "ansible_distribution_version": "7", "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 57642 22", "SSH_CONNECTION": "10.0.2.2 57642 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_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-862.14.4.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_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": "5003025f93c1a84914ea5ae66519c100", "ansible_memfree_mb": 756, "ansible_memory_mb": {"nocache": {"free": 873, "used": 118}, "real": {"free": 756, "total": 991, "used": 235}, "swap": {"cached": 0, "free": 0, "total": 0, "used": 0}}, "ansible_memtotal_mb": 991, "ansible_mounts": [{"block_available": 1872656, "block_size": 4096, "block_total": 2094336, "block_used": 221680, "device": "/dev/vda1", "fstype": "xfs", "inode_available": 4168555, "inode_total": 4193792, "inode_used": 25237, "mount": "/", "options": "rw,seclabel,relatime,attr2,inode64,noquota", "size_available": 7670398976, "size_total": 8578400256, "uuid": "de86ba8a-914b-4104-9fd8-f9de800452ea"}], "ansible_nodename": "ibm-p8-kvm-03-guest-02", "ansible_os_family": "RedHat", "ansible_pkg_mgr": "yum", "ansible_proc_cmdline": {"BOOT_IMAGE": "/boot/vmlinuz-3.10.0-862.14.4.el7.x86_64", "LANG": "en_US.UTF-8", "console": ["tty0", "ttyS0,115200n8", "ttyS0,115200"], "crashkernel": "auto", "ro": true, "root": "UUID=de86ba8a-914b-4104-9fd8-f9de800452ea"}, "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": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBExqy9gSkEFAXyc4f0hXhJkTq7n/NwSTiT1aDNaiQ4UOATKvDYleXlI9J9xI8StJY8cPT9+tC1XXImpdGqIPvC0=", "ansible_ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAILthSaUngRNhOEVOorFa2xKDXeGGfSSeFNayqxXCOSFV", "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABAQCqRRcQxsLtcxonXavsQFlIyeb0D60quQ1pT2GzY3HfWrjsKVpYWboVNu3wv5XHBI21ZejUMjCqu4QE7wKCJfx9MZIQOg4RU19kjlbkvZWM9RfwMUxR/sljQNTcSwDKWD88PFxdSDK7xQW8TcjmqkhYKR74MXw+pzvwatjQY3sLbbTR4NOxNnj19fG4JKO2YKLqT2YLxkb4bXhaSmbNl34I49auViQaD3LI2YJRSkFz+Nl8H+SLB+hxhDQKzYELYspkU/dA7/raMLZ4DJUCqslyCVJ35c/9maJBkJiE4BaI8e8WjwQRl5B2G0yktQ4qnuoDvixKsxJqzudWAM9jz04D", "ansible_swapfree_mb": 0, "ansible_swaptotal_mb": 0, "ansible_system": "Linux", "ansible_system_capabilities": ["cap_chown", "cap_dac_override", "cap_dac_read_search", "cap_fowner", "cap_fsetid", "cap_kill", "cap_setgid", "cap_setuid", "cap_setpcap", "cap_linux_immutable", "cap_net_bind_service", "cap_net_broadcast", "cap_net_admin", "cap_net_raw", "cap_ipc_lock", "cap_ipc_owner", "cap_sys_module", "cap_sys_rawio", "cap_sys_chroot", "cap_sys_ptrace", "cap_sys_pacct", "cap_sys_admin", "cap_sys_boot", "cap_sys_nice", "cap_sys_resource", "cap_sys_time", "cap_sys_tty_config", "cap_mknod", "cap_lease", "cap_audit_write", "cap_audit_control", "cap_setfcap", "cap_mac_override", "cap_mac_admin", "cap_syslog", "35", "36+ep"], "ansible_system_capabilities_enforced": "True", "ansible_system_vendor": "QEMU", "ansible_uptime_seconds": 44, "ansible_user_dir": "/root", "ansible_user_gecos": "root", "ansible_user_gid": 0, "ansible_user_id": "root", "ansible_user_shell": "/bin/bash", "ansible_user_uid": 0, "ansible_userspace_architecture": "x86_64", "ansible_userspace_bits": "64", "ansible_virtualization_role": "guest", "ansible_virtualization_type": "kvm", "gather_subset": ["all"], "module_setup": true}, "changed": false} META: ran handlers TASK [save config] ***************************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/tests_all_transitions.yml:11 included: /tmp/tmpzt1cfv20/tests/selinux_config_save.yml for /home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c TASK [Backup original /etc/selinux/config] ***************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_config_save.yml:1 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "checksum": "a4700e6c122a6a38cff66b396bdd84cc756853d8", "dest": "/etc/selinux/config.test_selinux_save", "gid": 0, "group": "root", "md5sum": "a97ac66cf758dceb5eeafa2d83c8e6f3", "mode": "0644", "owner": "root", "secontext": "system_u:object_r:selinux_config_t:s0", "size": 546, "src": "/etc/selinux/config", "state": "file", "uid": 0} TASK [test all the possible state transitions] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tests/tests_all_transitions.yml:14 included: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml for /home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c included: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml for /home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c included: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml for /home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c included: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml for /home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c included: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml for /home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c included: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml for /home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c included: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml for /home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c included: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml for /home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c included: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml for /home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c TASK [display transition name] ***************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:1 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "msg": "testing transition permissive -> permissive" } TASK [setup the initial state] ***************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:5 included: /tmp/tmpzt1cfv20/tests/selinux_apply_reboot.yml for /home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c TASK [include_role : selinux] ****************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_apply_reboot.yml:3 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-12.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-22.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:31 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"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/tmpzt1cfv20/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/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/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpzt1cfv20/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:04.992888", "end": "2019-05-26 11:09:28.997377", "rc": 0, "start": "2019-05-26 11:09:24.004489", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpzt1cfv20/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:118 TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:10 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] TASK [check that initial state has been set up properly] *************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:14 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "changed": false, "msg": "All assertions passed" } TASK [save the initial state] ****************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:18 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"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/tmpzt1cfv20/tests/selinux_test_transitions.yml:22 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-12.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-22.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:31 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/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/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpzt1cfv20/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:05.413007", "end": "2019-05-26 11:09:43.508877", "rc": 0, "start": "2019-05-26 11:09:38.095870", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpzt1cfv20/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:118 TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:26 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] TASK [check that the run w/o parameters has not changed anything] ****************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:30 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "changed": false, "msg": "All assertions passed" } TASK [apply the desired state if possible without reboot] ************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:34 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-12.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-22.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:31 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"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/tmpzt1cfv20/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/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/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpzt1cfv20/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:04.664342", "end": "2019-05-26 11:09:59.000627", "rc": 0, "start": "2019-05-26 11:09:54.336285", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpzt1cfv20/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:118 TASK [apply the desired state if necessary with reboot] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:44 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:52 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] TASK [check that something changed if it should have] ****************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check that nothing changed if it should not have] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:61 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "changed": false, "msg": "All assertions passed" } TASK [check that desired state has been applied properly] ************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:66 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "changed": false, "msg": "All assertions passed" } TASK [check that desired state has been saved properly] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:70 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "changed": false, "msg": "All assertions passed" } TASK [display transition name] ***************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:1 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "msg": "testing transition permissive -> enforcing" } TASK [setup the initial state] ***************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:5 included: /tmp/tmpzt1cfv20/tests/selinux_apply_reboot.yml for /home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c TASK [include_role : selinux] ****************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_apply_reboot.yml:3 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-12.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-22.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:31 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"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/tmpzt1cfv20/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/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/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpzt1cfv20/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:04.654347", "end": "2019-05-26 11:10:13.770336", "rc": 0, "start": "2019-05-26 11:10:09.115989", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpzt1cfv20/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:118 TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:10 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] TASK [check that initial state has been set up properly] *************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:14 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "changed": false, "msg": "All assertions passed" } TASK [save the initial state] ****************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:18 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"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/tmpzt1cfv20/tests/selinux_test_transitions.yml:22 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-12.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-22.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:31 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/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/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpzt1cfv20/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:05.081698", "end": "2019-05-26 11:10:27.814354", "rc": 0, "start": "2019-05-26 11:10:22.732656", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpzt1cfv20/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:118 TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:26 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] TASK [check that the run w/o parameters has not changed anything] ****************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:30 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "changed": false, "msg": "All assertions passed" } TASK [apply the desired state if possible without reboot] ************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:34 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-12.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-22.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:31 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"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/tmpzt1cfv20/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/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/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpzt1cfv20/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:05.343466", "end": "2019-05-26 11:10:44.311626", "rc": 0, "start": "2019-05-26 11:10:38.968160", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpzt1cfv20/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:118 TASK [apply the desired state if necessary with reboot] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:44 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:52 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] TASK [check that something changed if it should have] ****************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:56 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "changed": false, "msg": "All assertions passed" } TASK [check that nothing changed if it should not have] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:61 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check that desired state has been applied properly] ************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:66 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "changed": false, "msg": "All assertions passed" } TASK [check that desired state has been saved properly] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:70 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "changed": false, "msg": "All assertions passed" } TASK [display transition name] ***************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:1 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "msg": "testing transition permissive -> disabled" } TASK [setup the initial state] ***************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:5 included: /tmp/tmpzt1cfv20/tests/selinux_apply_reboot.yml for /home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c TASK [include_role : selinux] ****************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_apply_reboot.yml:3 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-12.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-22.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:31 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"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/tmpzt1cfv20/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/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/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpzt1cfv20/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:05.457291", "end": "2019-05-26 11:11:00.487902", "rc": 0, "start": "2019-05-26 11:10:55.030611", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpzt1cfv20/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:118 TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:10 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] TASK [check that initial state has been set up properly] *************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:14 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "changed": false, "msg": "All assertions passed" } TASK [save the initial state] ****************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:18 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"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/tmpzt1cfv20/tests/selinux_test_transitions.yml:22 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-12.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-22.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:31 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/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/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpzt1cfv20/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:05.468821", "end": "2019-05-26 11:11:15.137088", "rc": 0, "start": "2019-05-26 11:11:09.668267", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpzt1cfv20/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:118 TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:26 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] TASK [check that the run w/o parameters has not changed anything] ****************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:30 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "changed": false, "msg": "All assertions passed" } TASK [apply the desired state if possible without reboot] ************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:34 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [apply the desired state if necessary with reboot] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:44 included: /tmp/tmpzt1cfv20/tests/selinux_apply_reboot.yml for /home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c TASK [include_role : selinux] ****************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_apply_reboot.yml:3 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-12.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-22.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:31 [WARNING]: SELinux state change will take effect next reboot changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"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/tmpzt1cfv20/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"ansible_facts": {"selinux_reboot_required": true}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/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/CentOS-7-x86_64-GenericCloud-1809.qcow2c]: FAILED! => {"changed": false, "msg": "Reboot is required to apply changes. Re-execute the role after boot."} TASK [handle errors] *************************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_apply_reboot.yml:7 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [restart managed host] ******************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_apply_reboot.yml:12 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"ansible_job_id": "782983300685.3247", "changed": true, "finished": 0, "results_file": "/root/.ansible_async/782983300685.3247", "started": 1} TASK [wait for managed host to come back] ****************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_apply_reboot.yml:18 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "elapsed": 31} TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:52 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] TASK [check that something changed if it should have] ****************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:56 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "changed": false, "msg": "All assertions passed" } TASK [check that nothing changed if it should not have] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:61 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check that desired state has been applied properly] ************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:66 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "changed": false, "msg": "All assertions passed" } TASK [check that desired state has been saved properly] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:70 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "changed": false, "msg": "All assertions passed" } TASK [display transition name] ***************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:1 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "msg": "testing transition enforcing -> permissive" } TASK [setup the initial state] ***************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:5 included: /tmp/tmpzt1cfv20/tests/selinux_apply_reboot.yml for /home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c TASK [include_role : selinux] ****************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_apply_reboot.yml:3 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-12.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-22.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:31 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:38 [WARNING]: Reboot is required to set SELinux state to 'enforcing' changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"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/tmpzt1cfv20/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"ansible_facts": {"selinux_reboot_required": true}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/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/CentOS-7-x86_64-GenericCloud-1809.qcow2c]: FAILED! => {"changed": false, "msg": "Reboot is required to apply changes. Re-execute the role after boot."} TASK [handle errors] *************************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_apply_reboot.yml:7 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [restart managed host] ******************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_apply_reboot.yml:12 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"ansible_job_id": "126335612916.1276", "changed": true, "finished": 0, "results_file": "/root/.ansible_async/126335612916.1276", "started": 1} TASK [wait for managed host to come back] ****************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_apply_reboot.yml:18 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "elapsed": 40} TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:10 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] TASK [check that initial state has been set up properly] *************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:14 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "changed": false, "msg": "All assertions passed" } TASK [save the initial state] ****************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:18 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"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/tmpzt1cfv20/tests/selinux_test_transitions.yml:22 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-12.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-22.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:31 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/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/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpzt1cfv20/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:05.168919", "end": "2019-05-26 11:13:00.236189", "rc": 0, "start": "2019-05-26 11:12:55.067270", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpzt1cfv20/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:118 TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:26 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] TASK [check that the run w/o parameters has not changed anything] ****************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:30 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "changed": false, "msg": "All assertions passed" } TASK [apply the desired state if possible without reboot] ************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:34 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-12.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-22.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:31 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"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/tmpzt1cfv20/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/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/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpzt1cfv20/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:05.039580", "end": "2019-05-26 11:13:16.202913", "rc": 0, "start": "2019-05-26 11:13:11.163333", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpzt1cfv20/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:118 TASK [apply the desired state if necessary with reboot] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:44 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:52 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] TASK [check that something changed if it should have] ****************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:56 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "changed": false, "msg": "All assertions passed" } TASK [check that nothing changed if it should not have] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:61 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check that desired state has been applied properly] ************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:66 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "changed": false, "msg": "All assertions passed" } TASK [check that desired state has been saved properly] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:70 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "changed": false, "msg": "All assertions passed" } TASK [display transition name] ***************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:1 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "msg": "testing transition enforcing -> enforcing" } TASK [setup the initial state] ***************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:5 included: /tmp/tmpzt1cfv20/tests/selinux_apply_reboot.yml for /home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c TASK [include_role : selinux] ****************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_apply_reboot.yml:3 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-12.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-22.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:31 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"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/tmpzt1cfv20/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/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/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpzt1cfv20/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:05.254029", "end": "2019-05-26 11:13:32.400219", "rc": 0, "start": "2019-05-26 11:13:27.146190", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpzt1cfv20/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:118 TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:10 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] TASK [check that initial state has been set up properly] *************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:14 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "changed": false, "msg": "All assertions passed" } TASK [save the initial state] ****************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:18 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"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/tmpzt1cfv20/tests/selinux_test_transitions.yml:22 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-12.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-22.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:31 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/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/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpzt1cfv20/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:03.918004", "end": "2019-05-26 11:13:44.695816", "rc": 0, "start": "2019-05-26 11:13:40.777812", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpzt1cfv20/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:118 TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:26 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] TASK [check that the run w/o parameters has not changed anything] ****************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:30 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "changed": false, "msg": "All assertions passed" } TASK [apply the desired state if possible without reboot] ************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:34 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-12.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-22.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:31 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"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/tmpzt1cfv20/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/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/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpzt1cfv20/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:04.963460", "end": "2019-05-26 11:14:00.485359", "rc": 0, "start": "2019-05-26 11:13:55.521899", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpzt1cfv20/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:118 TASK [apply the desired state if necessary with reboot] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:44 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:52 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] TASK [check that something changed if it should have] ****************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check that nothing changed if it should not have] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:61 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "changed": false, "msg": "All assertions passed" } TASK [check that desired state has been applied properly] ************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:66 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "changed": false, "msg": "All assertions passed" } TASK [check that desired state has been saved properly] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:70 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "changed": false, "msg": "All assertions passed" } TASK [display transition name] ***************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:1 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "msg": "testing transition enforcing -> disabled" } TASK [setup the initial state] ***************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:5 included: /tmp/tmpzt1cfv20/tests/selinux_apply_reboot.yml for /home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c TASK [include_role : selinux] ****************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_apply_reboot.yml:3 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-12.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-22.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:31 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"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/tmpzt1cfv20/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/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/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpzt1cfv20/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:05.007985", "end": "2019-05-26 11:14:16.218483", "rc": 0, "start": "2019-05-26 11:14:11.210498", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpzt1cfv20/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:118 TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:10 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] TASK [check that initial state has been set up properly] *************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:14 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "changed": false, "msg": "All assertions passed" } TASK [save the initial state] ****************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:18 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"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/tmpzt1cfv20/tests/selinux_test_transitions.yml:22 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-12.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-22.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:31 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/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/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpzt1cfv20/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:05.136126", "end": "2019-05-26 11:14:30.036037", "rc": 0, "start": "2019-05-26 11:14:24.899911", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpzt1cfv20/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:118 TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:26 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] TASK [check that the run w/o parameters has not changed anything] ****************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:30 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "changed": false, "msg": "All assertions passed" } TASK [apply the desired state if possible without reboot] ************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:34 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [apply the desired state if necessary with reboot] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:44 included: /tmp/tmpzt1cfv20/tests/selinux_apply_reboot.yml for /home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c TASK [include_role : selinux] ****************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_apply_reboot.yml:3 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-12.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-22.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/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/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"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/tmpzt1cfv20/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"ansible_facts": {"selinux_reboot_required": true}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/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/CentOS-7-x86_64-GenericCloud-1809.qcow2c]: FAILED! => {"changed": false, "msg": "Reboot is required to apply changes. Re-execute the role after boot."} TASK [handle errors] *************************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_apply_reboot.yml:7 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [restart managed host] ******************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_apply_reboot.yml:12 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"ansible_job_id": "796909086931.2880", "changed": true, "finished": 0, "results_file": "/root/.ansible_async/796909086931.2880", "started": 1} TASK [wait for managed host to come back] ****************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_apply_reboot.yml:18 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "elapsed": 37} TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:52 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] TASK [check that something changed if it should have] ****************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:56 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "changed": false, "msg": "All assertions passed" } TASK [check that nothing changed if it should not have] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:61 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check that desired state has been applied properly] ************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:66 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "changed": false, "msg": "All assertions passed" } TASK [check that desired state has been saved properly] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:70 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "changed": false, "msg": "All assertions passed" } TASK [display transition name] ***************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:1 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "msg": "testing transition disabled -> permissive" } TASK [setup the initial state] ***************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:5 included: /tmp/tmpzt1cfv20/tests/selinux_apply_reboot.yml for /home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c TASK [include_role : selinux] ****************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_apply_reboot.yml:3 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-12.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-22.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:31 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:38 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "configfile": "/etc/selinux/config", "msg": "", "policy": "targeted", "reboot_required": false, "state": "disabled"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/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/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:56 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "msg": "SELinux is disabled on system - some SELinux modules can crash" } TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpzt1cfv20/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:80 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpzt1cfv20/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:118 TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:10 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] TASK [check that initial state has been set up properly] *************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:14 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "changed": false, "msg": "All assertions passed" } TASK [save the initial state] ****************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:18 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"ansible_facts": {"initial_selinux_fact": {"status": "disabled"}}, "changed": false} TASK [apply the role without parameters] ******************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:22 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-12.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-22.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:31 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/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/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:56 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "msg": "SELinux is disabled on system - some SELinux modules can crash" } TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpzt1cfv20/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:80 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpzt1cfv20/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:118 TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:26 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] TASK [check that the run w/o parameters has not changed anything] ****************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:30 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "changed": false, "msg": "All assertions passed" } TASK [apply the desired state if possible without reboot] ************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:34 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [apply the desired state if necessary with reboot] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:44 included: /tmp/tmpzt1cfv20/tests/selinux_apply_reboot.yml for /home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c TASK [include_role : selinux] ****************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_apply_reboot.yml:3 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-12.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-22.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:31 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:38 [WARNING]: Reboot is required to set SELinux state to 'permissive' changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"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/tmpzt1cfv20/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"ansible_facts": {"selinux_reboot_required": true}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/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/CentOS-7-x86_64-GenericCloud-1809.qcow2c]: FAILED! => {"changed": false, "msg": "Reboot is required to apply changes. Re-execute the role after boot."} TASK [handle errors] *************************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_apply_reboot.yml:7 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [restart managed host] ******************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_apply_reboot.yml:12 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"ansible_job_id": "919578676255.1657", "changed": true, "finished": 0, "results_file": "/root/.ansible_async/919578676255.1657", "started": 1} TASK [wait for managed host to come back] ****************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_apply_reboot.yml:18 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "elapsed": 40} TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:52 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] TASK [check that something changed if it should have] ****************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:56 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "changed": false, "msg": "All assertions passed" } TASK [check that nothing changed if it should not have] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:61 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check that desired state has been applied properly] ************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:66 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "changed": false, "msg": "All assertions passed" } TASK [check that desired state has been saved properly] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:70 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "changed": false, "msg": "All assertions passed" } TASK [display transition name] ***************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:1 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "msg": "testing transition disabled -> enforcing" } TASK [setup the initial state] ***************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:5 included: /tmp/tmpzt1cfv20/tests/selinux_apply_reboot.yml for /home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c TASK [include_role : selinux] ****************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_apply_reboot.yml:3 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-12.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-22.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:31 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"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/tmpzt1cfv20/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"ansible_facts": {"selinux_reboot_required": true}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/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/CentOS-7-x86_64-GenericCloud-1809.qcow2c]: FAILED! => {"changed": false, "msg": "Reboot is required to apply changes. Re-execute the role after boot."} TASK [handle errors] *************************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_apply_reboot.yml:7 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [restart managed host] ******************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_apply_reboot.yml:12 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"ansible_job_id": "509648495989.1286", "changed": true, "finished": 0, "results_file": "/root/.ansible_async/509648495989.1286", "started": 1} TASK [wait for managed host to come back] ****************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_apply_reboot.yml:18 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "elapsed": 38} TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:10 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] TASK [check that initial state has been set up properly] *************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:14 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "changed": false, "msg": "All assertions passed" } TASK [save the initial state] ****************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:18 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"ansible_facts": {"initial_selinux_fact": {"status": "disabled"}}, "changed": false} TASK [apply the role without parameters] ******************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:22 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-12.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-22.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:31 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/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/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:56 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "msg": "SELinux is disabled on system - some SELinux modules can crash" } TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpzt1cfv20/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:80 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpzt1cfv20/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:118 TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:26 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] TASK [check that the run w/o parameters has not changed anything] ****************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:30 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "changed": false, "msg": "All assertions passed" } TASK [apply the desired state if possible without reboot] ************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:34 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [apply the desired state if necessary with reboot] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:44 included: /tmp/tmpzt1cfv20/tests/selinux_apply_reboot.yml for /home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c TASK [include_role : selinux] ****************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_apply_reboot.yml:3 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-12.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-22.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:31 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:38 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"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/tmpzt1cfv20/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"ansible_facts": {"selinux_reboot_required": true}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/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/CentOS-7-x86_64-GenericCloud-1809.qcow2c]: FAILED! => {"changed": false, "msg": "Reboot is required to apply changes. Re-execute the role after boot."} TASK [handle errors] *************************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_apply_reboot.yml:7 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [restart managed host] ******************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_apply_reboot.yml:12 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"ansible_job_id": "521544659142.1452", "changed": true, "finished": 0, "results_file": "/root/.ansible_async/521544659142.1452", "started": 1} TASK [wait for managed host to come back] ****************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_apply_reboot.yml:18 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "elapsed": 42} TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:52 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] TASK [check that something changed if it should have] ****************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:56 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "changed": false, "msg": "All assertions passed" } TASK [check that nothing changed if it should not have] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:61 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check that desired state has been applied properly] ************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:66 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "changed": false, "msg": "All assertions passed" } TASK [check that desired state has been saved properly] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:70 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "changed": false, "msg": "All assertions passed" } TASK [display transition name] ***************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:1 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "msg": "testing transition disabled -> disabled" } TASK [setup the initial state] ***************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:5 included: /tmp/tmpzt1cfv20/tests/selinux_apply_reboot.yml for /home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c TASK [include_role : selinux] ****************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_apply_reboot.yml:3 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-12.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-22.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:31 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"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/tmpzt1cfv20/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"ansible_facts": {"selinux_reboot_required": true}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/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/CentOS-7-x86_64-GenericCloud-1809.qcow2c]: FAILED! => {"changed": false, "msg": "Reboot is required to apply changes. Re-execute the role after boot."} TASK [handle errors] *************************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_apply_reboot.yml:7 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [restart managed host] ******************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_apply_reboot.yml:12 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"ansible_job_id": "317061971595.1279", "changed": true, "finished": 0, "results_file": "/root/.ansible_async/317061971595.1279", "started": 1} TASK [wait for managed host to come back] ****************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_apply_reboot.yml:18 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "elapsed": 35} TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:10 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] TASK [check that initial state has been set up properly] *************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:14 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "changed": false, "msg": "All assertions passed" } TASK [save the initial state] ****************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:18 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"ansible_facts": {"initial_selinux_fact": {"status": "disabled"}}, "changed": false} TASK [apply the role without parameters] ******************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:22 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-12.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-22.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:31 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/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/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:56 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "msg": "SELinux is disabled on system - some SELinux modules can crash" } TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpzt1cfv20/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:80 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpzt1cfv20/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:118 TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:26 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] TASK [check that the run w/o parameters has not changed anything] ****************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:30 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "changed": false, "msg": "All assertions passed" } TASK [apply the desired state if possible without reboot] ************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:34 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-12.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-22.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:31 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:38 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "configfile": "/etc/selinux/config", "msg": "", "policy": "targeted", "reboot_required": false, "state": "disabled"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/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/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:56 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "msg": "SELinux is disabled on system - some SELinux modules can crash" } TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpzt1cfv20/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:80 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpzt1cfv20/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:118 TASK [apply the desired state if necessary with reboot] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:44 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:52 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] TASK [check that something changed if it should have] ****************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check that nothing changed if it should not have] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:61 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "changed": false, "msg": "All assertions passed" } TASK [check that desired state has been applied properly] ************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:66 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "changed": false, "msg": "All assertions passed" } TASK [check that desired state has been saved properly] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_test_transitions.yml:70 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "changed": false, "msg": "All assertions passed" } TASK [restore config] ************************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/tests_all_transitions.yml:23 included: /tmp/tmpzt1cfv20/tests/selinux_config_restore.yml for /home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c TASK [Restore original /etc/selinux/config] **************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_config_restore.yml:1 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "checksum": "a4700e6c122a6a38cff66b396bdd84cc756853d8", "dest": "/etc/selinux/config", "gid": 0, "group": "root", "md5sum": "a97ac66cf758dceb5eeafa2d83c8e6f3", "mode": "0644", "owner": "root", "size": 546, "src": "/etc/selinux/config.test_selinux_save", "state": "file", "uid": 0} TASK [Remove /etc/selinux/config backup] ******************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tests/selinux_config_restore.yml:8 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "path": "/etc/selinux/config.test_selinux_save", "state": "absent"} TASK [restart managed host] ******************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_config_restore.yml:15 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"ansible_job_id": "732525971793.1581", "changed": true, "finished": 0, "results_file": "/root/.ansible_async/732525971793.1581", "started": 1} TASK [wait for managed host to come back] ****************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/selinux_config_restore.yml:21 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "elapsed": 38} META: ran handlers META: ran handlers PLAY RECAP ************************************************************************************************************************************************************************************************* /home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c : ok=254 changed=38 unreachable=0 failed=0 skipped=376 rescued=7 ignored=0 + cd /tmp/tmpzt1cfv20/tests; TEST_SUBJECTS=/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_selinux-35-af5a0a6-centos-7-zhnzhoz4/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpzt1cfv20/_setup.yml /tmp/tmpzt1cfv20/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 *************************************************************************************************************************************************************************************** 1 plays in /tmp/tmpzt1cfv20/_setup.yml PLAY [Fail when only localhost is available] *************************************************************************************************************************************************************** META: ran handlers TASK [debug] *********************************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/_setup.yml:5 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "groups": { "all": [ "/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c" ], "localhost": [ "/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c" ], "subjects": [ "/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c" ], "ungrouped": [] } } TASK [fail] ************************************************************************************************************************************************************************************************ task path: /tmp/tmpzt1cfv20/_setup.yml:7 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ************************************************************************************************************************************************************************************************* /home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 statically imported: /tmp/tmpzt1cfv20/tests/set_selinux_variables.yml statically imported: /tmp/tmpzt1cfv20/tests/set_selinux_variables.yml statically imported: /tmp/tmpzt1cfv20/tests/set_selinux_variables.yml PLAYBOOK: tests_boolean.yml ******************************************************************************************************************************************************************************** 1 plays in /tmp/tmpzt1cfv20/tests/tests_boolean.yml PLAY [Check if selinux role sets SELinux booleans] ********************************************************************************************************************************************************* TASK [Gathering Facts] ************************************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tests/tests_boolean.yml:2 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"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-862.14.4.el7.x86_64", "LANG": "en_US.UTF-8", "console": "ttyS0,115200", "crashkernel": "auto", "ro": true, "root": "UUID=de86ba8a-914b-4104-9fd8-f9de800452ea"}, "ansible_date_time": {"date": "2019-05-26", "day": "26", "epoch": "1558869656", "hour": "11", "iso8601": "2019-05-26T11:20:56Z", "iso8601_basic": "20190526T112056466560", "iso8601_basic_short": "20190526T112056", "iso8601_micro": "2019-05-26T11:20:56.466761Z", "minute": "20", "month": "05", "second": "56", "time": "11:20:56", "tz": "UTC", "tz_offset": "+0000", "weekday": "Sonntag", "weekday_number": "0", "weeknumber": "20", "year": "2019"}, "ansible_default_ipv4": {"address": "10.0.2.15", "alias": "eth0", "broadcast": "10.0.2.255", "gateway": "10.0.2.2", "interface": "eth0", "macaddress": "52:54:00:12:34:56", "mtu": 1500, "netmask": "255.255.255.0", "network": "10.0.2.0", "type": "ether"}, "ansible_default_ipv6": {"address": "fec0::5054:ff:fe12:3456", "gateway": "fe80::2", "interface": "eth0", "macaddress": "52:54:00:12:34:56", "mtu": 1500, "prefix": "64", "scope": "site", "type": "ether"}, "ansible_device_links": {"ids": {"sr0": ["ata-QEMU_DVD-ROM_QM00003"]}, "labels": {"sr0": ["cidata"]}, "masters": {}, "uuids": {"sr0": ["2019-05-26-13-20-07-00"], "vda1": ["de86ba8a-914b-4104-9fd8-f9de800452ea"]}}, "ansible_devices": {"fd0": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "1", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "deadline", "sectors": "8", "sectorsize": "512", "size": "4.00 KB", "support_discard": "0", "vendor": null, "virtual": 1}, "sr0": {"holders": [], "host": "", "links": {"ids": ["ata-QEMU_DVD-ROM_QM00003"], "labels": ["cidata"], "masters": [], "uuids": ["2019-05-26-13-20-07-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": ["de86ba8a-914b-4104-9fd8-f9de800452ea"]}, "sectors": "16775168", "sectorsize": 512, "size": "8.00 GB", "start": "2048", "uuid": "de86ba8a-914b-4104-9fd8-f9de800452ea"}}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "mq-deadline", "sectors": "16777216", "sectorsize": "512", "size": "8.00 GB", "support_discard": "0", "vendor": "0x1af4", "virtual": 1}}, "ansible_distribution": "CentOS", "ansible_distribution_file_parsed": true, "ansible_distribution_file_path": "/etc/redhat-release", "ansible_distribution_file_variety": "RedHat", "ansible_distribution_major_version": "7", "ansible_distribution_release": "Core", "ansible_distribution_version": "7", "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 54158 22", "SSH_CONNECTION": "10.0.2.2 54158 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_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-862.14.4.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_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": "5003025f93c1a84914ea5ae66519c100", "ansible_memfree_mb": 757, "ansible_memory_mb": {"nocache": {"free": 874, "used": 117}, "real": {"free": 757, "total": 991, "used": 234}, "swap": {"cached": 0, "free": 0, "total": 0, "used": 0}}, "ansible_memtotal_mb": 991, "ansible_mounts": [{"block_available": 1872656, "block_size": 4096, "block_total": 2094336, "block_used": 221680, "device": "/dev/vda1", "fstype": "xfs", "inode_available": 4168555, "inode_total": 4193792, "inode_used": 25237, "mount": "/", "options": "rw,seclabel,relatime,attr2,inode64,noquota", "size_available": 7670398976, "size_total": 8578400256, "uuid": "de86ba8a-914b-4104-9fd8-f9de800452ea"}], "ansible_nodename": "ibm-p8-kvm-03-guest-02", "ansible_os_family": "RedHat", "ansible_pkg_mgr": "yum", "ansible_proc_cmdline": {"BOOT_IMAGE": "/boot/vmlinuz-3.10.0-862.14.4.el7.x86_64", "LANG": "en_US.UTF-8", "console": ["tty0", "ttyS0,115200n8", "ttyS0,115200"], "crashkernel": "auto", "ro": true, "root": "UUID=de86ba8a-914b-4104-9fd8-f9de800452ea"}, "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": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBC4+oidL7v3BcXFSZaYpgq73IA2DWqHofvBz4xuDShSKIIscAe3WOwpyyLbeQ4QUX+rMcgs3tytEMc9rLoo5k9g=", "ansible_ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAIHCaBCmEjwcRSQLCtcXAnnkaVETP7s/XIHjZdZkIvrYc", "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABAQCysJ9CiQ20nEYWUBO3UYwDUKI7x0keHImXpoLtnh6SB+H4znBXmac0ylQtN2kt7YB0jOuoxgI85EEwDsdqkprig98OXlEyfU7RcD+nRqcUmoKUlgjP/0DMC8rpFNY6HsmsbTTsOT+ImzrpghKDHXje6/bcE5/yQqX11OT5wF0C/ODCEd6pESi48mWZP4ozI6iHHaHYprcFtdC3GoPr1HgzGr6Bw/B4T5EG2xgUXMnzeikbtftuniK2hBuCfguPX3KUmBvw7PYkoS7lO/kg6XdEdUgAnu/ljZ+mj/eJ8Atc3MwhY/OBJwe59BQ6Ix8NpO3u4aD3veondVFwh++ZhYT1", "ansible_swapfree_mb": 0, "ansible_swaptotal_mb": 0, "ansible_system": "Linux", "ansible_system_capabilities": ["cap_chown", "cap_dac_override", "cap_dac_read_search", "cap_fowner", "cap_fsetid", "cap_kill", "cap_setgid", "cap_setuid", "cap_setpcap", "cap_linux_immutable", "cap_net_bind_service", "cap_net_broadcast", "cap_net_admin", "cap_net_raw", "cap_ipc_lock", "cap_ipc_owner", "cap_sys_module", "cap_sys_rawio", "cap_sys_chroot", "cap_sys_ptrace", "cap_sys_pacct", "cap_sys_admin", "cap_sys_boot", "cap_sys_nice", "cap_sys_resource", "cap_sys_time", "cap_sys_tty_config", "cap_mknod", "cap_lease", "cap_audit_write", "cap_audit_control", "cap_setfcap", "cap_mac_override", "cap_mac_admin", "cap_syslog", "35", "36+ep"], "ansible_system_capabilities_enforced": "True", "ansible_system_vendor": "QEMU", "ansible_uptime_seconds": 44, "ansible_user_dir": "/root", "ansible_user_gecos": "root", "ansible_user_gid": 0, "ansible_user_id": "root", "ansible_user_shell": "/bin/bash", "ansible_user_uid": 0, "ansible_userspace_architecture": "x86_64", "ansible_userspace_bits": "64", "ansible_virtualization_role": "guest", "ansible_virtualization_type": "kvm", "gather_subset": ["all"], "module_setup": true}, "changed": false} META: ran handlers TASK [initial changes] ************************************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tests/tests_boolean.yml:7 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-12.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-22.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:31 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/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/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:64 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": "/usr/sbin/semanage boolean -D", "delta": "0:00:02.581554", "end": "2019-05-26 11:21:06.391820", "rc": 0, "start": "2019-05-26 11:21:03.810266", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpzt1cfv20/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:05.026856", "end": "2019-05-26 11:21:12.816785", "rc": 0, "start": "2019-05-26 11:21:07.789929", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:84 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => (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/tmpzt1cfv20/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpzt1cfv20/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:118 TASK [Get local modifications - boolean] ******************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tests/set_selinux_variables.yml:2 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["/usr/sbin/semanage", "boolean", "-l", "-n", "-C"], "delta": "0:00:00.656412", "end": "2019-05-26 11:21:18.565750", "rc": 0, "start": "2019-05-26 11:21:17.909338", "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/tmpzt1cfv20/tests/set_selinux_variables.yml:5 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["/usr/sbin/semanage", "port", "-l", "-n", "-C"], "delta": "0:00:00.745728", "end": "2019-05-26 11:21:20.487853", "rc": 0, "start": "2019-05-26 11:21:19.742125", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - login] ********************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tests/set_selinux_variables.yml:8 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["/usr/sbin/semanage", "login", "-l", "-n", "-C"], "delta": "0:00:00.580320", "end": "2019-05-26 11:21:22.457974", "rc": 0, "start": "2019-05-26 11:21:21.877654", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - fcontext] ****************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/set_selinux_variables.yml:11 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["/usr/sbin/semanage", "fcontext", "-l", "-n", "-C"], "delta": "0:00:00.756328", "end": "2019-05-26 11:21:24.437043", "rc": 0, "start": "2019-05-26 11:21:23.680715", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [save state after initial changes and before other changes] ******************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tests/tests_boolean.yml:16 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"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/tmpzt1cfv20/tests/tests_boolean.yml:20 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "changed": false, "msg": "All assertions passed" } TASK [subsequent changes] ********************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/tests_boolean.yml:24 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-12.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-22.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:31 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/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/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpzt1cfv20/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:06.874212", "end": "2019-05-26 11:21:38.148598", "rc": 0, "start": "2019-05-26 11:21:31.274386", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:84 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => (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/tmpzt1cfv20/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpzt1cfv20/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:118 TASK [Get local modifications - boolean] ******************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tests/set_selinux_variables.yml:2 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["/usr/sbin/semanage", "boolean", "-l", "-n", "-C"], "delta": "0:00:00.712202", "end": "2019-05-26 11:21:43.171580", "rc": 0, "start": "2019-05-26 11:21:42.459378", "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/tmpzt1cfv20/tests/set_selinux_variables.yml:5 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["/usr/sbin/semanage", "port", "-l", "-n", "-C"], "delta": "0:00:00.469065", "end": "2019-05-26 11:21:44.839812", "rc": 0, "start": "2019-05-26 11:21:44.370747", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - login] ********************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tests/set_selinux_variables.yml:8 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["/usr/sbin/semanage", "login", "-l", "-n", "-C"], "delta": "0:00:00.574403", "end": "2019-05-26 11:21:46.693384", "rc": 0, "start": "2019-05-26 11:21:46.118981", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - fcontext] ****************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/set_selinux_variables.yml:11 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["/usr/sbin/semanage", "fcontext", "-l", "-n", "-C"], "delta": "0:00:00.885158", "end": "2019-05-26 11:21:48.755919", "rc": 0, "start": "2019-05-26 11:21:47.870761", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [save state after other changes] ********************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/tests_boolean.yml:33 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"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/tmpzt1cfv20/tests/tests_boolean.yml:37 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "changed": false, "msg": "All assertions passed" } TASK [include_role : selinux] ****************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/tests_boolean.yml:41 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-12.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-22.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:31 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/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/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:64 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": "/usr/sbin/semanage boolean -D", "delta": "0:00:07.329628", "end": "2019-05-26 11:22:02.440898", "rc": 0, "start": "2019-05-26 11:21:55.111270", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpzt1cfv20/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:05.514253", "end": "2019-05-26 11:22:09.498010", "rc": 0, "start": "2019-05-26 11:22:03.983757", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpzt1cfv20/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:118 TASK [Get local modifications - boolean] ******************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tests/set_selinux_variables.yml:2 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["/usr/sbin/semanage", "boolean", "-l", "-n", "-C"], "delta": "0:00:00.432350", "end": "2019-05-26 11:22:11.406104", "rc": 0, "start": "2019-05-26 11:22:10.973754", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - port] ********************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/set_selinux_variables.yml:5 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["/usr/sbin/semanage", "port", "-l", "-n", "-C"], "delta": "0:00:00.853816", "end": "2019-05-26 11:22:13.597763", "rc": 0, "start": "2019-05-26 11:22:12.743947", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - login] ********************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tests/set_selinux_variables.yml:8 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["/usr/sbin/semanage", "login", "-l", "-n", "-C"], "delta": "0:00:00.747204", "end": "2019-05-26 11:22:15.593605", "rc": 0, "start": "2019-05-26 11:22:14.846401", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - fcontext] ****************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/set_selinux_variables.yml:11 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["/usr/sbin/semanage", "fcontext", "-l", "-n", "-C"], "delta": "0:00:00.525990", "end": "2019-05-26 11:22:17.206408", "rc": 0, "start": "2019-05-26 11:22:16.680418", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Check if there are no SELinux boolean mapping changes] *********************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/tests_boolean.yml:47 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "changed": false, "msg": "All assertions passed" } META: ran handlers META: ran handlers PLAY RECAP ************************************************************************************************************************************************************************************************* /home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c : ok=35 changed=19 unreachable=0 failed=0 skipped=48 rescued=0 ignored=0 + cd /tmp/tmpzt1cfv20/tests; TEST_SUBJECTS=/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_selinux-35-af5a0a6-centos-7-zhnzhoz4/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpzt1cfv20/_setup.yml /tmp/tmpzt1cfv20/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 *************************************************************************************************************************************************************************************** 1 plays in /tmp/tmpzt1cfv20/_setup.yml PLAY [Fail when only localhost is available] *************************************************************************************************************************************************************** META: ran handlers TASK [debug] *********************************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/_setup.yml:5 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "groups": { "all": [ "/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c" ], "localhost": [ "/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c" ], "subjects": [ "/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c" ], "ungrouped": [] } } TASK [fail] ************************************************************************************************************************************************************************************************ task path: /tmp/tmpzt1cfv20/_setup.yml:7 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ************************************************************************************************************************************************************************************************* /home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 statically imported: /tmp/tmpzt1cfv20/tests/set_selinux_variables.yml statically imported: /tmp/tmpzt1cfv20/tests/set_selinux_variables.yml statically imported: /tmp/tmpzt1cfv20/tests/set_selinux_variables.yml statically imported: /tmp/tmpzt1cfv20/tests/set_selinux_variables.yml PLAYBOOK: tests_fcontext.yml ******************************************************************************************************************************************************************************* 1 plays in /tmp/tmpzt1cfv20/tests/tests_fcontext.yml PLAY [Check if selinux role sets SELinux fcontext mappings] ************************************************************************************************************************************************ TASK [Gathering Facts] ************************************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tests/tests_fcontext.yml:2 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"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-862.14.4.el7.x86_64", "LANG": "en_US.UTF-8", "console": "ttyS0,115200", "crashkernel": "auto", "ro": true, "root": "UUID=de86ba8a-914b-4104-9fd8-f9de800452ea"}, "ansible_date_time": {"date": "2019-05-26", "day": "26", "epoch": "1558869790", "hour": "11", "iso8601": "2019-05-26T11:23:10Z", "iso8601_basic": "20190526T112310400464", "iso8601_basic_short": "20190526T112310", "iso8601_micro": "2019-05-26T11:23:10.400594Z", "minute": "23", "month": "05", "second": "10", "time": "11:23:10", "tz": "UTC", "tz_offset": "+0000", "weekday": "Sonntag", "weekday_number": "0", "weeknumber": "20", "year": "2019"}, "ansible_default_ipv4": {"address": "10.0.2.15", "alias": "eth0", "broadcast": "10.0.2.255", "gateway": "10.0.2.2", "interface": "eth0", "macaddress": "52:54:00:12:34:56", "mtu": 1500, "netmask": "255.255.255.0", "network": "10.0.2.0", "type": "ether"}, "ansible_default_ipv6": {"address": "fec0::5054:ff:fe12:3456", "gateway": "fe80::2", "interface": "eth0", "macaddress": "52:54:00:12:34:56", "mtu": 1500, "prefix": "64", "scope": "site", "type": "ether"}, "ansible_device_links": {"ids": {"sr0": ["ata-QEMU_DVD-ROM_QM00003"]}, "labels": {"sr0": ["cidata"]}, "masters": {}, "uuids": {"sr0": ["2019-05-26-13-22-18-00"], "vda1": ["de86ba8a-914b-4104-9fd8-f9de800452ea"]}}, "ansible_devices": {"fd0": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "1", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "deadline", "sectors": "8", "sectorsize": "512", "size": "4.00 KB", "support_discard": "0", "vendor": null, "virtual": 1}, "sr0": {"holders": [], "host": "", "links": {"ids": ["ata-QEMU_DVD-ROM_QM00003"], "labels": ["cidata"], "masters": [], "uuids": ["2019-05-26-13-22-18-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": ["de86ba8a-914b-4104-9fd8-f9de800452ea"]}, "sectors": "16775168", "sectorsize": 512, "size": "8.00 GB", "start": "2048", "uuid": "de86ba8a-914b-4104-9fd8-f9de800452ea"}}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "mq-deadline", "sectors": "16777216", "sectorsize": "512", "size": "8.00 GB", "support_discard": "0", "vendor": "0x1af4", "virtual": 1}}, "ansible_distribution": "CentOS", "ansible_distribution_file_parsed": true, "ansible_distribution_file_path": "/etc/redhat-release", "ansible_distribution_file_variety": "RedHat", "ansible_distribution_major_version": "7", "ansible_distribution_release": "Core", "ansible_distribution_version": "7", "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 50316 22", "SSH_CONNECTION": "10.0.2.2 50316 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_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-862.14.4.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_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": "5003025f93c1a84914ea5ae66519c100", "ansible_memfree_mb": 757, "ansible_memory_mb": {"nocache": {"free": 873, "used": 118}, "real": {"free": 757, "total": 991, "used": 234}, "swap": {"cached": 0, "free": 0, "total": 0, "used": 0}}, "ansible_memtotal_mb": 991, "ansible_mounts": [{"block_available": 1872961, "block_size": 4096, "block_total": 2094336, "block_used": 221375, "device": "/dev/vda1", "fstype": "xfs", "inode_available": 4168555, "inode_total": 4193792, "inode_used": 25237, "mount": "/", "options": "rw,seclabel,relatime,attr2,inode64,noquota", "size_available": 7671648256, "size_total": 8578400256, "uuid": "de86ba8a-914b-4104-9fd8-f9de800452ea"}], "ansible_nodename": "ibm-p8-kvm-03-guest-02", "ansible_os_family": "RedHat", "ansible_pkg_mgr": "yum", "ansible_proc_cmdline": {"BOOT_IMAGE": "/boot/vmlinuz-3.10.0-862.14.4.el7.x86_64", "LANG": "en_US.UTF-8", "console": ["tty0", "ttyS0,115200n8", "ttyS0,115200"], "crashkernel": "auto", "ro": true, "root": "UUID=de86ba8a-914b-4104-9fd8-f9de800452ea"}, "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": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBKOks1B6UzLRVGSV1fDmmnE/VXsDC0SOP/iSew4qvdB76E7HJSJHf0/ZZTI4fCtSG1TjxXQlU8IxnTfvLeg0ttY=", "ansible_ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAII96KHS7Pn+hONEf+c3vIFtxKWyD2wMeSbs8oDP4AlS/", "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABAQCuBlnlzqTu4+prhTcO0U1GsXhp99Ip3rsFxo6ZL6PA1SCpnojVY9PdIqlBd5GdDqxhpuQyoUBlPbZeBXW0+0FoJqwZPyrZe0X9BIvcJn+p8pabxDoIdr/qyyCxJZ/XQEyba9ROv+hQjYdy38btWv4XDJoIla3MgUJNxZZamoqpMvS/aImCK0gmjp1dSuY8k8Cs90/7DoX5MaRHWrNHtvriQRdWY3NcrUClDwbNqIoUGQHnmNpU0umcLZZmOHOUD8gyb8My0pS/Ne2Fjtgzpgm0kJWLhyqI6H9QEM6OxLsAsVgiTBx1zvBYM+yBvqzMTWILQvkQChK4KSdpr13wB2HR", "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": 47, "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/tmpzt1cfv20/tests/tests_fcontext.yml:8 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-12.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-22.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:31 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/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/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:68 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": "/usr/sbin/semanage fcontext -D", "delta": "0:00:02.520015", "end": "2019-05-26 11:23:20.886754", "rc": 0, "start": "2019-05-26 11:23:18.366739", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpzt1cfv20/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:05.534855", "end": "2019-05-26 11:23:27.743272", "rc": 0, "start": "2019-05-26 11:23:22.208417", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:97 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => (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/tmpzt1cfv20/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpzt1cfv20/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:118 TASK [Get local modifications - boolean] ******************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tests/set_selinux_variables.yml:2 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["/usr/sbin/semanage", "boolean", "-l", "-n", "-C"], "delta": "0:00:00.680460", "end": "2019-05-26 11:23:38.162747", "rc": 0, "start": "2019-05-26 11:23:37.482287", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - port] ********************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/set_selinux_variables.yml:5 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["/usr/sbin/semanage", "port", "-l", "-n", "-C"], "delta": "0:00:00.748782", "end": "2019-05-26 11:23:39.986167", "rc": 0, "start": "2019-05-26 11:23:39.237385", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - login] ********************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tests/set_selinux_variables.yml:8 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["/usr/sbin/semanage", "login", "-l", "-n", "-C"], "delta": "0:00:00.609600", "end": "2019-05-26 11:23:41.687701", "rc": 0, "start": "2019-05-26 11:23:41.078101", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - fcontext] ****************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/set_selinux_variables.yml:11 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["/usr/sbin/semanage", "fcontext", "-l", "-n", "-C"], "delta": "0:00:00.765647", "end": "2019-05-26 11:23:43.583356", "rc": 0, "start": "2019-05-26 11:23:42.817709", "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/tmpzt1cfv20/tests/tests_fcontext.yml:17 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"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/tmpzt1cfv20/tests/tests_fcontext.yml:21 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "changed": false, "msg": "All assertions passed" } TASK [subsequent changes] ********************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/tests_fcontext.yml:25 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-12.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-22.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:31 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/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/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpzt1cfv20/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:04.930850", "end": "2019-05-26 11:23:55.177330", "rc": 0, "start": "2019-05-26 11:23:50.246480", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:97 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => (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/tmpzt1cfv20/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpzt1cfv20/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:118 TASK [Get local modifications - boolean] ******************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tests/set_selinux_variables.yml:2 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["/usr/sbin/semanage", "boolean", "-l", "-n", "-C"], "delta": "0:00:00.788739", "end": "2019-05-26 11:24:06.709013", "rc": 0, "start": "2019-05-26 11:24:05.920274", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - port] ********************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/set_selinux_variables.yml:5 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["/usr/sbin/semanage", "port", "-l", "-n", "-C"], "delta": "0:00:00.726273", "end": "2019-05-26 11:24:08.673286", "rc": 0, "start": "2019-05-26 11:24:07.947013", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - login] ********************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tests/set_selinux_variables.yml:8 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["/usr/sbin/semanage", "login", "-l", "-n", "-C"], "delta": "0:00:01.029662", "end": "2019-05-26 11:24:10.813810", "rc": 0, "start": "2019-05-26 11:24:09.784148", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - fcontext] ****************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/set_selinux_variables.yml:11 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["/usr/sbin/semanage", "fcontext", "-l", "-n", "-C"], "delta": "0:00:00.554772", "end": "2019-05-26 11:24:12.848074", "rc": 0, "start": "2019-05-26 11:24:12.293302", "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/tmpzt1cfv20/tests/tests_fcontext.yml:34 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"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/tmpzt1cfv20/tests/tests_fcontext.yml:38 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "changed": false, "msg": "All assertions passed" } TASK [revert subsequent changes] *************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/tests_fcontext.yml:42 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-12.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-22.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:31 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/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/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpzt1cfv20/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:05.146920", "end": "2019-05-26 11:24:24.766692", "rc": 0, "start": "2019-05-26 11:24:19.619772", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:97 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => (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/tmpzt1cfv20/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpzt1cfv20/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:118 TASK [Get local modifications - boolean] ******************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tests/set_selinux_variables.yml:2 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["/usr/sbin/semanage", "boolean", "-l", "-n", "-C"], "delta": "0:00:00.917970", "end": "2019-05-26 11:24:37.190658", "rc": 0, "start": "2019-05-26 11:24:36.272688", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - port] ********************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/set_selinux_variables.yml:5 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["/usr/sbin/semanage", "port", "-l", "-n", "-C"], "delta": "0:00:00.713396", "end": "2019-05-26 11:24:39.125995", "rc": 0, "start": "2019-05-26 11:24:38.412599", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - login] ********************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tests/set_selinux_variables.yml:8 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["/usr/sbin/semanage", "login", "-l", "-n", "-C"], "delta": "0:00:00.760687", "end": "2019-05-26 11:24:41.356178", "rc": 0, "start": "2019-05-26 11:24:40.595491", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - fcontext] ****************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/set_selinux_variables.yml:11 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["/usr/sbin/semanage", "fcontext", "-l", "-n", "-C"], "delta": "0:00:00.571837", "end": "2019-05-26 11:24:43.300187", "rc": 0, "start": "2019-05-26 11:24:42.728350", "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/tmpzt1cfv20/tests/tests_fcontext.yml:51 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"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/tmpzt1cfv20/tests/tests_fcontext.yml:55 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "changed": false, "msg": "All assertions passed" } TASK [include_role : selinux] ****************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/tests_fcontext.yml:59 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-12.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-22.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:31 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/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/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:68 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": "/usr/sbin/semanage fcontext -D", "delta": "0:00:07.725142", "end": "2019-05-26 11:24:57.332080", "rc": 0, "start": "2019-05-26 11:24:49.606938", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpzt1cfv20/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:05.717769", "end": "2019-05-26 11:25:04.436947", "rc": 0, "start": "2019-05-26 11:24:58.719178", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpzt1cfv20/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:118 TASK [Get local modifications - boolean] ******************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tests/set_selinux_variables.yml:2 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["/usr/sbin/semanage", "boolean", "-l", "-n", "-C"], "delta": "0:00:00.807670", "end": "2019-05-26 11:25:06.991704", "rc": 0, "start": "2019-05-26 11:25:06.184034", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - port] ********************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/set_selinux_variables.yml:5 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["/usr/sbin/semanage", "port", "-l", "-n", "-C"], "delta": "0:00:00.767270", "end": "2019-05-26 11:25:09.116488", "rc": 0, "start": "2019-05-26 11:25:08.349218", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - login] ********************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tests/set_selinux_variables.yml:8 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["/usr/sbin/semanage", "login", "-l", "-n", "-C"], "delta": "0:00:00.678319", "end": "2019-05-26 11:25:11.058385", "rc": 0, "start": "2019-05-26 11:25:10.380066", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - fcontext] ****************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/set_selinux_variables.yml:11 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["/usr/sbin/semanage", "fcontext", "-l", "-n", "-C"], "delta": "0:00:00.555952", "end": "2019-05-26 11:25:12.818450", "rc": 0, "start": "2019-05-26 11:25:12.262498", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Check if there are no SELinux fcontext mapping changes] ********************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/tests_fcontext.yml:65 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "changed": false, "msg": "All assertions passed" } META: ran handlers META: ran handlers PLAY RECAP ************************************************************************************************************************************************************************************************* /home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c : ok=46 changed=25 unreachable=0 failed=0 skipped=64 rescued=0 ignored=0 + cd /tmp/tmpzt1cfv20/tests; TEST_SUBJECTS=/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_selinux-35-af5a0a6-centos-7-zhnzhoz4/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpzt1cfv20/_setup.yml /tmp/tmpzt1cfv20/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 *************************************************************************************************************************************************************************************** 1 plays in /tmp/tmpzt1cfv20/_setup.yml PLAY [Fail when only localhost is available] *************************************************************************************************************************************************************** META: ran handlers TASK [debug] *********************************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/_setup.yml:5 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "groups": { "all": [ "/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c" ], "localhost": [ "/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c" ], "subjects": [ "/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c" ], "ungrouped": [] } } TASK [fail] ************************************************************************************************************************************************************************************************ task path: /tmp/tmpzt1cfv20/_setup.yml:7 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ************************************************************************************************************************************************************************************************* /home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 statically imported: /tmp/tmpzt1cfv20/tests/set_selinux_variables.yml statically imported: /tmp/tmpzt1cfv20/tests/set_selinux_variables.yml statically imported: /tmp/tmpzt1cfv20/tests/set_selinux_variables.yml statically imported: /tmp/tmpzt1cfv20/tests/set_selinux_variables.yml PLAYBOOK: tests_login.yml ********************************************************************************************************************************************************************************** 1 plays in /tmp/tmpzt1cfv20/tests/tests_login.yml PLAY [Check if selinux role sets SELinux login mappings] *************************************************************************************************************************************************** TASK [Gathering Facts] ************************************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tests/tests_login.yml:2 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"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-862.14.4.el7.x86_64", "LANG": "en_US.UTF-8", "console": "ttyS0,115200", "crashkernel": "auto", "ro": true, "root": "UUID=de86ba8a-914b-4104-9fd8-f9de800452ea"}, "ansible_date_time": {"date": "2019-05-26", "day": "26", "epoch": "1558869965", "hour": "11", "iso8601": "2019-05-26T11:26:05Z", "iso8601_basic": "20190526T112605761705", "iso8601_basic_short": "20190526T112605", "iso8601_micro": "2019-05-26T11:26:05.761849Z", "minute": "26", "month": "05", "second": "05", "time": "11:26:05", "tz": "UTC", "tz_offset": "+0000", "weekday": "Sonntag", "weekday_number": "0", "weeknumber": "20", "year": "2019"}, "ansible_default_ipv4": {"address": "10.0.2.15", "alias": "eth0", "broadcast": "10.0.2.255", "gateway": "10.0.2.2", "interface": "eth0", "macaddress": "52:54:00:12:34:56", "mtu": 1500, "netmask": "255.255.255.0", "network": "10.0.2.0", "type": "ether"}, "ansible_default_ipv6": {"address": "fec0::5054:ff:fe12:3456", "gateway": "fe80::2", "interface": "eth0", "macaddress": "52:54:00:12:34:56", "mtu": 1500, "prefix": "64", "scope": "site", "type": "ether"}, "ansible_device_links": {"ids": {"sr0": ["ata-QEMU_DVD-ROM_QM00003"]}, "labels": {"sr0": ["cidata"]}, "masters": {}, "uuids": {"sr0": ["2019-05-26-13-25-14-00"], "vda1": ["de86ba8a-914b-4104-9fd8-f9de800452ea"]}}, "ansible_devices": {"fd0": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "1", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "deadline", "sectors": "8", "sectorsize": "512", "size": "4.00 KB", "support_discard": "0", "vendor": null, "virtual": 1}, "sr0": {"holders": [], "host": "", "links": {"ids": ["ata-QEMU_DVD-ROM_QM00003"], "labels": ["cidata"], "masters": [], "uuids": ["2019-05-26-13-25-14-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": ["de86ba8a-914b-4104-9fd8-f9de800452ea"]}, "sectors": "16775168", "sectorsize": 512, "size": "8.00 GB", "start": "2048", "uuid": "de86ba8a-914b-4104-9fd8-f9de800452ea"}}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "mq-deadline", "sectors": "16777216", "sectorsize": "512", "size": "8.00 GB", "support_discard": "0", "vendor": "0x1af4", "virtual": 1}}, "ansible_distribution": "CentOS", "ansible_distribution_file_parsed": true, "ansible_distribution_file_path": "/etc/redhat-release", "ansible_distribution_file_variety": "RedHat", "ansible_distribution_major_version": "7", "ansible_distribution_release": "Core", "ansible_distribution_version": "7", "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 54178 22", "SSH_CONNECTION": "10.0.2.2 54178 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_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-862.14.4.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_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": "5003025f93c1a84914ea5ae66519c100", "ansible_memfree_mb": 756, "ansible_memory_mb": {"nocache": {"free": 873, "used": 118}, "real": {"free": 756, "total": 991, "used": 235}, "swap": {"cached": 0, "free": 0, "total": 0, "used": 0}}, "ansible_memtotal_mb": 991, "ansible_mounts": [{"block_available": 1872956, "block_size": 4096, "block_total": 2094336, "block_used": 221380, "device": "/dev/vda1", "fstype": "xfs", "inode_available": 4168555, "inode_total": 4193792, "inode_used": 25237, "mount": "/", "options": "rw,seclabel,relatime,attr2,inode64,noquota", "size_available": 7671627776, "size_total": 8578400256, "uuid": "de86ba8a-914b-4104-9fd8-f9de800452ea"}], "ansible_nodename": "ibm-p8-kvm-03-guest-02", "ansible_os_family": "RedHat", "ansible_pkg_mgr": "yum", "ansible_proc_cmdline": {"BOOT_IMAGE": "/boot/vmlinuz-3.10.0-862.14.4.el7.x86_64", "LANG": "en_US.UTF-8", "console": ["tty0", "ttyS0,115200n8", "ttyS0,115200"], "crashkernel": "auto", "ro": true, "root": "UUID=de86ba8a-914b-4104-9fd8-f9de800452ea"}, "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": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBOz8Ev2RBTyHhjISqj+PiiWE58JhjNsa12OYUzZF5JpXgVPasw93+fXk7dwrNktcG21xb7YLRwRCjE3zUg4qQj8=", "ansible_ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAIPVgF1cmTUKX18iFTojEtmGuBcLmqLvZOQyVrDaAIGvK", "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABAQC+dY+pQUdycRl1XmjywKuqDi87Bs7FCzSIO84Wpz7pkufMuibx6OjRjzpSxTpsww59NlgII/RXqWM8PMf/moTJNjhl8Qln4Ylph+Sfhg0fahwZ/iWJbscwAjqn+l+x2uIjvYkgX47xLTEvXNVriY74rU7r/o75EnP6PEUuPIf4lGUqFA1adCfrNK8or7mRqAciwfVx8VIqA9eUv6zKPKq62Z5U/IBWeW7Ti5c2ZfQ4DU9bjA0t6LRfe/7yUeHmqzZt0oUSKpY+os4YStJwAYdUlx11XfhsyqNYpT/XwpJjOzhfT9LOQGNN9EzBoCSIYA1/h35eJA7CLfO1gGtA0G/H", "ansible_swapfree_mb": 0, "ansible_swaptotal_mb": 0, "ansible_system": "Linux", "ansible_system_capabilities": ["cap_chown", "cap_dac_override", "cap_dac_read_search", "cap_fowner", "cap_fsetid", "cap_kill", "cap_setgid", "cap_setuid", "cap_setpcap", "cap_linux_immutable", "cap_net_bind_service", "cap_net_broadcast", "cap_net_admin", "cap_net_raw", "cap_ipc_lock", "cap_ipc_owner", "cap_sys_module", "cap_sys_rawio", "cap_sys_chroot", "cap_sys_ptrace", "cap_sys_pacct", "cap_sys_admin", "cap_sys_boot", "cap_sys_nice", "cap_sys_resource", "cap_sys_time", "cap_sys_tty_config", "cap_mknod", "cap_lease", "cap_audit_write", "cap_audit_control", "cap_setfcap", "cap_mac_override", "cap_mac_admin", "cap_syslog", "35", "36+ep"], "ansible_system_capabilities_enforced": "True", "ansible_system_vendor": "QEMU", "ansible_uptime_seconds": 46, "ansible_user_dir": "/root", "ansible_user_gecos": "root", "ansible_user_gid": 0, "ansible_user_id": "root", "ansible_user_shell": "/bin/bash", "ansible_user_uid": 0, "ansible_userspace_architecture": "x86_64", "ansible_userspace_bits": "64", "ansible_virtualization_role": "guest", "ansible_virtualization_type": "kvm", "gather_subset": ["all"], "module_setup": true}, "changed": false} META: ran handlers TASK [Add a System Api Roles SELinux User] ***************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/tests_login.yml:7 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"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/tmpzt1cfv20/tests/tests_login.yml:12 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-12.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-22.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:31 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/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/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpzt1cfv20/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:76 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": "/usr/sbin/semanage login -D", "delta": "0:00:02.770583", "end": "2019-05-26 11:26:19.031450", "rc": 0, "start": "2019-05-26 11:26:16.260867", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:05.712421", "end": "2019-05-26 11:26:26.001823", "rc": 0, "start": "2019-05-26 11:26:20.289402", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpzt1cfv20/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:118 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => (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/tmpzt1cfv20/tests/set_selinux_variables.yml:2 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["/usr/sbin/semanage", "boolean", "-l", "-n", "-C"], "delta": "0:00:00.666777", "end": "2019-05-26 11:26:31.661131", "rc": 0, "start": "2019-05-26 11:26:30.994354", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - port] ********************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/set_selinux_variables.yml:5 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["/usr/sbin/semanage", "port", "-l", "-n", "-C"], "delta": "0:00:00.788529", "end": "2019-05-26 11:26:33.726839", "rc": 0, "start": "2019-05-26 11:26:32.938310", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - login] ********************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tests/set_selinux_variables.yml:8 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["/usr/sbin/semanage", "login", "-l", "-n", "-C"], "delta": "0:00:00.804226", "end": "2019-05-26 11:26:35.892057", "rc": 0, "start": "2019-05-26 11:26:35.087831", "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/tmpzt1cfv20/tests/set_selinux_variables.yml:11 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["/usr/sbin/semanage", "fcontext", "-l", "-n", "-C"], "delta": "0:00:00.651003", "end": "2019-05-26 11:26:38.139850", "rc": 0, "start": "2019-05-26 11:26:37.488847", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [save state after initial changes and before other changes] ******************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tests/tests_login.yml:22 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"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/tmpzt1cfv20/tests/tests_login.yml:26 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "changed": false, "msg": "All assertions passed" } TASK [subsequent changes] ********************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/tests_login.yml:30 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-12.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-22.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:31 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/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/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpzt1cfv20/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:05.137376", "end": "2019-05-26 11:26:49.880837", "rc": 0, "start": "2019-05-26 11:26:44.743461", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpzt1cfv20/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:118 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => (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/tmpzt1cfv20/tests/set_selinux_variables.yml:2 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["/usr/sbin/semanage", "boolean", "-l", "-n", "-C"], "delta": "0:00:00.679385", "end": "2019-05-26 11:26:55.368208", "rc": 0, "start": "2019-05-26 11:26:54.688823", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - port] ********************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/set_selinux_variables.yml:5 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["/usr/sbin/semanage", "port", "-l", "-n", "-C"], "delta": "0:00:00.757438", "end": "2019-05-26 11:26:57.220737", "rc": 0, "start": "2019-05-26 11:26:56.463299", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - login] ********************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tests/set_selinux_variables.yml:8 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["/usr/sbin/semanage", "login", "-l", "-n", "-C"], "delta": "0:00:00.547937", "end": "2019-05-26 11:26:59.008827", "rc": 0, "start": "2019-05-26 11:26:58.460890", "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/tmpzt1cfv20/tests/set_selinux_variables.yml:11 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["/usr/sbin/semanage", "fcontext", "-l", "-n", "-C"], "delta": "0:00:00.610672", "end": "2019-05-26 11:27:00.774646", "rc": 0, "start": "2019-05-26 11:27:00.163974", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [save state after other changes] ********************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/tests_login.yml:40 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"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/tmpzt1cfv20/tests/tests_login.yml:44 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "changed": false, "msg": "All assertions passed" } TASK [revert subsequent changes] *************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/tests_login.yml:48 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-12.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-22.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:31 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/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/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpzt1cfv20/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:03.914880", "end": "2019-05-26 11:27:10.849036", "rc": 0, "start": "2019-05-26 11:27:06.934156", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpzt1cfv20/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:118 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => (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/tmpzt1cfv20/tests/set_selinux_variables.yml:2 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["/usr/sbin/semanage", "boolean", "-l", "-n", "-C"], "delta": "0:00:00.724428", "end": "2019-05-26 11:27:15.762085", "rc": 0, "start": "2019-05-26 11:27:15.037657", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - port] ********************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/set_selinux_variables.yml:5 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["/usr/sbin/semanage", "port", "-l", "-n", "-C"], "delta": "0:00:00.460928", "end": "2019-05-26 11:27:17.173974", "rc": 0, "start": "2019-05-26 11:27:16.713046", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - login] ********************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tests/set_selinux_variables.yml:8 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["/usr/sbin/semanage", "login", "-l", "-n", "-C"], "delta": "0:00:00.629731", "end": "2019-05-26 11:27:18.714511", "rc": 0, "start": "2019-05-26 11:27:18.084780", "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/tmpzt1cfv20/tests/set_selinux_variables.yml:11 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["/usr/sbin/semanage", "fcontext", "-l", "-n", "-C"], "delta": "0:00:00.757931", "end": "2019-05-26 11:27:20.555231", "rc": 0, "start": "2019-05-26 11:27:19.797300", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [save state after reverting other changes] ************************************************************************************************************************************************************ task path: /tmp/tmpzt1cfv20/tests/tests_login.yml:58 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"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/tmpzt1cfv20/tests/tests_login.yml:62 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "changed": false, "msg": "All assertions passed" } TASK [include_role : selinux] ****************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/tests_login.yml:66 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-12.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-22.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:31 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/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/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpzt1cfv20/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:76 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": "/usr/sbin/semanage login -D", "delta": "0:00:07.900030", "end": "2019-05-26 11:27:34.258762", "rc": 0, "start": "2019-05-26 11:27:26.358732", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:05.657030", "end": "2019-05-26 11:27:41.343497", "rc": 0, "start": "2019-05-26 11:27:35.686467", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpzt1cfv20/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:118 TASK [Get local modifications - boolean] ******************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tests/set_selinux_variables.yml:2 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["/usr/sbin/semanage", "boolean", "-l", "-n", "-C"], "delta": "0:00:00.820200", "end": "2019-05-26 11:27:43.583305", "rc": 0, "start": "2019-05-26 11:27:42.763105", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - port] ********************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/set_selinux_variables.yml:5 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["/usr/sbin/semanage", "port", "-l", "-n", "-C"], "delta": "0:00:00.629844", "end": "2019-05-26 11:27:45.469780", "rc": 0, "start": "2019-05-26 11:27:44.839936", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - login] ********************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tests/set_selinux_variables.yml:8 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["/usr/sbin/semanage", "login", "-l", "-n", "-C"], "delta": "0:00:00.843145", "end": "2019-05-26 11:27:47.523311", "rc": 0, "start": "2019-05-26 11:27:46.680166", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - fcontext] ****************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/set_selinux_variables.yml:11 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["/usr/sbin/semanage", "fcontext", "-l", "-n", "-C"], "delta": "0:00:00.707914", "end": "2019-05-26 11:27:49.296385", "rc": 0, "start": "2019-05-26 11:27:48.588471", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Check if there are no SELinux login mapping changes] ************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tests/tests_login.yml:72 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "changed": false, "msg": "All assertions passed" } TASK [Remove a System Api Roles SELinux User] ************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/tests_login.yml:76 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"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/CentOS-7-x86_64-GenericCloud-1809.qcow2c : ok=48 changed=26 unreachable=0 failed=0 skipped=64 rescued=0 ignored=0 + cd /tmp/tmpzt1cfv20/tests; TEST_SUBJECTS=/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_selinux-35-af5a0a6-centos-7-zhnzhoz4/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpzt1cfv20/_setup.yml /tmp/tmpzt1cfv20/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 *************************************************************************************************************************************************************************************** 1 plays in /tmp/tmpzt1cfv20/_setup.yml PLAY [Fail when only localhost is available] *************************************************************************************************************************************************************** META: ran handlers TASK [debug] *********************************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/_setup.yml:5 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "groups": { "all": [ "/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c" ], "localhost": [ "/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c" ], "subjects": [ "/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c" ], "ungrouped": [] } } TASK [fail] ************************************************************************************************************************************************************************************************ task path: /tmp/tmpzt1cfv20/_setup.yml:7 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ************************************************************************************************************************************************************************************************* /home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 statically imported: /tmp/tmpzt1cfv20/tests/set_selinux_variables.yml statically imported: /tmp/tmpzt1cfv20/tests/set_selinux_variables.yml statically imported: /tmp/tmpzt1cfv20/tests/set_selinux_variables.yml statically imported: /tmp/tmpzt1cfv20/tests/set_selinux_variables.yml PLAYBOOK: tests_port.yml *********************************************************************************************************************************************************************************** 1 plays in /tmp/tmpzt1cfv20/tests/tests_port.yml PLAY [Check if selinux role sets SELinux port mapping] ***************************************************************************************************************************************************** TASK [Gathering Facts] ************************************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tests/tests_port.yml:2 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"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-862.14.4.el7.x86_64", "LANG": "en_US.UTF-8", "console": "ttyS0,115200", "crashkernel": "auto", "ro": true, "root": "UUID=de86ba8a-914b-4104-9fd8-f9de800452ea"}, "ansible_date_time": {"date": "2019-05-26", "day": "26", "epoch": "1558870122", "hour": "11", "iso8601": "2019-05-26T11:28:42Z", "iso8601_basic": "20190526T112842542315", "iso8601_basic_short": "20190526T112842", "iso8601_micro": "2019-05-26T11:28:42.542464Z", "minute": "28", "month": "05", "second": "42", "time": "11:28:42", "tz": "UTC", "tz_offset": "+0000", "weekday": "Sonntag", "weekday_number": "0", "weeknumber": "20", "year": "2019"}, "ansible_default_ipv4": {"address": "10.0.2.15", "alias": "eth0", "broadcast": "10.0.2.255", "gateway": "10.0.2.2", "interface": "eth0", "macaddress": "52:54:00:12:34:56", "mtu": 1500, "netmask": "255.255.255.0", "network": "10.0.2.0", "type": "ether"}, "ansible_default_ipv6": {"address": "fec0::5054:ff:fe12:3456", "gateway": "fe80::2", "interface": "eth0", "macaddress": "52:54:00:12:34:56", "mtu": 1500, "prefix": "64", "scope": "site", "type": "ether"}, "ansible_device_links": {"ids": {"sr0": ["ata-QEMU_DVD-ROM_QM00003"]}, "labels": {"sr0": ["cidata"]}, "masters": {}, "uuids": {"sr0": ["2019-05-26-13-27-52-00"], "vda1": ["de86ba8a-914b-4104-9fd8-f9de800452ea"]}}, "ansible_devices": {"fd0": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "1", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "deadline", "sectors": "8", "sectorsize": "512", "size": "4.00 KB", "support_discard": "0", "vendor": null, "virtual": 1}, "sr0": {"holders": [], "host": "", "links": {"ids": ["ata-QEMU_DVD-ROM_QM00003"], "labels": ["cidata"], "masters": [], "uuids": ["2019-05-26-13-27-52-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": ["de86ba8a-914b-4104-9fd8-f9de800452ea"]}, "sectors": "16775168", "sectorsize": 512, "size": "8.00 GB", "start": "2048", "uuid": "de86ba8a-914b-4104-9fd8-f9de800452ea"}}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "mq-deadline", "sectors": "16777216", "sectorsize": "512", "size": "8.00 GB", "support_discard": "0", "vendor": "0x1af4", "virtual": 1}}, "ansible_distribution": "CentOS", "ansible_distribution_file_parsed": true, "ansible_distribution_file_path": "/etc/redhat-release", "ansible_distribution_file_variety": "RedHat", "ansible_distribution_major_version": "7", "ansible_distribution_release": "Core", "ansible_distribution_version": "7", "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 59172 22", "SSH_CONNECTION": "10.0.2.2 59172 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_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-862.14.4.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_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": "5003025f93c1a84914ea5ae66519c100", "ansible_memfree_mb": 754, "ansible_memory_mb": {"nocache": {"free": 870, "used": 121}, "real": {"free": 754, "total": 991, "used": 237}, "swap": {"cached": 0, "free": 0, "total": 0, "used": 0}}, "ansible_memtotal_mb": 991, "ansible_mounts": [{"block_available": 1872651, "block_size": 4096, "block_total": 2094336, "block_used": 221685, "device": "/dev/vda1", "fstype": "xfs", "inode_available": 4168555, "inode_total": 4193792, "inode_used": 25237, "mount": "/", "options": "rw,seclabel,relatime,attr2,inode64,noquota", "size_available": 7670378496, "size_total": 8578400256, "uuid": "de86ba8a-914b-4104-9fd8-f9de800452ea"}], "ansible_nodename": "ibm-p8-kvm-03-guest-02", "ansible_os_family": "RedHat", "ansible_pkg_mgr": "yum", "ansible_proc_cmdline": {"BOOT_IMAGE": "/boot/vmlinuz-3.10.0-862.14.4.el7.x86_64", "LANG": "en_US.UTF-8", "console": ["tty0", "ttyS0,115200n8", "ttyS0,115200"], "crashkernel": "auto", "ro": true, "root": "UUID=de86ba8a-914b-4104-9fd8-f9de800452ea"}, "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": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBKnDLsMH+TRXZsqkZqoHuwdhGt+rU4ri92q2/Uwr1JaDTZvLAy2ZlS2b9YVolCKofSUNJpLv/yGbfwpD0/tlGso=", "ansible_ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAILNMu1IKIqsyj0jcbhiDAatnxp0HNs1HCkoj/2Vhvu8r", "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABAQDDqhhR7rZl9oFlTlle0lSprVSustGU9QxROseliC2IvJxVUNXTst8IIj9C+hGOCoGxxuOjz1dUSl4GGClJ55mEY2D8M6xPj3RG3qa1KkiltsxunSFRvMT3qPjc6CE7hOzqXCjs72C9w38jujLYYYgwfEe+bqcTaB2A9Kt4Mn3M2cjn5oGBC8gzN5GcxbuZw6mb30fSrNshDJnwKHR6RQ2tzYLhH8gioUUIY1GdT9/GOjYlF1tZEC+N/ds94JDVnnclS0DZCXb1yurNgfu1HwL0TwSsT0WCj2GH+aC5XNVx7oPJwe5EXVLjday9bAFEoGprraixAjGrbAUAUuYqWSnb", "ansible_swapfree_mb": 0, "ansible_swaptotal_mb": 0, "ansible_system": "Linux", "ansible_system_capabilities": ["cap_chown", "cap_dac_override", "cap_dac_read_search", "cap_fowner", "cap_fsetid", "cap_kill", "cap_setgid", "cap_setuid", "cap_setpcap", "cap_linux_immutable", "cap_net_bind_service", "cap_net_broadcast", "cap_net_admin", "cap_net_raw", "cap_ipc_lock", "cap_ipc_owner", "cap_sys_module", "cap_sys_rawio", "cap_sys_chroot", "cap_sys_ptrace", "cap_sys_pacct", "cap_sys_admin", "cap_sys_boot", "cap_sys_nice", "cap_sys_resource", "cap_sys_time", "cap_sys_tty_config", "cap_mknod", "cap_lease", "cap_audit_write", "cap_audit_control", "cap_setfcap", "cap_mac_override", "cap_mac_admin", "cap_syslog", "35", "36+ep"], "ansible_system_capabilities_enforced": "True", "ansible_system_vendor": "QEMU", "ansible_uptime_seconds": 44, "ansible_user_dir": "/root", "ansible_user_gecos": "root", "ansible_user_gid": 0, "ansible_user_id": "root", "ansible_user_shell": "/bin/bash", "ansible_user_uid": 0, "ansible_userspace_architecture": "x86_64", "ansible_userspace_bits": "64", "ansible_virtualization_role": "guest", "ansible_virtualization_type": "kvm", "gather_subset": ["all"], "module_setup": true}, "changed": false} META: ran handlers TASK [initial changes] ************************************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tests/tests_port.yml:7 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-12.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-22.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:31 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/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/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpzt1cfv20/tasks/main.yml:72 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": "/usr/sbin/semanage port -D", "delta": "0:00:02.755318", "end": "2019-05-26 11:28:52.742435", "rc": 0, "start": "2019-05-26 11:28:49.987117", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:06.518549", "end": "2019-05-26 11:29:00.593376", "rc": 0, "start": "2019-05-26 11:28:54.074827", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpzt1cfv20/tasks/main.yml:110 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => (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/tmpzt1cfv20/tasks/main.yml:118 TASK [Get local modifications - boolean] ******************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tests/set_selinux_variables.yml:2 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["/usr/sbin/semanage", "boolean", "-l", "-n", "-C"], "delta": "0:00:00.490825", "end": "2019-05-26 11:29:10.597046", "rc": 0, "start": "2019-05-26 11:29:10.106221", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - port] ********************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/set_selinux_variables.yml:5 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["/usr/sbin/semanage", "port", "-l", "-n", "-C"], "delta": "0:00:00.872890", "end": "2019-05-26 11:29:12.685902", "rc": 0, "start": "2019-05-26 11:29:11.813012", "stderr": "", "stderr_lines": [], "stdout": "ssh_port_t tcp 22100", "stdout_lines": ["ssh_port_t tcp 22100"]} TASK [Get local modifications - login] ********************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tests/set_selinux_variables.yml:8 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["/usr/sbin/semanage", "login", "-l", "-n", "-C"], "delta": "0:00:00.829253", "end": "2019-05-26 11:29:14.800626", "rc": 0, "start": "2019-05-26 11:29:13.971373", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - fcontext] ****************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/set_selinux_variables.yml:11 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["/usr/sbin/semanage", "fcontext", "-l", "-n", "-C"], "delta": "0:00:00.529511", "end": "2019-05-26 11:29:16.620915", "rc": 0, "start": "2019-05-26 11:29:16.091404", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [save state after initial changes and before other changes] ******************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tests/tests_port.yml:16 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"ansible_facts": {"port_before": "ssh_port_t tcp 22100"}, "changed": false} TASK [Check if there are SELinux port mapping changes] ***************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/tests_port.yml:20 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "changed": false, "msg": "All assertions passed" } TASK [subsequent changes] ********************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/tests_port.yml:24 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-12.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-22.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:31 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/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/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpzt1cfv20/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:05.185751", "end": "2019-05-26 11:29:28.446033", "rc": 0, "start": "2019-05-26 11:29:23.260282", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpzt1cfv20/tasks/main.yml:110 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => (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/tmpzt1cfv20/tasks/main.yml:118 TASK [Get local modifications - boolean] ******************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tests/set_selinux_variables.yml:2 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["/usr/sbin/semanage", "boolean", "-l", "-n", "-C"], "delta": "0:00:00.786492", "end": "2019-05-26 11:29:39.290469", "rc": 0, "start": "2019-05-26 11:29:38.503977", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - port] ********************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/set_selinux_variables.yml:5 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["/usr/sbin/semanage", "port", "-l", "-n", "-C"], "delta": "0:00:00.611867", "end": "2019-05-26 11:29:41.195038", "rc": 0, "start": "2019-05-26 11:29:40.583171", "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/tmpzt1cfv20/tests/set_selinux_variables.yml:8 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["/usr/sbin/semanage", "login", "-l", "-n", "-C"], "delta": "0:00:00.818983", "end": "2019-05-26 11:29:43.198842", "rc": 0, "start": "2019-05-26 11:29:42.379859", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - fcontext] ****************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/set_selinux_variables.yml:11 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["/usr/sbin/semanage", "fcontext", "-l", "-n", "-C"], "delta": "0:00:00.437712", "end": "2019-05-26 11:29:44.663900", "rc": 0, "start": "2019-05-26 11:29:44.226188", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [save state after other changes] ********************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/tests_port.yml:33 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"ansible_facts": {"port_after": "ssh_port_t tcp 22100, 22022"}, "changed": false} TASK [Check if there are SELinux port mapping changes] ***************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/tests_port.yml:37 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "changed": false, "msg": "All assertions passed" } TASK [revert subsequent changes] *************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/tests_port.yml:41 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-12.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-22.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:31 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/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/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpzt1cfv20/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:05.400239", "end": "2019-05-26 11:29:56.752373", "rc": 0, "start": "2019-05-26 11:29:51.352134", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpzt1cfv20/tasks/main.yml:110 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => (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/tmpzt1cfv20/tasks/main.yml:118 TASK [Get local modifications - boolean] ******************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tests/set_selinux_variables.yml:2 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["/usr/sbin/semanage", "boolean", "-l", "-n", "-C"], "delta": "0:00:00.494842", "end": "2019-05-26 11:30:06.528824", "rc": 0, "start": "2019-05-26 11:30:06.033982", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - port] ********************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/set_selinux_variables.yml:5 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["/usr/sbin/semanage", "port", "-l", "-n", "-C"], "delta": "0:00:00.718845", "end": "2019-05-26 11:30:08.640138", "rc": 0, "start": "2019-05-26 11:30:07.921293", "stderr": "", "stderr_lines": [], "stdout": "ssh_port_t tcp 22100", "stdout_lines": ["ssh_port_t tcp 22100"]} TASK [Get local modifications - login] ********************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tests/set_selinux_variables.yml:8 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["/usr/sbin/semanage", "login", "-l", "-n", "-C"], "delta": "0:00:00.650697", "end": "2019-05-26 11:30:10.681799", "rc": 0, "start": "2019-05-26 11:30:10.031102", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - fcontext] ****************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/set_selinux_variables.yml:11 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["/usr/sbin/semanage", "fcontext", "-l", "-n", "-C"], "delta": "0:00:00.407222", "end": "2019-05-26 11:30:12.364259", "rc": 0, "start": "2019-05-26 11:30:11.957037", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [save state after reverting other changes] ************************************************************************************************************************************************************ task path: /tmp/tmpzt1cfv20/tests/tests_port.yml:50 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"ansible_facts": {"port_after": "ssh_port_t tcp 22100"}, "changed": false} TASK [Check if SELinux port mapping is as before] ********************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/tests_port.yml:54 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "changed": false, "msg": "All assertions passed" } TASK [include_role : selinux] ****************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/tests_port.yml:58 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-12.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-22.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:31 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/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/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpzt1cfv20/tasks/main.yml:72 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": "/usr/sbin/semanage port -D", "delta": "0:00:07.515538", "end": "2019-05-26 11:30:26.049306", "rc": 0, "start": "2019-05-26 11:30:18.533768", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:05.178261", "end": "2019-05-26 11:30:32.635297", "rc": 0, "start": "2019-05-26 11:30:27.457036", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpzt1cfv20/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:118 TASK [Get local modifications - boolean] ******************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tests/set_selinux_variables.yml:2 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["/usr/sbin/semanage", "boolean", "-l", "-n", "-C"], "delta": "0:00:00.778118", "end": "2019-05-26 11:30:35.255263", "rc": 0, "start": "2019-05-26 11:30:34.477145", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - port] ********************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/set_selinux_variables.yml:5 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["/usr/sbin/semanage", "port", "-l", "-n", "-C"], "delta": "0:00:00.504119", "end": "2019-05-26 11:30:37.189932", "rc": 0, "start": "2019-05-26 11:30:36.685813", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - login] ********************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tests/set_selinux_variables.yml:8 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["/usr/sbin/semanage", "login", "-l", "-n", "-C"], "delta": "0:00:00.559345", "end": "2019-05-26 11:30:39.157099", "rc": 0, "start": "2019-05-26 11:30:38.597754", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - fcontext] ****************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/set_selinux_variables.yml:11 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["/usr/sbin/semanage", "fcontext", "-l", "-n", "-C"], "delta": "0:00:00.655936", "end": "2019-05-26 11:30:41.250688", "rc": 0, "start": "2019-05-26 11:30:40.594752", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Check if there are no SELinux port mapping changes] ************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/tests_port.yml:64 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "changed": false, "msg": "All assertions passed" } META: ran handlers META: ran handlers PLAY RECAP ************************************************************************************************************************************************************************************************* /home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c : ok=46 changed=25 unreachable=0 failed=0 skipped=64 rescued=0 ignored=0 + cd /tmp/tmpzt1cfv20/tests; TEST_SUBJECTS=/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_selinux-35-af5a0a6-centos-7-zhnzhoz4/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpzt1cfv20/_setup.yml /tmp/tmpzt1cfv20/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 *************************************************************************************************************************************************************************************** 1 plays in /tmp/tmpzt1cfv20/_setup.yml PLAY [Fail when only localhost is available] *************************************************************************************************************************************************************** META: ran handlers TASK [debug] *********************************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/_setup.yml:5 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "groups": { "all": [ "/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c" ], "localhost": [ "/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c" ], "subjects": [ "/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c" ], "ungrouped": [] } } TASK [fail] ************************************************************************************************************************************************************************************************ task path: /tmp/tmpzt1cfv20/_setup.yml:7 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ************************************************************************************************************************************************************************************************* /home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_selinux_disabled.yml *********************************************************************************************************************************************************************** 1 plays in /tmp/tmpzt1cfv20/tests/tests_selinux_disabled.yml PLAY [Ensure the default is targeted, enforcing, without local modifications] ****************************************************************************************************************************** TASK [Gathering Facts] ************************************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tests/tests_selinux_disabled.yml:2 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"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-862.14.4.el7.x86_64", "LANG": "en_US.UTF-8", "console": "ttyS0,115200", "crashkernel": "auto", "ro": true, "root": "UUID=de86ba8a-914b-4104-9fd8-f9de800452ea"}, "ansible_date_time": {"date": "2019-05-26", "day": "26", "epoch": "1558870292", "hour": "11", "iso8601": "2019-05-26T11:31:32Z", "iso8601_basic": "20190526T113132914914", "iso8601_basic_short": "20190526T113132", "iso8601_micro": "2019-05-26T11:31:32.915046Z", "minute": "31", "month": "05", "second": "32", "time": "11:31:32", "tz": "UTC", "tz_offset": "+0000", "weekday": "Sonntag", "weekday_number": "0", "weeknumber": "20", "year": "2019"}, "ansible_default_ipv4": {"address": "10.0.2.15", "alias": "eth0", "broadcast": "10.0.2.255", "gateway": "10.0.2.2", "interface": "eth0", "macaddress": "52:54:00:12:34:56", "mtu": 1500, "netmask": "255.255.255.0", "network": "10.0.2.0", "type": "ether"}, "ansible_default_ipv6": {"address": "fec0::5054:ff:fe12:3456", "gateway": "fe80::2", "interface": "eth0", "macaddress": "52:54:00:12:34:56", "mtu": 1500, "prefix": "64", "scope": "site", "type": "ether"}, "ansible_device_links": {"ids": {"sr0": ["ata-QEMU_DVD-ROM_QM00003"]}, "labels": {"sr0": ["cidata"]}, "masters": {}, "uuids": {"sr0": ["2019-05-26-13-30-42-00"], "vda1": ["de86ba8a-914b-4104-9fd8-f9de800452ea"]}}, "ansible_devices": {"fd0": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "1", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "deadline", "sectors": "8", "sectorsize": "512", "size": "4.00 KB", "support_discard": "0", "vendor": null, "virtual": 1}, "sr0": {"holders": [], "host": "", "links": {"ids": ["ata-QEMU_DVD-ROM_QM00003"], "labels": ["cidata"], "masters": [], "uuids": ["2019-05-26-13-30-42-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": ["de86ba8a-914b-4104-9fd8-f9de800452ea"]}, "sectors": "16775168", "sectorsize": 512, "size": "8.00 GB", "start": "2048", "uuid": "de86ba8a-914b-4104-9fd8-f9de800452ea"}}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "mq-deadline", "sectors": "16777216", "sectorsize": "512", "size": "8.00 GB", "support_discard": "0", "vendor": "0x1af4", "virtual": 1}}, "ansible_distribution": "CentOS", "ansible_distribution_file_parsed": true, "ansible_distribution_file_path": "/etc/redhat-release", "ansible_distribution_file_variety": "RedHat", "ansible_distribution_major_version": "7", "ansible_distribution_release": "Core", "ansible_distribution_version": "7", "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 44562 22", "SSH_CONNECTION": "10.0.2.2 44562 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_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-862.14.4.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_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": "5003025f93c1a84914ea5ae66519c100", "ansible_memfree_mb": 756, "ansible_memory_mb": {"nocache": {"free": 873, "used": 118}, "real": {"free": 756, "total": 991, "used": 235}, "swap": {"cached": 0, "free": 0, "total": 0, "used": 0}}, "ansible_memtotal_mb": 991, "ansible_mounts": [{"block_available": 1872651, "block_size": 4096, "block_total": 2094336, "block_used": 221685, "device": "/dev/vda1", "fstype": "xfs", "inode_available": 4168555, "inode_total": 4193792, "inode_used": 25237, "mount": "/", "options": "rw,seclabel,relatime,attr2,inode64,noquota", "size_available": 7670378496, "size_total": 8578400256, "uuid": "de86ba8a-914b-4104-9fd8-f9de800452ea"}], "ansible_nodename": "ibm-p8-kvm-03-guest-02", "ansible_os_family": "RedHat", "ansible_pkg_mgr": "yum", "ansible_proc_cmdline": {"BOOT_IMAGE": "/boot/vmlinuz-3.10.0-862.14.4.el7.x86_64", "LANG": "en_US.UTF-8", "console": ["tty0", "ttyS0,115200n8", "ttyS0,115200"], "crashkernel": "auto", "ro": true, "root": "UUID=de86ba8a-914b-4104-9fd8-f9de800452ea"}, "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": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBPD4ZNodpUY45vSv/TKUsvKO27GwXNDprh80+NWkKsLgW7rtXC+LGNA8PJnzOaV5pyXWiDFwwb/kf6K3gv+hLP4=", "ansible_ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAIOsT5p4WUtNR9Tdj5lMDxPEfs5iAHycofzQSVA8meq7j", "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABAQC2QVONdIdYq1HuOWBm5w/Y97h3srb97WOH+ZfceiJBFZRm+v5SJL5fOvt7LM8X4Pw+GoSxsUUFU0qLq5FfaKNY98V9dLeWOfHgbtdvsqySA0Fz2AEZhTVycQWfOVZ7/QD5hFp5/opjgjgJtXyi7NRmlzXMWQMB1zzUNgw+VvpD6txhltOpBt3Gt47wdX9iA1UxV6DewWn/qQOCgGfGVF395J88J4RiVt1K5dpYM4d1pS5ngxmNPM3cqyZI8+HZrKNXZ8kfqTckxgbkVY3v7AUtalzer91pfqjMjncJsMXmElN5iC3YzCscGcXmyCd2p5U3lnCB9FQVKF4bBkx4Y1id", "ansible_swapfree_mb": 0, "ansible_swaptotal_mb": 0, "ansible_system": "Linux", "ansible_system_capabilities": ["cap_chown", "cap_dac_override", "cap_dac_read_search", "cap_fowner", "cap_fsetid", "cap_kill", "cap_setgid", "cap_setuid", "cap_setpcap", "cap_linux_immutable", "cap_net_bind_service", "cap_net_broadcast", "cap_net_admin", "cap_net_raw", "cap_ipc_lock", "cap_ipc_owner", "cap_sys_module", "cap_sys_rawio", "cap_sys_chroot", "cap_sys_ptrace", "cap_sys_pacct", "cap_sys_admin", "cap_sys_boot", "cap_sys_nice", "cap_sys_resource", "cap_sys_time", "cap_sys_tty_config", "cap_mknod", "cap_lease", "cap_audit_write", "cap_audit_control", "cap_setfcap", "cap_mac_override", "cap_mac_admin", "cap_syslog", "35", "36+ep"], "ansible_system_capabilities_enforced": "True", "ansible_system_vendor": "QEMU", "ansible_uptime_seconds": 44, "ansible_user_dir": "/root", "ansible_user_gecos": "root", "ansible_user_gid": 0, "ansible_user_id": "root", "ansible_user_shell": "/bin/bash", "ansible_user_uid": 0, "ansible_userspace_architecture": "x86_64", "ansible_userspace_bits": "64", "ansible_virtualization_role": "guest", "ansible_virtualization_type": "kvm", "gather_subset": ["all"], "module_setup": true}, "changed": false} META: ran handlers TASK [Install SELinux tool semanage on Fedora] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tests/tests_selinux_disabled.yml:16 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Add a Linux System Roles SELinux User] *************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/tests_selinux_disabled.yml:23 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"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/tmpzt1cfv20/tests/tests_selinux_disabled.yml:27 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": "echo -e -n \"boolean -m --on samba_enable_home_dirs\nport -a -p tcp -t ssh_port_t 22100\nfcontext -a -t user_home_dir_t /tmp/test_dir\nlogin -a -s staff_u sar-user\n\" | /usr/sbin/semanage -i -", "delta": "0:00:10.986303", "end": "2019-05-26 11:31:48.205705", "rc": 0, "start": "2019-05-26 11:31:37.219402", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Backup original /etc/selinux/config] ***************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/tests_selinux_disabled.yml:29 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "checksum": "a4700e6c122a6a38cff66b396bdd84cc756853d8", "dest": "/etc/selinux/config.test_selinux_disabled", "gid": 0, "group": "root", "md5sum": "a97ac66cf758dceb5eeafa2d83c8e6f3", "mode": "0644", "owner": "root", "secontext": "system_u:object_r:selinux_config_t:s0", "size": 546, "src": "/etc/selinux/config", "state": "file", "uid": 0} TASK [Upload testing /etc/selinux/config] ****************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/tests_selinux_disabled.yml:34 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"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-1558870309.9655623-182873100321609/source", "state": "file", "uid": 0} TASK [Switch to permissive to allow login when selinuxfs is not mounted] *********************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/tests_selinux_disabled.yml:38 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["setenforce", "0"], "delta": "0:00:00.035377", "end": "2019-05-26 11:31:54.081815", "rc": 0, "start": "2019-05-26 11:31:54.046438", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get selinuxfs mountpoint] **************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/tests_selinux_disabled.yml:41 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": "findmnt -n -t selinuxfs --output=target", "delta": "0:00:00.040822", "end": "2019-05-26 11:31:55.320600", "rc": 0, "start": "2019-05-26 11:31:55.279778", "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/tmpzt1cfv20/tests/tests_selinux_disabled.yml:44 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["umount", "/sys/fs/selinux"], "delta": "0:00:00.039971", "end": "2019-05-26 11:31:56.700442", "rc": 0, "start": "2019-05-26 11:31:56.660471", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [include_role : selinux] ****************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/tests_selinux_disabled.yml:49 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-12.el7.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.5-22.el7.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpzt1cfv20/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:31 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tasks/main.yml:38 [WARNING]: Reboot is required to set SELinux state to 'enforcing' changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"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/tmpzt1cfv20/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"ansible_facts": {"selinux_reboot_required": true}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/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/CentOS-7-x86_64-GenericCloud-1809.qcow2c]: 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/tmpzt1cfv20/tests/tests_selinux_disabled.yml:52 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"ansible_facts": {"test_selinux_reboot_required": true}, "changed": false} TASK [check that the role has failed and set the correct variable] ***************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/tests_selinux_disabled.yml:56 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => { "changed": false, "msg": "All assertions passed" } TASK [Mount /sys/fs/selinux back to system] **************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/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/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["mount", "-t", "selinuxfs", "selinuxfs", "/sys/fs/selinux"], "delta": "0:00:00.031624", "end": "2019-05-26 11:32:06.432463", "rc": 0, "start": "2019-05-26 11:32:06.400839", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Switch back to enforcing] **************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/tests_selinux_disabled.yml:62 changed: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] => {"changed": true, "cmd": ["setenforce", "1"], "delta": "0:00:00.017890", "end": "2019-05-26 11:32:07.728975", "rc": 0, "start": "2019-05-26 11:32:07.711085", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Gather facts again] ********************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/tests_selinux_disabled.yml:64 ok: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c] TASK [Check SELinux config mode] *************************************************************************************************************************************************************************** task path: /tmp/tmpzt1cfv20/tests/tests_selinux_disabled.yml:66 fatal: [/home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c]: FAILED! => {"changed": false, "msg": "Invalid options for assert: mgs"} PLAY RECAP ************************************************************************************************************************************************************************************************* /home/till/lsr-test-harness-files/cache/CentOS-7-x86_64-GenericCloud-1809.qcow2c : ok=18 changed=10 unreachable=0 failed=1 skipped=5 rescued=1 ignored=0