+ cd /tmp/tmpje08yk_t/tests; TEST_SUBJECTS=/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_selinux-35-af5a0a6-fedora-30-y2m96f3q/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpje08yk_t/_setup.yml /tmp/tmpje08yk_t/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/tmpje08yk_t/_setup.yml PLAY [Fail when only localhost is available] *************************************************************************************************************************************************************** META: ran handlers TASK [debug] *********************************************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/_setup.yml:5 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "groups": { "all": [ "/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "localhost": [ "/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "subjects": [ "/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "ungrouped": [] } } TASK [fail] ************************************************************************************************************************************************************************************************ task path: /tmp/tmpje08yk_t/_setup.yml:7 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ************************************************************************************************************************************************************************************************* /home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 statically imported: /tmp/tmpje08yk_t/tests/set_selinux_variables.yml statically imported: /tmp/tmpje08yk_t/tests/set_selinux_variables.yml PLAYBOOK: tests_all_purge.yml ****************************************************************************************************************************************************************************** 1 plays in /tmp/tmpje08yk_t/tests/tests_all_purge.yml PLAY [Test that selinux_all_purge drops local modifications, defaults to no] ******************************************************************************************************************************* TASK [Gathering Facts] ************************************************************************************************************************************************************************************* task path: /tmp/tmpje08yk_t/tests/tests_all_purge.yml:1 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"ansible_all_ipv4_addresses": ["10.0.2.15"], "ansible_all_ipv6_addresses": ["fec0::5054:ff:fe12:3456", "fe80::5054:ff:fe12:3456"], "ansible_apparmor": {"status": "disabled"}, "ansible_architecture": "x86_64", "ansible_bios_date": "04/01/2014", "ansible_bios_version": "1.12.0-2.fc30", "ansible_cmdline": {"BOOT_IMAGE": "(hd0,msdos1)/boot/vmlinuz-5.0.9-301.fc30.x86_64", "console": "ttyS0,115200n8", "net.ifnames": "0", "no_timer_check": true, "ro": true, "root": "UUID=ea711a29-e460-4879-9d70-9da99ae021f9"}, "ansible_date_time": {"date": "2019-05-26", "day": "26", "epoch": "1558874329", "hour": "12", "iso8601": "2019-05-26T12:38:49Z", "iso8601_basic": "20190526T123849199929", "iso8601_basic_short": "20190526T123849", "iso8601_micro": "2019-05-26T12:38:49.200047Z", "minute": "38", "month": "05", "second": "49", "time": "12:38:49", "tz": "UTC", "tz_offset": "+0000", "weekday": "Sunday", "weekday_number": "0", "weeknumber": "20", "year": "2019"}, "ansible_default_ipv4": {"address": "10.0.2.15", "alias": "eth0", "broadcast": "10.0.2.255", "gateway": "10.0.2.2", "interface": "eth0", "macaddress": "52:54:00:12:34:56", "mtu": 1500, "netmask": "255.255.255.0", "network": "10.0.2.0", "type": "ether"}, "ansible_default_ipv6": {"address": "fec0::5054:ff:fe12:3456", "gateway": "fe80::2", "interface": "eth0", "macaddress": "52:54:00:12:34:56", "mtu": 1500, "prefix": "64", "scope": "site", "type": "ether"}, "ansible_device_links": {"ids": {"sr0": ["ata-QEMU_DVD-ROM_QM00003"]}, "labels": {"sr0": ["cidata"]}, "masters": {}, "uuids": {"sr0": ["2019-05-26-14-37-55-00"], "vda1": ["ea711a29-e460-4879-9d70-9da99ae021f9"]}}, "ansible_devices": {"sr0": {"holders": [], "host": "", "links": {"ids": ["ata-QEMU_DVD-ROM_QM00003"], "labels": ["cidata"], "masters": [], "uuids": ["2019-05-26-14-37-55-00"]}, "model": "QEMU DVD-ROM", "partitions": {}, "removable": "1", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "mq-deadline", "sectors": "728", "sectorsize": "2048", "size": "364.00 KB", "support_discard": "0", "vendor": "QEMU", "virtual": 1}, "vda": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {"vda1": {"holders": [], "links": {"ids": [], "labels": [], "masters": [], "uuids": ["ea711a29-e460-4879-9d70-9da99ae021f9"]}, "sectors": "8386560", "sectorsize": 512, "size": "4.00 GB", "start": "2048", "uuid": "ea711a29-e460-4879-9d70-9da99ae021f9"}}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "mq-deadline", "sectors": "8388608", "sectorsize": "512", "size": "4.00 GB", "support_discard": "0", "vendor": "0x1af4", "virtual": 1}}, "ansible_distribution": "Fedora", "ansible_distribution_file_parsed": true, "ansible_distribution_file_path": "/etc/redhat-release", "ansible_distribution_file_variety": "RedHat", "ansible_distribution_major_version": "30", "ansible_distribution_release": "", "ansible_distribution_version": "30", "ansible_dns": {"nameservers": ["10.0.2.3"]}, "ansible_domain": "", "ansible_effective_group_id": 0, "ansible_effective_user_id": 0, "ansible_env": {"DBUS_SESSION_BUS_ADDRESS": "unix:path=/run/user/0/bus", "HOME": "/root", "LANG": "en_US.UTF-8", "LESSOPEN": "||/usr/bin/lesspipe.sh %s", "LOGNAME": "root", "LS_COLORS": "rs=0:di=38;5;33:ln=38;5;51:mh=00:pi=40;38;5;11:so=38;5;13:do=38;5;5:bd=48;5;232;38;5;11:cd=48;5;232;38;5;3:or=48;5;232;38;5;9:mi=01;05;37;41:su=48;5;196;38;5;15:sg=48;5;11;38;5;16:ca=48;5;196;38;5;226:tw=48;5;10;38;5;16:ow=48;5;10;38;5;21:st=48;5;21;38;5;15:ex=38;5;40:*.tar=38;5;9:*.tgz=38;5;9:*.arc=38;5;9:*.arj=38;5;9:*.taz=38;5;9:*.lha=38;5;9:*.lz4=38;5;9:*.lzh=38;5;9:*.lzma=38;5;9:*.tlz=38;5;9:*.txz=38;5;9:*.tzo=38;5;9:*.t7z=38;5;9:*.zip=38;5;9:*.z=38;5;9:*.dz=38;5;9:*.gz=38;5;9:*.lrz=38;5;9:*.lz=38;5;9:*.lzo=38;5;9:*.xz=38;5;9:*.zst=38;5;9:*.tzst=38;5;9:*.bz2=38;5;9:*.bz=38;5;9:*.tbz=38;5;9:*.tbz2=38;5;9:*.tz=38;5;9:*.deb=38;5;9:*.rpm=38;5;9:*.jar=38;5;9:*.war=38;5;9:*.ear=38;5;9:*.sar=38;5;9:*.rar=38;5;9:*.alz=38;5;9:*.ace=38;5;9:*.zoo=38;5;9:*.cpio=38;5;9:*.7z=38;5;9:*.rz=38;5;9:*.cab=38;5;9:*.wim=38;5;9:*.swm=38;5;9:*.dwm=38;5;9:*.esd=38;5;9:*.jpg=38;5;13:*.jpeg=38;5;13:*.mjpg=38;5;13:*.mjpeg=38;5;13:*.gif=38;5;13:*.bmp=38;5;13:*.pbm=38;5;13:*.pgm=38;5;13:*.ppm=38;5;13:*.tga=38;5;13:*.xbm=38;5;13:*.xpm=38;5;13:*.tif=38;5;13:*.tiff=38;5;13:*.png=38;5;13:*.svg=38;5;13:*.svgz=38;5;13:*.mng=38;5;13:*.pcx=38;5;13:*.mov=38;5;13:*.mpg=38;5;13:*.mpeg=38;5;13:*.m2v=38;5;13:*.mkv=38;5;13:*.webm=38;5;13:*.ogm=38;5;13:*.mp4=38;5;13:*.m4v=38;5;13:*.mp4v=38;5;13:*.vob=38;5;13:*.qt=38;5;13:*.nuv=38;5;13:*.wmv=38;5;13:*.asf=38;5;13:*.rm=38;5;13:*.rmvb=38;5;13:*.flc=38;5;13:*.avi=38;5;13:*.fli=38;5;13:*.flv=38;5;13:*.gl=38;5;13:*.dl=38;5;13:*.xcf=38;5;13:*.xwd=38;5;13:*.yuv=38;5;13:*.cgm=38;5;13:*.emf=38;5;13:*.ogv=38;5;13:*.ogx=38;5;13:*.aac=38;5;45:*.au=38;5;45:*.flac=38;5;45:*.m4a=38;5;45:*.mid=38;5;45:*.midi=38;5;45:*.mka=38;5;45:*.mp3=38;5;45:*.mpc=38;5;45:*.ogg=38;5;45:*.ra=38;5;45:*.wav=38;5;45:*.oga=38;5;45:*.opus=38;5;45:*.spx=38;5;45:*.xspf=38;5;45:", "MAIL": "/var/mail/root", "PATH": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin", "PWD": "/root", "SELINUX_LEVEL_REQUESTED": "", "SELINUX_ROLE_REQUESTED": "", "SELINUX_USE_CURRENT_RANGE": "", "SHELL": "/bin/bash", "SHLVL": "1", "SSH_CLIENT": "10.0.2.2 60652 22", "SSH_CONNECTION": "10.0.2.2 60652 10.0.2.15 22", "SSH_TTY": "/dev/pts/0", "TERM": "xterm-256color", "USER": "root", "XDG_RUNTIME_DIR": "/run/user/0", "XDG_SESSION_CLASS": "user", "XDG_SESSION_ID": "1", "XDG_SESSION_TYPE": "tty", "_": "/usr/bin/python3"}, "ansible_eth0": {"active": true, "device": "eth0", "ipv4": {"address": "10.0.2.15", "broadcast": "10.0.2.255", "netmask": "255.255.255.0", "network": "10.0.2.0"}, "ipv6": [{"address": "fec0::5054:ff:fe12:3456", "prefix": "64", "scope": "site"}, {"address": "fe80::5054:ff:fe12:3456", "prefix": "64", "scope": "link"}], "macaddress": "52:54:00:12:34:56", "module": "virtio_net", "mtu": 1500, "pciid": "virtio0", "promisc": false, "speed": -1, "type": "ether"}, "ansible_fibre_channel_wwn": [], "ansible_fips": false, "ansible_form_factor": "Other", "ansible_fqdn": "ibm-p8-kvm-03-guest-02", "ansible_hostname": "ibm-p8-kvm-03-guest-02", "ansible_hostnqn": "", "ansible_interfaces": ["lo", "eth0"], "ansible_is_chroot": false, "ansible_iscsi_iqn": "", "ansible_kernel": "5.0.9-301.fc30.x86_64", "ansible_lo": {"active": true, "device": "lo", "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, "type": "loopback"}, "ansible_local": {}, "ansible_lsb": {}, "ansible_machine": "x86_64", "ansible_machine_id": "3c185a4d3bf44aa0bcef97560a4abf45", "ansible_memfree_mb": 653, "ansible_memory_mb": {"nocache": {"free": 846, "used": 136}, "real": {"free": 653, "total": 982, "used": 329}, "swap": {"cached": 0, "free": 0, "total": 0, "used": 0}}, "ansible_memtotal_mb": 982, "ansible_mounts": [{"block_available": 731960, "block_size": 4096, "block_total": 1015472, "block_used": 283512, "device": "/dev/vda1", "fstype": "ext4", "inode_available": 233659, "inode_total": 262144, "inode_used": 28485, "mount": "/", "options": "rw,seclabel,relatime", "size_available": 2998108160, "size_total": 4159373312, "uuid": "ea711a29-e460-4879-9d70-9da99ae021f9"}], "ansible_nodename": "ibm-p8-kvm-03-guest-02", "ansible_os_family": "RedHat", "ansible_pkg_mgr": "dnf", "ansible_proc_cmdline": {"BOOT_IMAGE": "(hd0,msdos1)/boot/vmlinuz-5.0.9-301.fc30.x86_64", "console": ["tty1", "ttyS0,115200n8"], "net.ifnames": "0", "no_timer_check": true, "ro": true, "root": "UUID=ea711a29-e460-4879-9d70-9da99ae021f9"}, "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/python3", "has_sslcontext": true, "type": "cpython", "version": {"major": 3, "micro": 3, "minor": 7, "releaselevel": "final", "serial": 0}, "version_info": [3, 7, 3, "final", 0]}, "ansible_python_version": "3.7.3", "ansible_real_group_id": 0, "ansible_real_user_id": 0, "ansible_selinux": {"config_mode": "enforcing", "mode": "enforcing", "policyvers": 31, "status": "enabled", "type": "targeted"}, "ansible_selinux_python_present": true, "ansible_service_mgr": "systemd", "ansible_ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBL077i5LEKYbrYmWmukth0omCtXh1odj013Ea22Rn/rKAFsJOEV9eC4bdtxMKwiSOH4EnCd8ye86o1D/ozjJOYw=", "ansible_ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAIBSkyyTkapTva25+mxwG2sZ+jt7v6U0ME06Iww9BjNeG", "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABAQDvBUcLWqzp5x4brvos1wah9lsBptBtRUuj9wSF4BwSPW+GFcZJfiO3Yy1LgBHMq9A8RrsOeIFKXGyWCHtJFjMvFq4O1A8Czz9hFYlFkheZBLbzJua9boZDorbyeNsEVC2g1uDVvtdl5jRK/3veTYEHYYAqz5DS0hLuL3mplMClZVI6PwZHVG1zbOOsEZTCZmCobdZziQesZCPQrLC1R0FGgyxWydu1tq8wc3lVKDk0VOxJBQ9y0qn/VemXy5y2B7AKC915sGIuEs/0tGJpQj67BG9MC6d3sXUck1GAwaZ4HAA7ZDJxOQpPGmA7OEXHy287y6a6wP9Wh+HOvz2mpUNP", "ansible_swapfree_mb": 0, "ansible_swaptotal_mb": 0, "ansible_system": "Linux", "ansible_system_capabilities": ["cap_chown", "cap_dac_override", "cap_dac_read_search", "cap_fowner", "cap_fsetid", "cap_kill", "cap_setgid", "cap_setuid", "cap_setpcap", "cap_linux_immutable", "cap_net_bind_service", "cap_net_broadcast", "cap_net_admin", "cap_net_raw", "cap_ipc_lock", "cap_ipc_owner", "cap_sys_module", "cap_sys_rawio", "cap_sys_chroot", "cap_sys_ptrace", "cap_sys_pacct", "cap_sys_admin", "cap_sys_boot", "cap_sys_nice", "cap_sys_resource", "cap_sys_time", "cap_sys_tty_config", "cap_mknod", "cap_lease", "cap_audit_write", "cap_audit_control", "cap_setfcap", "cap_mac_override", "cap_mac_admin", "cap_syslog", "cap_wake_alarm", "cap_block_suspend", "cap_audit_read+ep"], "ansible_system_capabilities_enforced": "True", "ansible_system_vendor": "QEMU", "ansible_uptime_seconds": 48, "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/tmpje08yk_t/tests/tests_all_purge.yml:12 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: policycoreutils-python-utils", "Installed: policycoreutils-python-utils-2.9-1.fc30.noarch"]} TASK [Add a Linux System Roles SELinux User] *************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tests/tests_all_purge.yml:19 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "comment": "Linux System Roles SELinux User", "create_home": true, "group": 1001, "home": "/home/sar-user", "name": "sar-user", "shell": "/bin/bash", "state": "present", "system": false, "uid": 1001} TASK [Add some mapping] ************************************************************************************************************************************************************************************ task path: /tmp/tmpje08yk_t/tests/tests_all_purge.yml:24 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": "echo -e -n \"boolean -m --on samba_enable_home_dirs\nport -a -p tcp -t ssh_port_t 22100\nfcontext -a -t user_home_dir_t /tmp/test_dir\nlogin -a -s staff_u sar-user\n\" | /usr/sbin/semanage -i -", "delta": "0:00:21.143153", "end": "2019-05-26 12:41:15.113524", "rc": 0, "start": "2019-05-26 12:40:53.970371", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Apply role with defaults, should not drop local modifications] *************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tests/tests_all_purge.yml:27 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpje08yk_t/tasks/main.yml:2 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpje08yk_t/tasks/main.yml:10 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: libselinux-python3", "Installed: policycoreutils-python3"]} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:22 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: policycoreutils-python-utils"]} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:31 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/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/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpje08yk_t/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpje08yk_t/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpje08yk_t/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpje08yk_t/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:03.933181", "end": "2019-05-26 12:41:44.262735", "rc": 0, "start": "2019-05-26 12:41:40.329554", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpje08yk_t/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpje08yk_t/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:118 TASK [Get local modifications - boolean] ******************************************************************************************************************************************************************* task path: /tmp/tmpje08yk_t/tests/set_selinux_variables.yml:2 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["/usr/sbin/semanage", "boolean", "-l", "-n", "-C"], "delta": "0:00:01.720618", "end": "2019-05-26 12:41:47.534710", "rc": 0, "start": "2019-05-26 12:41:45.814092", "stderr": "", "stderr_lines": [], "stdout": "samba_enable_home_dirs (on , on) Allow samba to enable home dirs", "stdout_lines": ["samba_enable_home_dirs (on , on) Allow samba to enable home dirs"]} TASK [Get local modifications - port] ********************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tests/set_selinux_variables.yml:5 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["/usr/sbin/semanage", "port", "-l", "-n", "-C"], "delta": "0:00:02.065060", "end": "2019-05-26 12:41:51.036936", "rc": 0, "start": "2019-05-26 12:41:48.971876", "stderr": "", "stderr_lines": [], "stdout": "ssh_port_t tcp 22100", "stdout_lines": ["ssh_port_t tcp 22100"]} TASK [Get local modifications - login] ********************************************************************************************************************************************************************* task path: /tmp/tmpje08yk_t/tests/set_selinux_variables.yml:8 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["/usr/sbin/semanage", "login", "-l", "-n", "-C"], "delta": "0:00:01.614254", "end": "2019-05-26 12:41:54.000109", "rc": 0, "start": "2019-05-26 12:41:52.385855", "stderr": "", "stderr_lines": [], "stdout": "sar-user staff_u s0 *", "stdout_lines": ["sar-user staff_u s0 *"]} TASK [Get local modifications - fcontext] ****************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tests/set_selinux_variables.yml:11 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["/usr/sbin/semanage", "fcontext", "-l", "-n", "-C"], "delta": "0:00:02.570493", "end": "2019-05-26 12:41:57.704898", "rc": 0, "start": "2019-05-26 12:41:55.134405", "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/tmpje08yk_t/tests/tests_all_purge.yml:32 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Check if local modifications are not empty - port] *************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tests/tests_all_purge.yml:35 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Check if local modifications are not empty - login] ************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tests/tests_all_purge.yml:38 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Check if local modifications are not empty - fcontext] *********************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tests/tests_all_purge.yml:41 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Apply the role to drop local modifications] ********************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tests/tests_all_purge.yml:45 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpje08yk_t/tasks/main.yml:2 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpje08yk_t/tasks/main.yml:10 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: libselinux-python3", "Installed: policycoreutils-python3"]} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:22 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: policycoreutils-python-utils"]} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:31 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/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/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpje08yk_t/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:60 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": "echo -e -n \"boolean -D -N\nlogin -D -N\nport -D -N\nfcontext -D -N\n\" | /usr/sbin/semanage -i -", "delta": "0:00:09.254188", "end": "2019-05-26 12:42:32.085034", "rc": 0, "start": "2019-05-26 12:42:22.830846", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpje08yk_t/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpje08yk_t/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpje08yk_t/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:04.187118", "end": "2019-05-26 12:42:37.708666", "rc": 0, "start": "2019-05-26 12:42:33.521548", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpje08yk_t/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpje08yk_t/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:118 TASK [Get local modifications - boolean] ******************************************************************************************************************************************************************* task path: /tmp/tmpje08yk_t/tests/set_selinux_variables.yml:2 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["/usr/sbin/semanage", "boolean", "-l", "-n", "-C"], "delta": "0:00:01.715549", "end": "2019-05-26 12:42:41.202687", "rc": 0, "start": "2019-05-26 12:42:39.487138", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - port] ********************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tests/set_selinux_variables.yml:5 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["/usr/sbin/semanage", "port", "-l", "-n", "-C"], "delta": "0:00:02.089052", "end": "2019-05-26 12:42:44.495743", "rc": 0, "start": "2019-05-26 12:42:42.406691", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - login] ********************************************************************************************************************************************************************* task path: /tmp/tmpje08yk_t/tests/set_selinux_variables.yml:8 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["/usr/sbin/semanage", "login", "-l", "-n", "-C"], "delta": "0:00:02.182483", "end": "2019-05-26 12:42:47.889641", "rc": 0, "start": "2019-05-26 12:42:45.707158", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - fcontext] ****************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tests/set_selinux_variables.yml:11 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["/usr/sbin/semanage", "fcontext", "-l", "-n", "-C"], "delta": "0:00:02.386115", "end": "2019-05-26 12:42:51.505425", "rc": 0, "start": "2019-05-26 12:42:49.119310", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Check if local modifications are empty - booleans] *************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tests/tests_all_purge.yml:52 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Check if local modifications are empty - port] ******************************************************************************************************************************************************* task path: /tmp/tmpje08yk_t/tests/tests_all_purge.yml:55 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Check if local modifications are empty - login] ****************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tests/tests_all_purge.yml:58 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Check if local modifications are empty - fcontext] *************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tests/tests_all_purge.yml:61 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Remove Linux System Roles SELinux User] ************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tests/tests_all_purge.yml:65 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "force": false, "name": "sar-user", "remove": true, "state": "absent"} META: ran handlers META: ran handlers PLAY RECAP ************************************************************************************************************************************************************************************************* /home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 : ok=33 changed=15 unreachable=0 failed=0 skipped=32 rescued=0 ignored=0 + cd /tmp/tmpje08yk_t/tests; TEST_SUBJECTS=/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_selinux-35-af5a0a6-fedora-30-y2m96f3q/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpje08yk_t/_setup.yml /tmp/tmpje08yk_t/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/tmpje08yk_t/_setup.yml PLAY [Fail when only localhost is available] *************************************************************************************************************************************************************** META: ran handlers TASK [debug] *********************************************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/_setup.yml:5 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "groups": { "all": [ "/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "localhost": [ "/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "subjects": [ "/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "ungrouped": [] } } TASK [fail] ************************************************************************************************************************************************************************************************ task path: /tmp/tmpje08yk_t/_setup.yml:7 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ************************************************************************************************************************************************************************************************* /home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_all_transitions.yml ************************************************************************************************************************************************************************ 1 plays in /tmp/tmpje08yk_t/tests/tests_all_transitions.yml PLAY [Test all the possible selinux_state transitions] ***************************************************************************************************************************************************** TASK [Gathering Facts] ************************************************************************************************************************************************************************************* task path: /tmp/tmpje08yk_t/tests/tests_all_transitions.yml:1 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"ansible_all_ipv4_addresses": ["10.0.2.15"], "ansible_all_ipv6_addresses": ["fec0::5054:ff:fe12:3456", "fe80::5054:ff:fe12:3456"], "ansible_apparmor": {"status": "disabled"}, "ansible_architecture": "x86_64", "ansible_bios_date": "04/01/2014", "ansible_bios_version": "1.12.0-2.fc30", "ansible_cmdline": {"BOOT_IMAGE": "(hd0,msdos1)/boot/vmlinuz-5.0.9-301.fc30.x86_64", "console": "ttyS0,115200n8", "net.ifnames": "0", "no_timer_check": true, "ro": true, "root": "UUID=ea711a29-e460-4879-9d70-9da99ae021f9"}, "ansible_date_time": {"date": "2019-05-26", "day": "26", "epoch": "1558874629", "hour": "12", "iso8601": "2019-05-26T12:43:49Z", "iso8601_basic": "20190526T124349026656", "iso8601_basic_short": "20190526T124349", "iso8601_micro": "2019-05-26T12:43:49.026902Z", "minute": "43", "month": "05", "second": "49", "time": "12:43:49", "tz": "UTC", "tz_offset": "+0000", "weekday": "Sunday", "weekday_number": "0", "weeknumber": "20", "year": "2019"}, "ansible_default_ipv4": {"address": "10.0.2.15", "alias": "eth0", "broadcast": "10.0.2.255", "gateway": "10.0.2.2", "interface": "eth0", "macaddress": "52:54:00:12:34:56", "mtu": 1500, "netmask": "255.255.255.0", "network": "10.0.2.0", "type": "ether"}, "ansible_default_ipv6": {"address": "fec0::5054:ff:fe12:3456", "gateway": "fe80::2", "interface": "eth0", "macaddress": "52:54:00:12:34:56", "mtu": 1500, "prefix": "64", "scope": "site", "type": "ether"}, "ansible_device_links": {"ids": {"sr0": ["ata-QEMU_DVD-ROM_QM00003"]}, "labels": {"sr0": ["cidata"]}, "masters": {}, "uuids": {"sr0": ["2019-05-26-14-42-55-00"], "vda1": ["ea711a29-e460-4879-9d70-9da99ae021f9"]}}, "ansible_devices": {"sr0": {"holders": [], "host": "", "links": {"ids": ["ata-QEMU_DVD-ROM_QM00003"], "labels": ["cidata"], "masters": [], "uuids": ["2019-05-26-14-42-55-00"]}, "model": "QEMU DVD-ROM", "partitions": {}, "removable": "1", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "mq-deadline", "sectors": "728", "sectorsize": "2048", "size": "364.00 KB", "support_discard": "0", "vendor": "QEMU", "virtual": 1}, "vda": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {"vda1": {"holders": [], "links": {"ids": [], "labels": [], "masters": [], "uuids": ["ea711a29-e460-4879-9d70-9da99ae021f9"]}, "sectors": "8386560", "sectorsize": 512, "size": "4.00 GB", "start": "2048", "uuid": "ea711a29-e460-4879-9d70-9da99ae021f9"}}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "mq-deadline", "sectors": "8388608", "sectorsize": "512", "size": "4.00 GB", "support_discard": "0", "vendor": "0x1af4", "virtual": 1}}, "ansible_distribution": "Fedora", "ansible_distribution_file_parsed": true, "ansible_distribution_file_path": "/etc/redhat-release", "ansible_distribution_file_variety": "RedHat", "ansible_distribution_major_version": "30", "ansible_distribution_release": "", "ansible_distribution_version": "30", "ansible_dns": {"nameservers": ["10.0.2.3"]}, "ansible_domain": "", "ansible_effective_group_id": 0, "ansible_effective_user_id": 0, "ansible_env": {"DBUS_SESSION_BUS_ADDRESS": "unix:path=/run/user/0/bus", "HOME": "/root", "LANG": "en_US.UTF-8", "LESSOPEN": "||/usr/bin/lesspipe.sh %s", "LOGNAME": "root", "LS_COLORS": "rs=0:di=38;5;33:ln=38;5;51:mh=00:pi=40;38;5;11:so=38;5;13:do=38;5;5:bd=48;5;232;38;5;11:cd=48;5;232;38;5;3:or=48;5;232;38;5;9:mi=01;05;37;41:su=48;5;196;38;5;15:sg=48;5;11;38;5;16:ca=48;5;196;38;5;226:tw=48;5;10;38;5;16:ow=48;5;10;38;5;21:st=48;5;21;38;5;15:ex=38;5;40:*.tar=38;5;9:*.tgz=38;5;9:*.arc=38;5;9:*.arj=38;5;9:*.taz=38;5;9:*.lha=38;5;9:*.lz4=38;5;9:*.lzh=38;5;9:*.lzma=38;5;9:*.tlz=38;5;9:*.txz=38;5;9:*.tzo=38;5;9:*.t7z=38;5;9:*.zip=38;5;9:*.z=38;5;9:*.dz=38;5;9:*.gz=38;5;9:*.lrz=38;5;9:*.lz=38;5;9:*.lzo=38;5;9:*.xz=38;5;9:*.zst=38;5;9:*.tzst=38;5;9:*.bz2=38;5;9:*.bz=38;5;9:*.tbz=38;5;9:*.tbz2=38;5;9:*.tz=38;5;9:*.deb=38;5;9:*.rpm=38;5;9:*.jar=38;5;9:*.war=38;5;9:*.ear=38;5;9:*.sar=38;5;9:*.rar=38;5;9:*.alz=38;5;9:*.ace=38;5;9:*.zoo=38;5;9:*.cpio=38;5;9:*.7z=38;5;9:*.rz=38;5;9:*.cab=38;5;9:*.wim=38;5;9:*.swm=38;5;9:*.dwm=38;5;9:*.esd=38;5;9:*.jpg=38;5;13:*.jpeg=38;5;13:*.mjpg=38;5;13:*.mjpeg=38;5;13:*.gif=38;5;13:*.bmp=38;5;13:*.pbm=38;5;13:*.pgm=38;5;13:*.ppm=38;5;13:*.tga=38;5;13:*.xbm=38;5;13:*.xpm=38;5;13:*.tif=38;5;13:*.tiff=38;5;13:*.png=38;5;13:*.svg=38;5;13:*.svgz=38;5;13:*.mng=38;5;13:*.pcx=38;5;13:*.mov=38;5;13:*.mpg=38;5;13:*.mpeg=38;5;13:*.m2v=38;5;13:*.mkv=38;5;13:*.webm=38;5;13:*.ogm=38;5;13:*.mp4=38;5;13:*.m4v=38;5;13:*.mp4v=38;5;13:*.vob=38;5;13:*.qt=38;5;13:*.nuv=38;5;13:*.wmv=38;5;13:*.asf=38;5;13:*.rm=38;5;13:*.rmvb=38;5;13:*.flc=38;5;13:*.avi=38;5;13:*.fli=38;5;13:*.flv=38;5;13:*.gl=38;5;13:*.dl=38;5;13:*.xcf=38;5;13:*.xwd=38;5;13:*.yuv=38;5;13:*.cgm=38;5;13:*.emf=38;5;13:*.ogv=38;5;13:*.ogx=38;5;13:*.aac=38;5;45:*.au=38;5;45:*.flac=38;5;45:*.m4a=38;5;45:*.mid=38;5;45:*.midi=38;5;45:*.mka=38;5;45:*.mp3=38;5;45:*.mpc=38;5;45:*.ogg=38;5;45:*.ra=38;5;45:*.wav=38;5;45:*.oga=38;5;45:*.opus=38;5;45:*.spx=38;5;45:*.xspf=38;5;45:", "MAIL": "/var/mail/root", "PATH": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin", "PWD": "/root", "SELINUX_LEVEL_REQUESTED": "", "SELINUX_ROLE_REQUESTED": "", "SELINUX_USE_CURRENT_RANGE": "", "SHELL": "/bin/bash", "SHLVL": "1", "SSH_CLIENT": "10.0.2.2 45650 22", "SSH_CONNECTION": "10.0.2.2 45650 10.0.2.15 22", "SSH_TTY": "/dev/pts/0", "TERM": "xterm-256color", "USER": "root", "XDG_RUNTIME_DIR": "/run/user/0", "XDG_SESSION_CLASS": "user", "XDG_SESSION_ID": "1", "XDG_SESSION_TYPE": "tty", "_": "/usr/bin/python3"}, "ansible_eth0": {"active": true, "device": "eth0", "ipv4": {"address": "10.0.2.15", "broadcast": "10.0.2.255", "netmask": "255.255.255.0", "network": "10.0.2.0"}, "ipv6": [{"address": "fec0::5054:ff:fe12:3456", "prefix": "64", "scope": "site"}, {"address": "fe80::5054:ff:fe12:3456", "prefix": "64", "scope": "link"}], "macaddress": "52:54:00:12:34:56", "module": "virtio_net", "mtu": 1500, "pciid": "virtio0", "promisc": false, "speed": -1, "type": "ether"}, "ansible_fibre_channel_wwn": [], "ansible_fips": false, "ansible_form_factor": "Other", "ansible_fqdn": "ibm-p8-kvm-03-guest-02", "ansible_hostname": "ibm-p8-kvm-03-guest-02", "ansible_hostnqn": "", "ansible_interfaces": ["eth0", "lo"], "ansible_is_chroot": false, "ansible_iscsi_iqn": "", "ansible_kernel": "5.0.9-301.fc30.x86_64", "ansible_lo": {"active": true, "device": "lo", "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, "type": "loopback"}, "ansible_local": {}, "ansible_lsb": {}, "ansible_machine": "x86_64", "ansible_machine_id": "95d5cec8be8f4858a2971547847effc2", "ansible_memfree_mb": 653, "ansible_memory_mb": {"nocache": {"free": 846, "used": 136}, "real": {"free": 653, "total": 982, "used": 329}, "swap": {"cached": 0, "free": 0, "total": 0, "used": 0}}, "ansible_memtotal_mb": 982, "ansible_mounts": [{"block_available": 731960, "block_size": 4096, "block_total": 1015472, "block_used": 283512, "device": "/dev/vda1", "fstype": "ext4", "inode_available": 233659, "inode_total": 262144, "inode_used": 28485, "mount": "/", "options": "rw,seclabel,relatime", "size_available": 2998108160, "size_total": 4159373312, "uuid": "ea711a29-e460-4879-9d70-9da99ae021f9"}], "ansible_nodename": "ibm-p8-kvm-03-guest-02", "ansible_os_family": "RedHat", "ansible_pkg_mgr": "dnf", "ansible_proc_cmdline": {"BOOT_IMAGE": "(hd0,msdos1)/boot/vmlinuz-5.0.9-301.fc30.x86_64", "console": ["tty1", "ttyS0,115200n8"], "net.ifnames": "0", "no_timer_check": true, "ro": true, "root": "UUID=ea711a29-e460-4879-9d70-9da99ae021f9"}, "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/python3", "has_sslcontext": true, "type": "cpython", "version": {"major": 3, "micro": 3, "minor": 7, "releaselevel": "final", "serial": 0}, "version_info": [3, 7, 3, "final", 0]}, "ansible_python_version": "3.7.3", "ansible_real_group_id": 0, "ansible_real_user_id": 0, "ansible_selinux": {"config_mode": "enforcing", "mode": "enforcing", "policyvers": 31, "status": "enabled", "type": "targeted"}, "ansible_selinux_python_present": true, "ansible_service_mgr": "systemd", "ansible_ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBMTC08pAHA0ZegqVaLcQuhKEctt2EDUWfwHBA5mvVtwf0NfQLMbU407mac5xj4GdoS75l9u05hMsuBNXck0yAv4=", "ansible_ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAIPJBMj2OLOqfUs0OCUZ3Nls5q5B6x5tj4bXQjy71SW5F", "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABAQC2pk4dQN+ov25DUeWiEBhB/lQszORWazF9k/j9A9DeygC80QUPaMMVmdSCTMVfp/xXiatnJZLuxdNVlOQUn51H5fhcy062ZgrvYNLxpJfF5JuUitnAsP4Zu6RNuigtmJGYgX24Zm3smy1atbqpoBBWzfCuulpJ2EA/Butune9ctoqj2qbZqGRm7Ibzsrc5jCIqUP0r6tYZZis+PXu89h6wP93a2pPE8GNrgL4neH7chJYMyjdwHxQ3+QXorsAfpHun074xGDxlETTHjxrmpb68MvRg8aqAZ+kQyG4hygATH3CiqX/sIiK7t/onth+22hmAs5EdYxtMbfZ51QTfkbvJ", "ansible_swapfree_mb": 0, "ansible_swaptotal_mb": 0, "ansible_system": "Linux", "ansible_system_capabilities": ["cap_chown", "cap_dac_override", "cap_dac_read_search", "cap_fowner", "cap_fsetid", "cap_kill", "cap_setgid", "cap_setuid", "cap_setpcap", "cap_linux_immutable", "cap_net_bind_service", "cap_net_broadcast", "cap_net_admin", "cap_net_raw", "cap_ipc_lock", "cap_ipc_owner", "cap_sys_module", "cap_sys_rawio", "cap_sys_chroot", "cap_sys_ptrace", "cap_sys_pacct", "cap_sys_admin", "cap_sys_boot", "cap_sys_nice", "cap_sys_resource", "cap_sys_time", "cap_sys_tty_config", "cap_mknod", "cap_lease", "cap_audit_write", "cap_audit_control", "cap_setfcap", "cap_mac_override", "cap_mac_admin", "cap_syslog", "cap_wake_alarm", "cap_block_suspend", "cap_audit_read+ep"], "ansible_system_capabilities_enforced": "True", "ansible_system_vendor": "QEMU", "ansible_uptime_seconds": 49, "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/tmpje08yk_t/tests/tests_all_transitions.yml:11 included: /tmp/tmpje08yk_t/tests/selinux_config_save.yml for /home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Backup original /etc/selinux/config] ***************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tests/selinux_config_save.yml:1 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "checksum": "61a40e1faa78b234462d16dffbdb3fb869442406", "dest": "/etc/selinux/config.test_selinux_save", "gid": 0, "group": "root", "md5sum": "eab350e0c5241d4394c2099bf86e9312", "mode": "0644", "owner": "root", "secontext": "system_u:object_r:selinux_config_t:s0", "size": 548, "src": "/etc/selinux/config", "state": "file", "uid": 0} TASK [test all the possible state transitions] ************************************************************************************************************************************************************* task path: /tmp/tmpje08yk_t/tests/tests_all_transitions.yml:14 included: /tmp/tmpje08yk_t/tests/selinux_test_transitions.yml for /home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpje08yk_t/tests/selinux_test_transitions.yml for /home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpje08yk_t/tests/selinux_test_transitions.yml for /home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpje08yk_t/tests/selinux_test_transitions.yml for /home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpje08yk_t/tests/selinux_test_transitions.yml for /home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpje08yk_t/tests/selinux_test_transitions.yml for /home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpje08yk_t/tests/selinux_test_transitions.yml for /home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpje08yk_t/tests/selinux_test_transitions.yml for /home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpje08yk_t/tests/selinux_test_transitions.yml for /home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [display transition name] ***************************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tests/selinux_test_transitions.yml:1 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "msg": "testing transition permissive -> permissive" } TASK [setup the initial state] ***************************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tests/selinux_test_transitions.yml:5 included: /tmp/tmpje08yk_t/tests/selinux_apply_reboot.yml for /home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [include_role : selinux] ****************************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tests/selinux_apply_reboot.yml:3 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpje08yk_t/tasks/main.yml:2 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpje08yk_t/tasks/main.yml:10 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: libselinux-python3", "Installed: policycoreutils-python3"]} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:22 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: policycoreutils-python-utils", "Installed: policycoreutils-python-utils-2.9-1.fc30.noarch"]} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:31 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "configfile": "/etc/selinux/config", "msg": "SELinux state changed from 'enforcing' to 'permissive', Config SELinux state changed from 'enforcing' to 'permissive'", "policy": "targeted", "reboot_required": false, "state": "permissive"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/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/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpje08yk_t/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpje08yk_t/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpje08yk_t/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpje08yk_t/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:07.815543", "end": "2019-05-26 12:46:23.448628", "rc": 0, "start": "2019-05-26 12:46:15.633085", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpje08yk_t/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpje08yk_t/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:118 TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tests/selinux_test_transitions.yml:10 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [check that initial state has been set up properly] *************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tests/selinux_test_transitions.yml:14 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [save the initial state] ****************************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tests/selinux_test_transitions.yml:18 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"initial_selinux_fact": {"config_mode": "permissive", "mode": "permissive", "policyvers": 31, "status": "enabled", "type": "targeted"}}, "changed": false} TASK [apply the role without parameters] ******************************************************************************************************************************************************************* task path: /tmp/tmpje08yk_t/tests/selinux_test_transitions.yml:22 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpje08yk_t/tasks/main.yml:2 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpje08yk_t/tasks/main.yml:10 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: libselinux-python3", "Installed: policycoreutils-python3"]} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:22 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: policycoreutils-python-utils"]} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:31 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/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/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpje08yk_t/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpje08yk_t/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpje08yk_t/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpje08yk_t/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:03.669523", "end": "2019-05-26 12:46:56.041382", "rc": 0, "start": "2019-05-26 12:46:52.371859", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpje08yk_t/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpje08yk_t/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:118 TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tests/selinux_test_transitions.yml:26 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [check that the run w/o parameters has not changed anything] ****************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tests/selinux_test_transitions.yml:30 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [apply the desired state if possible without reboot] ************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tests/selinux_test_transitions.yml:34 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpje08yk_t/tasks/main.yml:2 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpje08yk_t/tasks/main.yml:10 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: libselinux-python3", "Installed: policycoreutils-python3"]} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:22 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: policycoreutils-python-utils"]} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:31 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "configfile": "/etc/selinux/config", "msg": "", "policy": "targeted", "reboot_required": false, "state": "permissive"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/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/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpje08yk_t/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpje08yk_t/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpje08yk_t/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpje08yk_t/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:03.900499", "end": "2019-05-26 12:47:30.313254", "rc": 0, "start": "2019-05-26 12:47:26.412755", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpje08yk_t/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpje08yk_t/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:118 TASK [apply the desired state if necessary with reboot] **************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tests/selinux_test_transitions.yml:44 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tests/selinux_test_transitions.yml:52 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [check that something changed if it should have] ****************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tests/selinux_test_transitions.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check that nothing changed if it should not have] **************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tests/selinux_test_transitions.yml:61 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [check that desired state has been applied properly] ************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tests/selinux_test_transitions.yml:66 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [check that desired state has been saved properly] **************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tests/selinux_test_transitions.yml:70 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [display transition name] ***************************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tests/selinux_test_transitions.yml:1 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "msg": "testing transition permissive -> enforcing" } TASK [setup the initial state] ***************************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tests/selinux_test_transitions.yml:5 included: /tmp/tmpje08yk_t/tests/selinux_apply_reboot.yml for /home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [include_role : selinux] ****************************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tests/selinux_apply_reboot.yml:3 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpje08yk_t/tasks/main.yml:2 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpje08yk_t/tasks/main.yml:10 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: libselinux-python3", "Installed: policycoreutils-python3"]} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:22 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: policycoreutils-python-utils"]} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:31 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "configfile": "/etc/selinux/config", "msg": "", "policy": "targeted", "reboot_required": false, "state": "permissive"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/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/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpje08yk_t/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpje08yk_t/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpje08yk_t/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpje08yk_t/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:03.341846", "end": "2019-05-26 12:48:03.188898", "rc": 0, "start": "2019-05-26 12:47:59.847052", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpje08yk_t/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpje08yk_t/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:118 TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tests/selinux_test_transitions.yml:10 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [check that initial state has been set up properly] *************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tests/selinux_test_transitions.yml:14 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [save the initial state] ****************************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tests/selinux_test_transitions.yml:18 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"initial_selinux_fact": {"config_mode": "permissive", "mode": "permissive", "policyvers": 31, "status": "enabled", "type": "targeted"}}, "changed": false} TASK [apply the role without parameters] ******************************************************************************************************************************************************************* task path: /tmp/tmpje08yk_t/tests/selinux_test_transitions.yml:22 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpje08yk_t/tasks/main.yml:2 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpje08yk_t/tasks/main.yml:10 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: libselinux-python3", "Installed: policycoreutils-python3"]} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:22 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: policycoreutils-python-utils"]} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:31 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/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/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpje08yk_t/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpje08yk_t/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpje08yk_t/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpje08yk_t/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:03.145979", "end": "2019-05-26 12:48:30.295865", "rc": 0, "start": "2019-05-26 12:48:27.149886", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpje08yk_t/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpje08yk_t/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:118 TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tests/selinux_test_transitions.yml:26 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [check that the run w/o parameters has not changed anything] ****************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tests/selinux_test_transitions.yml:30 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [apply the desired state if possible without reboot] ************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tests/selinux_test_transitions.yml:34 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpje08yk_t/tasks/main.yml:2 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpje08yk_t/tasks/main.yml:10 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: libselinux-python3", "Installed: policycoreutils-python3"]} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:22 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: policycoreutils-python-utils"]} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:31 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "configfile": "/etc/selinux/config", "msg": "SELinux state changed from 'permissive' to 'enforcing', Config SELinux state changed from 'permissive' to 'enforcing'", "policy": "targeted", "reboot_required": false, "state": "enforcing"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/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/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpje08yk_t/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpje08yk_t/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpje08yk_t/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpje08yk_t/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:03.839239", "end": "2019-05-26 12:48:59.476891", "rc": 0, "start": "2019-05-26 12:48:55.637652", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpje08yk_t/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpje08yk_t/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:118 TASK [apply the desired state if necessary with reboot] **************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tests/selinux_test_transitions.yml:44 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tests/selinux_test_transitions.yml:52 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [check that something changed if it should have] ****************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tests/selinux_test_transitions.yml:56 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [check that nothing changed if it should not have] **************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tests/selinux_test_transitions.yml:61 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check that desired state has been applied properly] ************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tests/selinux_test_transitions.yml:66 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [check that desired state has been saved properly] **************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tests/selinux_test_transitions.yml:70 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [display transition name] ***************************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tests/selinux_test_transitions.yml:1 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "msg": "testing transition permissive -> disabled" } TASK [setup the initial state] ***************************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tests/selinux_test_transitions.yml:5 included: /tmp/tmpje08yk_t/tests/selinux_apply_reboot.yml for /home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [include_role : selinux] ****************************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tests/selinux_apply_reboot.yml:3 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpje08yk_t/tasks/main.yml:2 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpje08yk_t/tasks/main.yml:10 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: libselinux-python3", "Installed: policycoreutils-python3"]} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:22 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: policycoreutils-python-utils"]} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:31 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "configfile": "/etc/selinux/config", "msg": "SELinux state changed from 'enforcing' to 'permissive', Config SELinux state changed from 'enforcing' to 'permissive'", "policy": "targeted", "reboot_required": false, "state": "permissive"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/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/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpje08yk_t/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpje08yk_t/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpje08yk_t/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpje08yk_t/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:03.929923", "end": "2019-05-26 12:49:32.791195", "rc": 0, "start": "2019-05-26 12:49:28.861272", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpje08yk_t/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpje08yk_t/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:118 TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tests/selinux_test_transitions.yml:10 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [check that initial state has been set up properly] *************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tests/selinux_test_transitions.yml:14 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [save the initial state] ****************************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tests/selinux_test_transitions.yml:18 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"initial_selinux_fact": {"config_mode": "permissive", "mode": "permissive", "policyvers": 31, "status": "enabled", "type": "targeted"}}, "changed": false} TASK [apply the role without parameters] ******************************************************************************************************************************************************************* task path: /tmp/tmpje08yk_t/tests/selinux_test_transitions.yml:22 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpje08yk_t/tasks/main.yml:2 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpje08yk_t/tasks/main.yml:10 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: libselinux-python3", "Installed: policycoreutils-python3"]} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:22 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: policycoreutils-python-utils"]} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:31 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/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/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpje08yk_t/tasks/main.yml:56 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {} TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:60 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpje08yk_t/tasks/main.yml:64 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:68 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpje08yk_t/tasks/main.yml:72 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:76 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpje08yk_t/tasks/main.yml:80 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["semodule", "-R"], "delta": "0:00:03.122829", "end": "2019-05-26 12:50:03.167471", "rc": 0, "start": "2019-05-26 12:50:00.044642", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpje08yk_t/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpje08yk_t/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:118 TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tests/selinux_test_transitions.yml:26 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [check that the run w/o parameters has not changed anything] ****************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tests/selinux_test_transitions.yml:30 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [apply the desired state if possible without reboot] ************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tests/selinux_test_transitions.yml:34 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [apply the desired state if necessary with reboot] **************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tests/selinux_test_transitions.yml:44 included: /tmp/tmpje08yk_t/tests/selinux_apply_reboot.yml for /home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [include_role : selinux] ****************************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tests/selinux_apply_reboot.yml:3 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpje08yk_t/tasks/main.yml:2 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpje08yk_t/tasks/main.yml:10 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: libselinux-python3", "Installed: policycoreutils-python3"]} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:22 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: policycoreutils-python-utils"]} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:31 [WARNING]: SELinux state change will take effect next reboot changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "configfile": "/etc/selinux/config", "msg": "Config SELinux state changed from 'permissive' to 'disabled'", "policy": "targeted", "reboot_required": true, "state": "disabled"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:38 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"selinux_reboot_required": true}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/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/Fedora-Cloud-Base-30-1.2.x86_64.qcow2]: FAILED! => {"changed": false, "msg": "Reboot is required to apply changes. Re-execute the role after boot."} TASK [handle errors] *************************************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tests/selinux_apply_reboot.yml:7 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [restart managed host] ******************************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tests/selinux_apply_reboot.yml:12 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_job_id": "499023220865.12688", "changed": true, "finished": 0, "results_file": "/root/.ansible_async/499023220865.12688", "started": 1} TASK [wait for managed host to come back] ****************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tests/selinux_apply_reboot.yml:18 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "elapsed": 41} TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tests/selinux_test_transitions.yml:52 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [check that something changed if it should have] ****************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tests/selinux_test_transitions.yml:56 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [check that nothing changed if it should not have] **************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tests/selinux_test_transitions.yml:61 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check that desired state has been applied properly] ************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tests/selinux_test_transitions.yml:66 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [check that desired state has been saved properly] **************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tests/selinux_test_transitions.yml:70 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [display transition name] ***************************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tests/selinux_test_transitions.yml:1 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "msg": "testing transition enforcing -> permissive" } TASK [setup the initial state] ***************************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tests/selinux_test_transitions.yml:5 included: /tmp/tmpje08yk_t/tests/selinux_apply_reboot.yml for /home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [include_role : selinux] ****************************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tests/selinux_apply_reboot.yml:3 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpje08yk_t/tasks/main.yml:2 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Install SELinux python3 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpje08yk_t/tasks/main.yml:10 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: libselinux-python3", "Installed: policycoreutils-python3"]} TASK [selinux : refresh facts] ***************************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:18 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [selinux : Install SELinux tool semanage on Fedora] *************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:22 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: policycoreutils-python-utils"]} TASK [selinux : Set permanent SELinux state if enabled] **************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:31 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:38 [WARNING]: Reboot is required to set SELinux state to 'enforcing' changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "configfile": "/etc/selinux/config", "msg": "Config SELinux state changed from 'disabled' to 'enforcing'", "policy": "targeted", "reboot_required": true, "state": "enforcing"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tasks/main.yml:45 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"selinux_reboot_required": true}, "changed": false} TASK [selinux : Fail if reboot is required] **************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/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/Fedora-Cloud-Base-30-1.2.x86_64.qcow2]: FAILED! => {"changed": false, "msg": "Reboot is required to apply changes. Re-execute the role after boot."} TASK [handle errors] *************************************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tests/selinux_apply_reboot.yml:7 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [restart managed host] ******************************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tests/selinux_apply_reboot.yml:12 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_job_id": "960947517237.1212", "changed": true, "finished": 0, "results_file": "/root/.ansible_async/960947517237.1212", "started": 1} TASK [wait for managed host to come back] ****************************************************************************************************************************************************************** task path: /tmp/tmpje08yk_t/tests/selinux_apply_reboot.yml:18 fatal: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2]: FAILED! => {"changed": false, "elapsed": 131, "msg": "timed out waiting for ping module test success: Failed to connect to the host via ssh: ssh: connect to host 127.0.0.3 port 2313: Connection timed out"} PLAY RECAP ************************************************************************************************************************************************************************************************* /home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 : ok=107 changed=17 unreachable=0 failed=1 skipped=136 rescued=2 ignored=0