+ cd /tmp/tmp5m8_plt9/tests; TEST_SUBJECTS=/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_selinux-35-af5a0a6-centos-6-d2oz2eaq/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmp5m8_plt9/_setup.yml /tmp/tmp5m8_plt9/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/tmp5m8_plt9/_setup.yml PLAY [Fail when only localhost is available] *************************************************************************************************************************************************************** META: ran handlers TASK [debug] *********************************************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/_setup.yml:5 ok: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => { "groups": { "all": [ "/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c" ], "localhost": [ "/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c" ], "subjects": [ "/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c" ], "ungrouped": [] } } TASK [fail] ************************************************************************************************************************************************************************************************ task path: /tmp/tmp5m8_plt9/_setup.yml:7 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.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-6-x86_64-GenericCloud-1804_02.qcow2c : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 statically imported: /tmp/tmp5m8_plt9/tests/set_selinux_variables.yml statically imported: /tmp/tmp5m8_plt9/tests/set_selinux_variables.yml PLAYBOOK: tests_all_purge.yml ****************************************************************************************************************************************************************************** 1 plays in /tmp/tmp5m8_plt9/tests/tests_all_purge.yml PLAY [Test that selinux_all_purge drops local modifications, defaults to no] ******************************************************************************************************************************* TASK [Gathering Facts] ************************************************************************************************************************************************************************************* task path: /tmp/tmp5m8_plt9/tests/tests_all_purge.yml:1 ok: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.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": {"KEYBOARDTYPE": "pc", "KEYTABLE": "us", "LANG": "en_US.UTF-8", "SYSFONT": "latarcyrheb-sun16", "console": "ttyS0,115200", "rd_NO_DM": true, "rd_NO_LUKS": true, "rd_NO_LVM": true, "rd_NO_MD": true, "ro": true, "root": "UUID=40def5f8-2cbc-4acb-a638-a4af5f30b99b"}, "ansible_date_time": {"date": "2019-05-26", "day": "26", "epoch": "1558858183", "hour": "08", "iso8601": "2019-05-26T08:09:43Z", "iso8601_basic": "20190526T080943309511", "iso8601_basic_short": "20190526T080943", "iso8601_micro": "2019-05-26T08:09:43.309648Z", "minute": "09", "month": "05", "second": "43", "time": "08:09:43", "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": {"vda1": ["40def5f8-2cbc-4acb-a638-a4af5f30b99b"]}}, "ansible_devices": {"loop0": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "", "sectors": "0", "sectorsize": "512", "size": "0.00 Bytes", "support_discard": "0", "vendor": null, "virtual": 1}, "loop1": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "", "sectors": "0", "sectorsize": "512", "size": "0.00 Bytes", "support_discard": "0", "vendor": null, "virtual": 1}, "loop2": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "", "sectors": "0", "sectorsize": "512", "size": "0.00 Bytes", "support_discard": "0", "vendor": null, "virtual": 1}, "loop3": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "", "sectors": "0", "sectorsize": "512", "size": "0.00 Bytes", "support_discard": "0", "vendor": null, "virtual": 1}, "loop4": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "", "sectors": "0", "sectorsize": "512", "size": "0.00 Bytes", "support_discard": "0", "vendor": null, "virtual": 1}, "loop5": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "", "sectors": "0", "sectorsize": "512", "size": "0.00 Bytes", "support_discard": "0", "vendor": null, "virtual": 1}, "loop6": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "", "sectors": "0", "sectorsize": "512", "size": "0.00 Bytes", "support_discard": "0", "vendor": null, "virtual": 1}, "loop7": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "", "sectors": "0", "sectorsize": "512", "size": "0.00 Bytes", "support_discard": "0", "vendor": null, "virtual": 1}, "ram0": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "", "sectors": "32768", "sectorsize": "512", "size": "16.00 MB", "support_discard": "0", "vendor": null, "virtual": 1}, "ram1": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "", "sectors": "32768", "sectorsize": "512", "size": "16.00 MB", "support_discard": "0", "vendor": null, "virtual": 1}, "ram10": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "", "sectors": "32768", "sectorsize": "512", "size": "16.00 MB", "support_discard": "0", "vendor": null, "virtual": 1}, "ram11": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "", "sectors": "32768", "sectorsize": "512", "size": "16.00 MB", "support_discard": "0", "vendor": null, "virtual": 1}, "ram12": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "", "sectors": "32768", "sectorsize": "512", "size": "16.00 MB", "support_discard": "0", "vendor": null, "virtual": 1}, "ram13": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "", "sectors": "32768", "sectorsize": "512", "size": "16.00 MB", "support_discard": "0", "vendor": null, "virtual": 1}, "ram14": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "", "sectors": "32768", "sectorsize": "512", "size": "16.00 MB", "support_discard": "0", "vendor": null, "virtual": 1}, "ram15": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "", "sectors": "32768", "sectorsize": "512", "size": "16.00 MB", "support_discard": "0", "vendor": null, "virtual": 1}, "ram2": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "", "sectors": "32768", "sectorsize": "512", "size": "16.00 MB", "support_discard": "0", "vendor": null, "virtual": 1}, "ram3": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "", "sectors": "32768", "sectorsize": "512", "size": "16.00 MB", "support_discard": "0", "vendor": null, "virtual": 1}, "ram4": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "", "sectors": "32768", "sectorsize": "512", "size": "16.00 MB", "support_discard": "0", "vendor": null, "virtual": 1}, "ram5": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "", "sectors": "32768", "sectorsize": "512", "size": "16.00 MB", "support_discard": "0", "vendor": null, "virtual": 1}, "ram6": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "", "sectors": "32768", "sectorsize": "512", "size": "16.00 MB", "support_discard": "0", "vendor": null, "virtual": 1}, "ram7": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "", "sectors": "32768", "sectorsize": "512", "size": "16.00 MB", "support_discard": "0", "vendor": null, "virtual": 1}, "ram8": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "", "sectors": "32768", "sectorsize": "512", "size": "16.00 MB", "support_discard": "0", "vendor": null, "virtual": 1}, "ram9": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "", "sectors": "32768", "sectorsize": "512", "size": "16.00 MB", "support_discard": "0", "vendor": null, "virtual": 1}, "sr0": {"holders": [], "host": "IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]", "links": {"ids": ["ata-QEMU_DVD-ROM_QM00003"], "labels": ["cidata"], "masters": [], "uuids": []}, "model": "QEMU DVD-ROM", "partitions": {}, "removable": "1", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "cfq", "sectors": "728", "sectorsize": "2048", "size": "364.00 KB", "support_discard": "0", "vendor": "QEMU", "virtual": 1}, "vda": {"holders": [], "host": "SCSI storage controller: Red Hat, Inc Virtio block device", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {"vda1": {"holders": [], "links": {"ids": [], "labels": [], "masters": [], "uuids": ["40def5f8-2cbc-4acb-a638-a4af5f30b99b"]}, "sectors": "16775168", "sectorsize": 512, "size": "8.00 GB", "start": "2048", "uuid": "40def5f8-2cbc-4acb-a638-a4af5f30b99b"}}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "cfq", "sectors": "16777216", "sectorsize": "512", "size": "8.00 GB", "support_discard": "0", "vendor": "6900", "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": "6", "ansible_distribution_release": "Final", "ansible_distribution_version": "6.9", "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": {"G_BROKEN_FILENAMES": "1", "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:*.arj=38;5;9:*.taz=38;5;9:*.lzh=38;5;9:*.lzma=38;5;9:*.tlz=38;5;9:*.txz=38;5;9:*.zip=38;5;9:*.z=38;5;9:*.Z=38;5;9:*.dz=38;5;9:*.gz=38;5;9:*.lz=38;5;9:*.xz=38;5;9:*.bz2=38;5;9:*.tbz=38;5;9:*.tbz2=38;5;9:*.bz=38;5;9:*.tz=38;5;9:*.deb=38;5;9:*.rpm=38;5;9:*.jar=38;5;9:*.rar=38;5;9:*.ace=38;5;9:*.zoo=38;5;9:*.cpio=38;5;9:*.7z=38;5;9:*.rz=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:*.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:/sbin:/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 52938 22", "SSH_CONNECTION": "10.0.2.2 52938 10.0.2.15 22", "SSH_TTY": "/dev/pts/0", "TERM": "xterm-256color", "USER": "root", "_": "/usr/bin/python2"}, "ansible_eth0": {"active": true, "device": "eth0", "features": {"fcoe_mtu": "off [fixed]", "generic_receive_offload": "on", "generic_segmentation_offload": "off [requested on]", "highdma": "on [fixed]", "large_receive_offload": "off [fixed]", "loopback": "off [fixed]", "netns_local": "off [fixed]", "ntuple_filters": "off [fixed]", "receive_hashing": "off [fixed]", "rx_checksumming": "off [fixed]", "rx_vlan_filter": "on [fixed]", "rx_vlan_offload": "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_checksum_unneeded": "off [fixed]", "tx_checksumming": "off", "tx_fcoe_segmentation": "off [fixed]", "tx_gre_segmentation": "off [fixed]", "tx_gso_robust": "off [fixed]", "tx_lockless": "off [fixed]", "tx_scatter_gather": "off [fixed]", "tx_scatter_gather_fraglist": "off [fixed]", "tx_tcp6_segmentation": "off [fixed]", "tx_tcp_ecn_segmentation": "off [fixed]", "tx_tcp_segmentation": "off [fixed]", "tx_udp_tnl_segmentation": "off [fixed]", "tx_vlan_offload": "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": "2.6.32-696.28.1.el6.x86_64", "ansible_lo": {"active": true, "device": "lo", "features": {"fcoe_mtu": "off [fixed]", "generic_receive_offload": "on", "generic_segmentation_offload": "on", "highdma": "on [fixed]", "large_receive_offload": "off [fixed]", "loopback": "on [fixed]", "netns_local": "on [fixed]", "ntuple_filters": "off [fixed]", "receive_hashing": "off [fixed]", "rx_checksumming": "on [fixed]", "rx_vlan_filter": "off [fixed]", "rx_vlan_offload": "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": "off [fixed]", "tx_checksum_unneeded": "off [fixed]", "tx_checksumming": "on", "tx_fcoe_segmentation": "off [fixed]", "tx_gre_segmentation": "off [fixed]", "tx_gso_robust": "off [fixed]", "tx_lockless": "on [fixed]", "tx_scatter_gather": "on [fixed]", "tx_scatter_gather_fraglist": "on [fixed]", "tx_tcp6_segmentation": "on", "tx_tcp_ecn_segmentation": "on", "tx_tcp_segmentation": "on", "tx_udp_tnl_segmentation": "off [fixed]", "tx_vlan_offload": "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_memfree_mb": 834, "ansible_memory_mb": {"nocache": {"free": 892, "used": 103}, "real": {"free": 834, "total": 995, "used": 161}, "swap": {"cached": 0, "free": 0, "total": 0, "used": 0}}, "ansible_memtotal_mb": 995, "ansible_mounts": [{"block_available": 1735638, "block_size": 4096, "block_total": 2031214, "block_used": 295576, "device": "/dev/vda1", "fstype": "ext4", "inode_available": 505578, "inode_total": 524288, "inode_used": 18710, "mount": "/", "options": "rw", "size_available": 7109173248, "size_total": 8319852544, "uuid": "40def5f8-2cbc-4acb-a638-a4af5f30b99b"}], "ansible_nodename": "ibm-p8-kvm-03-guest-02.virt.pnr.lab.eng.rdu2.redhat.com", "ansible_os_family": "RedHat", "ansible_pkg_mgr": "yum", "ansible_proc_cmdline": {"KEYBOARDTYPE": "pc", "KEYTABLE": "us", "LANG": "en_US.UTF-8", "SYSFONT": "latarcyrheb-sun16", "console": "ttyS0,115200", "rd_NO_DM": true, "rd_NO_LUKS": true, "rd_NO_LVM": true, "rd_NO_MD": true, "ro": true, "root": "UUID=40def5f8-2cbc-4acb-a638-a4af5f30b99b"}, "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": false, "type": "CPython", "version": {"major": 2, "micro": 6, "minor": 6, "releaselevel": "final", "serial": 0}, "version_info": [2, 6, 6, "final", 0]}, "ansible_python_version": "2.6.6", "ansible_real_group_id": 0, "ansible_real_user_id": 0, "ansible_selinux": {"config_mode": "enforcing", "mode": "enforcing", "policyvers": 24, "status": "enabled", "type": "targeted"}, "ansible_selinux_python_present": true, "ansible_service_mgr": "upstart", "ansible_ssh_host_key_dsa_public": "AAAAB3NzaC1kc3MAAACBANBcXgrx7+pERbE4v+IAPR+MC3xcCwC3324f84YAFGob+MZ/xLwmZOuzX7VMe2nIBHkVEqlrDj43Ye9+4Sso+N9WPvnD2fKg0IHHdZ9bRML5kMDeKklqXrwM7+rfVXmRRsJ0JXdlg7wz1BM/JLLg4Ddbp/4CXV3hCi0LcsJFRKVpAAAAFQDvO7nNcrJ53p+064pNFx0Ix38mtQAAAIEAkTTAmprmuUpftqs5VKV6Kagk/dMUPiCkgzn/7PeBY9eSPHiP6L3RcTKAaDgc7mRpB0cPlskJL0mT0lubyHxrz/kJQTmCIMzNIYCG9KQu6EICrZjiTmSLFyauaBI9HCyVnirpa0SGQtegJR4BaNOR1Vb9Vl9fxItcg+ztKX5Yfs4AAACAQMIelLA7ZFYuizD2dp/YXM3OnFpHlbRfq0iYpMv+x3NYvq4h+iwnUUx8v2TRxZ2IQw/9FZEHr/5KgrWIKpFSzmq6fFIhIH0Gk65uCaeqrQrAO+8mZWEucQMg0+lvjxsZFVpSIEPumL2HhagzAyC+7V4foO3RQlbt4OiJKulX4cw=", "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAABIwAAAQEAsZ1Coq4t1xGKHQBdavbnFVm5WUe2HEuyYDTQRKMhQN8FrObZfPPp9ULt1ayCa4FOoC7Kpjzbu+bIAZcL9okUsFX2vc9SFtrL2zWUvAKQBAC6Co9O39egnbe5Nucx4M9suBOqsTKplHnBTjrdcWKQUv+oggDbvxEGy0sRLSH9sxoBhxqxk9zo687LMzGhiB8D6UwvIjH1if+6rLwxU4tDHAWKHi2KkTAf/3AhAPudb85wcRawSOEBhObCOE9LkLKd3hdCBpMlXJWAoJuUuhdKHJRueKLDG+qhhgIs+P01LvEaG17KY4f7cNLZq1obFwTuNEFWK155dt9ZNPTLS8CKKw==", "ansible_swapfree_mb": 0, "ansible_swaptotal_mb": 0, "ansible_system": "Linux", "ansible_system_capabilities": [], "ansible_system_capabilities_enforced": "False", "ansible_system_vendor": "QEMU", "ansible_uptime_seconds": 56, "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/tmp5m8_plt9/tests/tests_all_purge.yml:12 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Add a Linux System Roles SELinux User] *************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tests/tests_all_purge.yml:19 changed: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": true, "comment": "Linux System Roles SELinux User", "create_home": true, "group": 501, "home": "/home/sar-user", "name": "sar-user", "shell": "/bin/bash", "state": "present", "system": false, "uid": 501} TASK [Add some mapping] ************************************************************************************************************************************************************************************ task path: /tmp/tmp5m8_plt9/tests/tests_all_purge.yml:24 changed: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.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:01:16.414071", "end": "2019-05-26 08:11:03.625543", "rc": 0, "start": "2019-05-26 08:09:47.211472", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Apply role with defaults, should not drop local modifications] *************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tests/tests_all_purge.yml:27 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmp5m8_plt9/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.0.94-7.el6.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.0.83-30.1.el6_8.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmp5m8_plt9/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:31 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/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-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmp5m8_plt9/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmp5m8_plt9/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmp5m8_plt9/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmp5m8_plt9/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:06.185713", "end": "2019-05-26 08:11:28.681869", "rc": 0, "start": "2019-05-26 08:11:22.496156", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmp5m8_plt9/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmp5m8_plt9/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:118 TASK [Get local modifications - boolean] ******************************************************************************************************************************************************************* task path: /tmp/tmp5m8_plt9/tests/set_selinux_variables.yml:2 changed: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": true, "cmd": ["/usr/sbin/semanage", "boolean", "-l", "-n", "-C"], "delta": "0:00:08.392228", "end": "2019-05-26 08:11:38.794748", "rc": 0, "start": "2019-05-26 08:11:30.402520", "stderr": "", "stderr_lines": [], "stdout": "samba_enable_home_dirs (on , on) Allow samba to share users home directories.", "stdout_lines": ["samba_enable_home_dirs (on , on) Allow samba to share users home directories."]} TASK [Get local modifications - port] ********************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tests/set_selinux_variables.yml:5 changed: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": true, "cmd": ["/usr/sbin/semanage", "port", "-l", "-n", "-C"], "delta": "0:00:08.000436", "end": "2019-05-26 08:11:47.907058", "rc": 0, "start": "2019-05-26 08:11:39.906622", "stderr": "", "stderr_lines": [], "stdout": "ssh_port_t tcp 22100", "stdout_lines": ["ssh_port_t tcp 22100"]} TASK [Get local modifications - login] ********************************************************************************************************************************************************************* task path: /tmp/tmp5m8_plt9/tests/set_selinux_variables.yml:8 changed: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": true, "cmd": ["/usr/sbin/semanage", "login", "-l", "-n", "-C"], "delta": "0:00:07.367665", "end": "2019-05-26 08:11:56.420268", "rc": 0, "start": "2019-05-26 08:11:49.052603", "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/tmp5m8_plt9/tests/set_selinux_variables.yml:11 changed: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": true, "cmd": ["/usr/sbin/semanage", "fcontext", "-l", "-n", "-C"], "delta": "0:00:07.319755", "end": "2019-05-26 08:12:04.752154", "rc": 0, "start": "2019-05-26 08:11:57.432399", "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/tmp5m8_plt9/tests/tests_all_purge.yml:32 ok: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => { "changed": false, "msg": "All assertions passed" } TASK [Check if local modifications are not empty - port] *************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tests/tests_all_purge.yml:35 ok: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => { "changed": false, "msg": "All assertions passed" } TASK [Check if local modifications are not empty - login] ************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tests/tests_all_purge.yml:38 ok: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => { "changed": false, "msg": "All assertions passed" } TASK [Check if local modifications are not empty - fcontext] *********************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tests/tests_all_purge.yml:41 ok: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => { "changed": false, "msg": "All assertions passed" } TASK [Apply the role to drop local modifications] ********************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tests/tests_all_purge.yml:45 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmp5m8_plt9/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.0.94-7.el6.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.0.83-30.1.el6_8.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmp5m8_plt9/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:31 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/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-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmp5m8_plt9/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:60 changed: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.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:01:10.933916", "end": "2019-05-26 08:13:22.208263", "rc": 0, "start": "2019-05-26 08:12:11.274347", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmp5m8_plt9/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmp5m8_plt9/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmp5m8_plt9/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:06.093038", "end": "2019-05-26 08:13:29.881991", "rc": 0, "start": "2019-05-26 08:13:23.788953", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmp5m8_plt9/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmp5m8_plt9/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:118 TASK [Get local modifications - boolean] ******************************************************************************************************************************************************************* task path: /tmp/tmp5m8_plt9/tests/set_selinux_variables.yml:2 changed: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": true, "cmd": ["/usr/sbin/semanage", "boolean", "-l", "-n", "-C"], "delta": "0:00:08.717240", "end": "2019-05-26 08:13:40.404887", "rc": 0, "start": "2019-05-26 08:13:31.687647", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - port] ********************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tests/set_selinux_variables.yml:5 changed: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": true, "cmd": ["/usr/sbin/semanage", "port", "-l", "-n", "-C"], "delta": "0:00:07.638496", "end": "2019-05-26 08:13:49.145989", "rc": 0, "start": "2019-05-26 08:13:41.507493", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - login] ********************************************************************************************************************************************************************* task path: /tmp/tmp5m8_plt9/tests/set_selinux_variables.yml:8 changed: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": true, "cmd": ["/usr/sbin/semanage", "login", "-l", "-n", "-C"], "delta": "0:00:07.949061", "end": "2019-05-26 08:13:58.139736", "rc": 0, "start": "2019-05-26 08:13:50.190675", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - fcontext] ****************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tests/set_selinux_variables.yml:11 changed: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": true, "cmd": ["/usr/sbin/semanage", "fcontext", "-l", "-n", "-C"], "delta": "0:00:07.477603", "end": "2019-05-26 08:14:06.688488", "rc": 0, "start": "2019-05-26 08:13:59.210885", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Check if local modifications are empty - booleans] *************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tests/tests_all_purge.yml:52 ok: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => { "changed": false, "msg": "All assertions passed" } TASK [Check if local modifications are empty - port] ******************************************************************************************************************************************************* task path: /tmp/tmp5m8_plt9/tests/tests_all_purge.yml:55 ok: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => { "changed": false, "msg": "All assertions passed" } TASK [Check if local modifications are empty - login] ****************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tests/tests_all_purge.yml:58 ok: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => { "changed": false, "msg": "All assertions passed" } TASK [Check if local modifications are empty - fcontext] *************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tests/tests_all_purge.yml:61 ok: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => { "changed": false, "msg": "All assertions passed" } TASK [Remove Linux System Roles SELinux User] ************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tests/tests_all_purge.yml:65 changed: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.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-6-x86_64-GenericCloud-1804_02.qcow2c : ok=30 changed=14 unreachable=0 failed=0 skipped=35 rescued=0 ignored=0 + cd /tmp/tmp5m8_plt9/tests; TEST_SUBJECTS=/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_selinux-35-af5a0a6-centos-6-d2oz2eaq/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmp5m8_plt9/_setup.yml /tmp/tmp5m8_plt9/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/tmp5m8_plt9/_setup.yml PLAY [Fail when only localhost is available] *************************************************************************************************************************************************************** META: ran handlers TASK [debug] *********************************************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/_setup.yml:5 ok: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => { "groups": { "all": [ "/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c" ], "localhost": [ "/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c" ], "subjects": [ "/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c" ], "ungrouped": [] } } TASK [fail] ************************************************************************************************************************************************************************************************ task path: /tmp/tmp5m8_plt9/_setup.yml:7 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.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-6-x86_64-GenericCloud-1804_02.qcow2c : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_all_transitions.yml ************************************************************************************************************************************************************************ 1 plays in /tmp/tmp5m8_plt9/tests/tests_all_transitions.yml PLAY [Test all the possible selinux_state transitions] ***************************************************************************************************************************************************** TASK [Gathering Facts] ************************************************************************************************************************************************************************************* task path: /tmp/tmp5m8_plt9/tests/tests_all_transitions.yml:1 ok: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.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": {"KEYBOARDTYPE": "pc", "KEYTABLE": "us", "LANG": "en_US.UTF-8", "SYSFONT": "latarcyrheb-sun16", "console": "ttyS0,115200", "rd_NO_DM": true, "rd_NO_LUKS": true, "rd_NO_LVM": true, "rd_NO_MD": true, "ro": true, "root": "UUID=40def5f8-2cbc-4acb-a638-a4af5f30b99b"}, "ansible_date_time": {"date": "2019-05-26", "day": "26", "epoch": "1558858510", "hour": "08", "iso8601": "2019-05-26T08:15:10Z", "iso8601_basic": "20190526T081510447123", "iso8601_basic_short": "20190526T081510", "iso8601_micro": "2019-05-26T08:15:10.447281Z", "minute": "15", "month": "05", "second": "10", "time": "08:15: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": {"vda1": ["40def5f8-2cbc-4acb-a638-a4af5f30b99b"]}}, "ansible_devices": {"loop0": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "", "sectors": "0", "sectorsize": "512", "size": "0.00 Bytes", "support_discard": "0", "vendor": null, "virtual": 1}, "loop1": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "", "sectors": "0", "sectorsize": "512", "size": "0.00 Bytes", "support_discard": "0", "vendor": null, "virtual": 1}, "loop2": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "", "sectors": "0", "sectorsize": "512", "size": "0.00 Bytes", "support_discard": "0", "vendor": null, "virtual": 1}, "loop3": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "", "sectors": "0", "sectorsize": "512", "size": "0.00 Bytes", "support_discard": "0", "vendor": null, "virtual": 1}, "loop4": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "", "sectors": "0", "sectorsize": "512", "size": "0.00 Bytes", "support_discard": "0", "vendor": null, "virtual": 1}, "loop5": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "", "sectors": "0", "sectorsize": "512", "size": "0.00 Bytes", "support_discard": "0", "vendor": null, "virtual": 1}, "loop6": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "", "sectors": "0", "sectorsize": "512", "size": "0.00 Bytes", "support_discard": "0", "vendor": null, "virtual": 1}, "loop7": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "", "sectors": "0", "sectorsize": "512", "size": "0.00 Bytes", "support_discard": "0", "vendor": null, "virtual": 1}, "ram0": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "", "sectors": "32768", "sectorsize": "512", "size": "16.00 MB", "support_discard": "0", "vendor": null, "virtual": 1}, "ram1": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "", "sectors": "32768", "sectorsize": "512", "size": "16.00 MB", "support_discard": "0", "vendor": null, "virtual": 1}, "ram10": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "", "sectors": "32768", "sectorsize": "512", "size": "16.00 MB", "support_discard": "0", "vendor": null, "virtual": 1}, "ram11": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "", "sectors": "32768", "sectorsize": "512", "size": "16.00 MB", "support_discard": "0", "vendor": null, "virtual": 1}, "ram12": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "", "sectors": "32768", "sectorsize": "512", "size": "16.00 MB", "support_discard": "0", "vendor": null, "virtual": 1}, "ram13": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "", "sectors": "32768", "sectorsize": "512", "size": "16.00 MB", "support_discard": "0", "vendor": null, "virtual": 1}, "ram14": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "", "sectors": "32768", "sectorsize": "512", "size": "16.00 MB", "support_discard": "0", "vendor": null, "virtual": 1}, "ram15": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "", "sectors": "32768", "sectorsize": "512", "size": "16.00 MB", "support_discard": "0", "vendor": null, "virtual": 1}, "ram2": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "", "sectors": "32768", "sectorsize": "512", "size": "16.00 MB", "support_discard": "0", "vendor": null, "virtual": 1}, "ram3": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "", "sectors": "32768", "sectorsize": "512", "size": "16.00 MB", "support_discard": "0", "vendor": null, "virtual": 1}, "ram4": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "", "sectors": "32768", "sectorsize": "512", "size": "16.00 MB", "support_discard": "0", "vendor": null, "virtual": 1}, "ram5": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "", "sectors": "32768", "sectorsize": "512", "size": "16.00 MB", "support_discard": "0", "vendor": null, "virtual": 1}, "ram6": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "", "sectors": "32768", "sectorsize": "512", "size": "16.00 MB", "support_discard": "0", "vendor": null, "virtual": 1}, "ram7": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "", "sectors": "32768", "sectorsize": "512", "size": "16.00 MB", "support_discard": "0", "vendor": null, "virtual": 1}, "ram8": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "", "sectors": "32768", "sectorsize": "512", "size": "16.00 MB", "support_discard": "0", "vendor": null, "virtual": 1}, "ram9": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "", "sectors": "32768", "sectorsize": "512", "size": "16.00 MB", "support_discard": "0", "vendor": null, "virtual": 1}, "sr0": {"holders": [], "host": "IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]", "links": {"ids": ["ata-QEMU_DVD-ROM_QM00003"], "labels": ["cidata"], "masters": [], "uuids": []}, "model": "QEMU DVD-ROM", "partitions": {}, "removable": "1", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "cfq", "sectors": "728", "sectorsize": "2048", "size": "364.00 KB", "support_discard": "0", "vendor": "QEMU", "virtual": 1}, "vda": {"holders": [], "host": "SCSI storage controller: Red Hat, Inc Virtio block device", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {"vda1": {"holders": [], "links": {"ids": [], "labels": [], "masters": [], "uuids": ["40def5f8-2cbc-4acb-a638-a4af5f30b99b"]}, "sectors": "16775168", "sectorsize": 512, "size": "8.00 GB", "start": "2048", "uuid": "40def5f8-2cbc-4acb-a638-a4af5f30b99b"}}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "cfq", "sectors": "16777216", "sectorsize": "512", "size": "8.00 GB", "support_discard": "0", "vendor": "6900", "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": "6", "ansible_distribution_release": "Final", "ansible_distribution_version": "6.9", "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": {"G_BROKEN_FILENAMES": "1", "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:*.arj=38;5;9:*.taz=38;5;9:*.lzh=38;5;9:*.lzma=38;5;9:*.tlz=38;5;9:*.txz=38;5;9:*.zip=38;5;9:*.z=38;5;9:*.Z=38;5;9:*.dz=38;5;9:*.gz=38;5;9:*.lz=38;5;9:*.xz=38;5;9:*.bz2=38;5;9:*.tbz=38;5;9:*.tbz2=38;5;9:*.bz=38;5;9:*.tz=38;5;9:*.deb=38;5;9:*.rpm=38;5;9:*.jar=38;5;9:*.rar=38;5;9:*.ace=38;5;9:*.zoo=38;5;9:*.cpio=38;5;9:*.7z=38;5;9:*.rz=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:*.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:/sbin:/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 55928 22", "SSH_CONNECTION": "10.0.2.2 55928 10.0.2.15 22", "SSH_TTY": "/dev/pts/0", "TERM": "xterm-256color", "USER": "root", "_": "/usr/bin/python2"}, "ansible_eth0": {"active": true, "device": "eth0", "features": {"fcoe_mtu": "off [fixed]", "generic_receive_offload": "on", "generic_segmentation_offload": "off [requested on]", "highdma": "on [fixed]", "large_receive_offload": "off [fixed]", "loopback": "off [fixed]", "netns_local": "off [fixed]", "ntuple_filters": "off [fixed]", "receive_hashing": "off [fixed]", "rx_checksumming": "off [fixed]", "rx_vlan_filter": "on [fixed]", "rx_vlan_offload": "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_checksum_unneeded": "off [fixed]", "tx_checksumming": "off", "tx_fcoe_segmentation": "off [fixed]", "tx_gre_segmentation": "off [fixed]", "tx_gso_robust": "off [fixed]", "tx_lockless": "off [fixed]", "tx_scatter_gather": "off [fixed]", "tx_scatter_gather_fraglist": "off [fixed]", "tx_tcp6_segmentation": "off [fixed]", "tx_tcp_ecn_segmentation": "off [fixed]", "tx_tcp_segmentation": "off [fixed]", "tx_udp_tnl_segmentation": "off [fixed]", "tx_vlan_offload": "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": "2.6.32-696.28.1.el6.x86_64", "ansible_lo": {"active": true, "device": "lo", "features": {"fcoe_mtu": "off [fixed]", "generic_receive_offload": "on", "generic_segmentation_offload": "on", "highdma": "on [fixed]", "large_receive_offload": "off [fixed]", "loopback": "on [fixed]", "netns_local": "on [fixed]", "ntuple_filters": "off [fixed]", "receive_hashing": "off [fixed]", "rx_checksumming": "on [fixed]", "rx_vlan_filter": "off [fixed]", "rx_vlan_offload": "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": "off [fixed]", "tx_checksum_unneeded": "off [fixed]", "tx_checksumming": "on", "tx_fcoe_segmentation": "off [fixed]", "tx_gre_segmentation": "off [fixed]", "tx_gso_robust": "off [fixed]", "tx_lockless": "on [fixed]", "tx_scatter_gather": "on [fixed]", "tx_scatter_gather_fraglist": "on [fixed]", "tx_tcp6_segmentation": "on", "tx_tcp_ecn_segmentation": "on", "tx_tcp_segmentation": "on", "tx_udp_tnl_segmentation": "off [fixed]", "tx_vlan_offload": "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_memfree_mb": 834, "ansible_memory_mb": {"nocache": {"free": 892, "used": 103}, "real": {"free": 834, "total": 995, "used": 161}, "swap": {"cached": 0, "free": 0, "total": 0, "used": 0}}, "ansible_memtotal_mb": 995, "ansible_mounts": [{"block_available": 1735638, "block_size": 4096, "block_total": 2031214, "block_used": 295576, "device": "/dev/vda1", "fstype": "ext4", "inode_available": 505578, "inode_total": 524288, "inode_used": 18710, "mount": "/", "options": "rw", "size_available": 7109173248, "size_total": 8319852544, "uuid": "40def5f8-2cbc-4acb-a638-a4af5f30b99b"}], "ansible_nodename": "ibm-p8-kvm-03-guest-02.virt.pnr.lab.eng.rdu2.redhat.com", "ansible_os_family": "RedHat", "ansible_pkg_mgr": "yum", "ansible_proc_cmdline": {"KEYBOARDTYPE": "pc", "KEYTABLE": "us", "LANG": "en_US.UTF-8", "SYSFONT": "latarcyrheb-sun16", "console": "ttyS0,115200", "rd_NO_DM": true, "rd_NO_LUKS": true, "rd_NO_LVM": true, "rd_NO_MD": true, "ro": true, "root": "UUID=40def5f8-2cbc-4acb-a638-a4af5f30b99b"}, "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": false, "type": "CPython", "version": {"major": 2, "micro": 6, "minor": 6, "releaselevel": "final", "serial": 0}, "version_info": [2, 6, 6, "final", 0]}, "ansible_python_version": "2.6.6", "ansible_real_group_id": 0, "ansible_real_user_id": 0, "ansible_selinux": {"config_mode": "enforcing", "mode": "enforcing", "policyvers": 24, "status": "enabled", "type": "targeted"}, "ansible_selinux_python_present": true, "ansible_service_mgr": "upstart", "ansible_ssh_host_key_dsa_public": "AAAAB3NzaC1kc3MAAACBALTIlHu/Uue/DzoI/K3kgG5mHLVZB4+oT5Fp7AEYPPp2/X6L2iXZSO30tQWYpLgaDx3/zhsdNtxozwoOJ30jve22X4RrlgDw4YNEkuZm8NJtc6eLwbRjEyLa/0XH5op7Ac2MyD0S7++GTDUpuJgkJWulVslIqzO/CJa2hxkOj8TxAAAAFQDf8ZQaWKcJT5z8g3LkAUHgODbVEwAAAIBrhF1Wlt3BFwaBNpUpUGauGrGH2IWuI+kuEdM8eA+cba9lQxoIm54yx/dLrRwPdWPHWGJzgTP1uHuNQd67gCBfnfQcwZUryexUvOk/DZVhTd+nnI2QGBdKS8oBOJhDQbY76pIFoo3INk3pl1UCROgjH5ZF5/POXvtQVc+iQlgcegAAAIB8DZ0i/Ss5wrLydBaYFXWnSLz79WqPzVpq3OzWmiKxy6NvWSziBsO5j+8FLYrDdC3wIAPpBhuQR4Sn+Dmb+xRq5HE9IXkCHhqtfXOZ4cGBeW66WgfEBuX4s8A0rucAyciYrcUqtKq7PSY0FjzXBsm9m4CNMVKHCZhICKLfrGeKjA==", "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAABIwAAAQEAwYaGmZWvLUhqaeSS3vdoE677uBbT0Y0tWC33rFVAutFKaTxpnJyjQLZMYaSJiMpvc/mN5WNY6xx4czguIAtItOefjVCLB/JMfjBWC7rUgxTlPBTVjvxYVy4hmQKzsdqU+16dYSSBrowpoRUVaGmKAeWjdp4Fut3C7i9Z/HHVCPRkPTGEL0ncOnY2xyLnGfgrJAe9q0CC6y7RNvmU7PGKzMXzC7cIOeLdyvAWViaFyXtk34o5WdGOXNcee6345TjWyTIFhmEP528myUXJG10Fee+yRk6xfvAo+aqMbmSBFZ0X7/ujTxCzklIANFnY0bHUmVgUCR4OOrlbvLIe4nAqTQ==", "ansible_swapfree_mb": 0, "ansible_swaptotal_mb": 0, "ansible_system": "Linux", "ansible_system_capabilities": [], "ansible_system_capabilities_enforced": "False", "ansible_system_vendor": "QEMU", "ansible_uptime_seconds": 55, "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/tmp5m8_plt9/tests/tests_all_transitions.yml:11 included: /tmp/tmp5m8_plt9/tests/selinux_config_save.yml for /home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c TASK [Backup original /etc/selinux/config] ***************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tests/selinux_config_save.yml:1 changed: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": true, "checksum": "cab88436a995588a974c0bd5edd544fd419eab43", "dest": "/etc/selinux/config.test_selinux_save", "gid": 0, "group": "root", "md5sum": "91081ef6d958e79795d0255d7c374a56", "mode": "0644", "owner": "root", "secontext": "system_u:object_r:selinux_config_t:s0", "size": 458, "src": "/etc/selinux/config", "state": "file", "uid": 0} TASK [test all the possible state transitions] ************************************************************************************************************************************************************* task path: /tmp/tmp5m8_plt9/tests/tests_all_transitions.yml:14 included: /tmp/tmp5m8_plt9/tests/selinux_test_transitions.yml for /home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c included: /tmp/tmp5m8_plt9/tests/selinux_test_transitions.yml for /home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c included: /tmp/tmp5m8_plt9/tests/selinux_test_transitions.yml for /home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c included: /tmp/tmp5m8_plt9/tests/selinux_test_transitions.yml for /home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c included: /tmp/tmp5m8_plt9/tests/selinux_test_transitions.yml for /home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c included: /tmp/tmp5m8_plt9/tests/selinux_test_transitions.yml for /home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c included: /tmp/tmp5m8_plt9/tests/selinux_test_transitions.yml for /home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c included: /tmp/tmp5m8_plt9/tests/selinux_test_transitions.yml for /home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c included: /tmp/tmp5m8_plt9/tests/selinux_test_transitions.yml for /home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c TASK [display transition name] ***************************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tests/selinux_test_transitions.yml:1 ok: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => { "msg": "testing transition permissive -> permissive" } TASK [setup the initial state] ***************************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tests/selinux_test_transitions.yml:5 included: /tmp/tmp5m8_plt9/tests/selinux_apply_reboot.yml for /home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c TASK [include_role : selinux] ****************************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tests/selinux_apply_reboot.yml:3 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmp5m8_plt9/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.0.94-7.el6.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.0.83-30.1.el6_8.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmp5m8_plt9/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:31 changed: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.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/tmp5m8_plt9/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/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-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmp5m8_plt9/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmp5m8_plt9/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmp5m8_plt9/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmp5m8_plt9/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:07.090001", "end": "2019-05-26 08:15:42.064558", "rc": 0, "start": "2019-05-26 08:15:34.974557", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmp5m8_plt9/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmp5m8_plt9/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:118 TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tests/selinux_test_transitions.yml:10 ok: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] TASK [check that initial state has been set up properly] *************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tests/selinux_test_transitions.yml:14 ok: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => { "changed": false, "msg": "All assertions passed" } TASK [save the initial state] ****************************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tests/selinux_test_transitions.yml:18 ok: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"ansible_facts": {"initial_selinux_fact": {"config_mode": "permissive", "mode": "permissive", "policyvers": 24, "status": "enabled", "type": "targeted"}}, "changed": false} TASK [apply the role without parameters] ******************************************************************************************************************************************************************* task path: /tmp/tmp5m8_plt9/tests/selinux_test_transitions.yml:22 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmp5m8_plt9/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.0.94-7.el6.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.0.83-30.1.el6_8.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmp5m8_plt9/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:31 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/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-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmp5m8_plt9/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmp5m8_plt9/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmp5m8_plt9/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmp5m8_plt9/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:06.328376", "end": "2019-05-26 08:15:57.495410", "rc": 0, "start": "2019-05-26 08:15:51.167034", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmp5m8_plt9/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmp5m8_plt9/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:118 TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tests/selinux_test_transitions.yml:26 ok: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] TASK [check that the run w/o parameters has not changed anything] ****************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tests/selinux_test_transitions.yml:30 ok: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => { "changed": false, "msg": "All assertions passed" } TASK [apply the desired state if possible without reboot] ************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tests/selinux_test_transitions.yml:34 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmp5m8_plt9/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.0.94-7.el6.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.0.83-30.1.el6_8.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmp5m8_plt9/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:31 ok: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.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/tmp5m8_plt9/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/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-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmp5m8_plt9/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmp5m8_plt9/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmp5m8_plt9/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmp5m8_plt9/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:05.604187", "end": "2019-05-26 08:16:14.041817", "rc": 0, "start": "2019-05-26 08:16:08.437630", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmp5m8_plt9/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmp5m8_plt9/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:118 TASK [apply the desired state if necessary with reboot] **************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tests/selinux_test_transitions.yml:44 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tests/selinux_test_transitions.yml:52 ok: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] TASK [check that something changed if it should have] ****************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tests/selinux_test_transitions.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check that nothing changed if it should not have] **************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tests/selinux_test_transitions.yml:61 ok: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => { "changed": false, "msg": "All assertions passed" } TASK [check that desired state has been applied properly] ************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tests/selinux_test_transitions.yml:66 ok: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => { "changed": false, "msg": "All assertions passed" } TASK [check that desired state has been saved properly] **************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tests/selinux_test_transitions.yml:70 ok: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => { "changed": false, "msg": "All assertions passed" } TASK [display transition name] ***************************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tests/selinux_test_transitions.yml:1 ok: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => { "msg": "testing transition permissive -> enforcing" } TASK [setup the initial state] ***************************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tests/selinux_test_transitions.yml:5 included: /tmp/tmp5m8_plt9/tests/selinux_apply_reboot.yml for /home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c TASK [include_role : selinux] ****************************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tests/selinux_apply_reboot.yml:3 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmp5m8_plt9/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.0.94-7.el6.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.0.83-30.1.el6_8.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmp5m8_plt9/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:31 ok: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.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/tmp5m8_plt9/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/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-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmp5m8_plt9/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmp5m8_plt9/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmp5m8_plt9/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmp5m8_plt9/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:06.014324", "end": "2019-05-26 08:16:30.697013", "rc": 0, "start": "2019-05-26 08:16:24.682689", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmp5m8_plt9/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmp5m8_plt9/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:118 TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tests/selinux_test_transitions.yml:10 ok: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] TASK [check that initial state has been set up properly] *************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tests/selinux_test_transitions.yml:14 ok: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => { "changed": false, "msg": "All assertions passed" } TASK [save the initial state] ****************************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tests/selinux_test_transitions.yml:18 ok: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"ansible_facts": {"initial_selinux_fact": {"config_mode": "permissive", "mode": "permissive", "policyvers": 24, "status": "enabled", "type": "targeted"}}, "changed": false} TASK [apply the role without parameters] ******************************************************************************************************************************************************************* task path: /tmp/tmp5m8_plt9/tests/selinux_test_transitions.yml:22 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmp5m8_plt9/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.0.94-7.el6.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.0.83-30.1.el6_8.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmp5m8_plt9/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:31 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/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-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmp5m8_plt9/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmp5m8_plt9/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmp5m8_plt9/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmp5m8_plt9/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:05.337076", "end": "2019-05-26 08:16:45.975524", "rc": 0, "start": "2019-05-26 08:16:40.638448", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmp5m8_plt9/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmp5m8_plt9/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:118 TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tests/selinux_test_transitions.yml:26 ok: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] TASK [check that the run w/o parameters has not changed anything] ****************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tests/selinux_test_transitions.yml:30 ok: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => { "changed": false, "msg": "All assertions passed" } TASK [apply the desired state if possible without reboot] ************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tests/selinux_test_transitions.yml:34 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmp5m8_plt9/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.0.94-7.el6.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.0.83-30.1.el6_8.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmp5m8_plt9/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:31 changed: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.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/tmp5m8_plt9/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/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-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmp5m8_plt9/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmp5m8_plt9/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmp5m8_plt9/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmp5m8_plt9/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:06.030390", "end": "2019-05-26 08:17:02.661607", "rc": 0, "start": "2019-05-26 08:16:56.631217", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmp5m8_plt9/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmp5m8_plt9/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:118 TASK [apply the desired state if necessary with reboot] **************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tests/selinux_test_transitions.yml:44 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tests/selinux_test_transitions.yml:52 ok: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] TASK [check that something changed if it should have] ****************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tests/selinux_test_transitions.yml:56 ok: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => { "changed": false, "msg": "All assertions passed" } TASK [check that nothing changed if it should not have] **************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tests/selinux_test_transitions.yml:61 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check that desired state has been applied properly] ************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tests/selinux_test_transitions.yml:66 ok: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => { "changed": false, "msg": "All assertions passed" } TASK [check that desired state has been saved properly] **************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tests/selinux_test_transitions.yml:70 ok: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => { "changed": false, "msg": "All assertions passed" } TASK [display transition name] ***************************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tests/selinux_test_transitions.yml:1 ok: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => { "msg": "testing transition permissive -> disabled" } TASK [setup the initial state] ***************************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tests/selinux_test_transitions.yml:5 included: /tmp/tmp5m8_plt9/tests/selinux_apply_reboot.yml for /home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c TASK [include_role : selinux] ****************************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tests/selinux_apply_reboot.yml:3 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmp5m8_plt9/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.0.94-7.el6.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.0.83-30.1.el6_8.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmp5m8_plt9/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:31 changed: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.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/tmp5m8_plt9/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/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-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmp5m8_plt9/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmp5m8_plt9/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmp5m8_plt9/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmp5m8_plt9/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:05.680865", "end": "2019-05-26 08:17:19.226548", "rc": 0, "start": "2019-05-26 08:17:13.545683", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmp5m8_plt9/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmp5m8_plt9/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:118 TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tests/selinux_test_transitions.yml:10 ok: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] TASK [check that initial state has been set up properly] *************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tests/selinux_test_transitions.yml:14 ok: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => { "changed": false, "msg": "All assertions passed" } TASK [save the initial state] ****************************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tests/selinux_test_transitions.yml:18 ok: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"ansible_facts": {"initial_selinux_fact": {"config_mode": "permissive", "mode": "permissive", "policyvers": 24, "status": "enabled", "type": "targeted"}}, "changed": false} TASK [apply the role without parameters] ******************************************************************************************************************************************************************* task path: /tmp/tmp5m8_plt9/tests/selinux_test_transitions.yml:22 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmp5m8_plt9/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.0.94-7.el6.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.0.83-30.1.el6_8.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmp5m8_plt9/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:31 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/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-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmp5m8_plt9/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmp5m8_plt9/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmp5m8_plt9/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmp5m8_plt9/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:05.771671", "end": "2019-05-26 08:17:33.731042", "rc": 0, "start": "2019-05-26 08:17:27.959371", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmp5m8_plt9/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmp5m8_plt9/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:118 TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tests/selinux_test_transitions.yml:26 ok: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] TASK [check that the run w/o parameters has not changed anything] ****************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tests/selinux_test_transitions.yml:30 ok: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => { "changed": false, "msg": "All assertions passed" } TASK [apply the desired state if possible without reboot] ************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tests/selinux_test_transitions.yml:34 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [apply the desired state if necessary with reboot] **************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tests/selinux_test_transitions.yml:44 included: /tmp/tmp5m8_plt9/tests/selinux_apply_reboot.yml for /home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c TASK [include_role : selinux] ****************************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tests/selinux_apply_reboot.yml:3 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmp5m8_plt9/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.0.94-7.el6.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.0.83-30.1.el6_8.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmp5m8_plt9/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:31 [WARNING]: SELinux state change will take effect next reboot changed: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.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/tmp5m8_plt9/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"ansible_facts": {"selinux_reboot_required": true}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/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-6-x86_64-GenericCloud-1804_02.qcow2c]: FAILED! => {"changed": false, "msg": "Reboot is required to apply changes. Re-execute the role after boot."} TASK [handle errors] *************************************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tests/selinux_apply_reboot.yml:7 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [restart managed host] ******************************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tests/selinux_apply_reboot.yml:12 changed: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"ansible_job_id": "748910703058.3166", "changed": true, "finished": 0, "results_file": "/root/.ansible_async/748910703058.3166", "started": 1} TASK [wait for managed host to come back] ****************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tests/selinux_apply_reboot.yml:18 ok: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "elapsed": 45} TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tests/selinux_test_transitions.yml:52 ok: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] TASK [check that something changed if it should have] ****************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tests/selinux_test_transitions.yml:56 ok: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => { "changed": false, "msg": "All assertions passed" } TASK [check that nothing changed if it should not have] **************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tests/selinux_test_transitions.yml:61 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check that desired state has been applied properly] ************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tests/selinux_test_transitions.yml:66 ok: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => { "changed": false, "msg": "All assertions passed" } TASK [check that desired state has been saved properly] **************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tests/selinux_test_transitions.yml:70 ok: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => { "changed": false, "msg": "All assertions passed" } TASK [display transition name] ***************************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tests/selinux_test_transitions.yml:1 ok: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => { "msg": "testing transition enforcing -> permissive" } TASK [setup the initial state] ***************************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tests/selinux_test_transitions.yml:5 included: /tmp/tmp5m8_plt9/tests/selinux_apply_reboot.yml for /home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c TASK [include_role : selinux] ****************************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tests/selinux_apply_reboot.yml:3 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmp5m8_plt9/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.0.94-7.el6.x86_64 providing libselinux-python is already installed", "policycoreutils-python-2.0.83-30.1.el6_8.x86_64 providing policycoreutils-python is already installed"]} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmp5m8_plt9/tasks/main.yml:10 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:22 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:31 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tasks/main.yml:38 [WARNING]: Reboot is required to set SELinux state to 'enforcing' changed: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.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/tmp5m8_plt9/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"ansible_facts": {"selinux_reboot_required": true}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/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-6-x86_64-GenericCloud-1804_02.qcow2c]: FAILED! => {"changed": false, "msg": "Reboot is required to apply changes. Re-execute the role after boot."} TASK [handle errors] *************************************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tests/selinux_apply_reboot.yml:7 skipping: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [restart managed host] ******************************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tests/selinux_apply_reboot.yml:12 changed: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c] => {"ansible_job_id": "455991570340.1656", "changed": true, "finished": 0, "results_file": "/root/.ansible_async/455991570340.1656", "started": 1} TASK [wait for managed host to come back] ****************************************************************************************************************************************************************** task path: /tmp/tmp5m8_plt9/tests/selinux_apply_reboot.yml:18 fatal: [/home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c]: FAILED! => {"changed": false, "elapsed": 131, "msg": "timed out waiting for ping module test success: Failed to connect to the host via ssh: ssh: connect to host 127.0.0.3 port 4179: Connection timed out"} PLAY RECAP ************************************************************************************************************************************************************************************************* /home/till/lsr-test-harness-files/cache/CentOS-6-x86_64-GenericCloud-1804_02.qcow2c : ok=97 changed=16 unreachable=0 failed=1 skipped=146 rescued=2 ignored=0