+ cd /tmp/tmpgx0pi3ud/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-2rt_ksox/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpgx0pi3ud/_setup.yml /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/_setup.yml PLAY [Fail when only localhost is available] *************************************************************************************************************************************************************** META: ran handlers TASK [debug] *********************************************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/_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/tmpgx0pi3ud/_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/tmpgx0pi3ud/tests/set_selinux_variables.yml statically imported: /tmp/tmpgx0pi3ud/tests/set_selinux_variables.yml PLAYBOOK: tests_all_purge.yml ****************************************************************************************************************************************************************************** 1 plays in /tmp/tmpgx0pi3ud/tests/tests_all_purge.yml PLAY [Test that selinux_all_purge drops local modifications, defaults to no] ******************************************************************************************************************************* TASK [Gathering Facts] ************************************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/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-25", "day": "25", "epoch": "1558785800", "hour": "12", "iso8601": "2019-05-25T12:03:20Z", "iso8601_basic": "20190525T120320730641", "iso8601_basic_short": "20190525T120320", "iso8601_micro": "2019-05-25T12:03:20.730802Z", "minute": "03", "month": "05", "second": "20", "time": "12:03:20", "tz": "UTC", "tz_offset": "+0000", "weekday": "Saturday", "weekday_number": "6", "weeknumber": "20", "year": "2019"}, "ansible_default_ipv4": {"address": "10.0.2.15", "alias": "eth0", "broadcast": "10.0.2.255", "gateway": "10.0.2.2", "interface": "eth0", "macaddress": "52:54:00:12:34:56", "mtu": 1500, "netmask": "255.255.255.0", "network": "10.0.2.0", "type": "ether"}, "ansible_default_ipv6": {"address": "fec0::5054:ff:fe12:3456", "gateway": "fe80::2", "interface": "eth0", "macaddress": "52:54:00:12:34:56", "mtu": 1500, "prefix": "64", "scope": "site", "type": "ether"}, "ansible_device_links": {"ids": {"sr0": ["ata-QEMU_DVD-ROM_QM00003"]}, "labels": {"sr0": ["cidata"]}, "masters": {}, "uuids": {"sr0": ["2019-05-25-14-02-42-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-25-14-02-42-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 39200 22", "SSH_CONNECTION": "10.0.2.2 39200 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": "e20a6e75451a4dc1bee6bceaa6f91482", "ansible_memfree_mb": 654, "ansible_memory_mb": {"nocache": {"free": 847, "used": 135}, "real": {"free": 654, "total": 982, "used": 328}, "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": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBHBA3MXKTR9ndNbFEgp5R5Dm5r++eDQEpQaWhUyby+/rbr8Vx94S0veg6+pRfGer4rG3B4loSq+MnF9Nx+Ggm6g=", "ansible_ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAIPifqoacVwW0UP42bWgTPHSoGlM2aAB8rs9xR+lTEjyO", "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABAQC7GFiyX9+rQWENvTLZnij94B4/VKPF+Lo+qoDuKPhc8g5/RhLu7Tl3sayBp28C2I3ZoBLbU30GRZj+gA3uMEtHcA3nv51xauypabGxq9URpEr7vnFBGsfdIgzcrwO0iyDSQxvGRMHdK764pv2eIB+tLfgzmBMKqFv7DZEuv2mSXhIWmcmFJZikGDEa0RSqFbxMELc30625ZdJ/7uJrLPtWwWegE8kMOAkVUZDyokLV5ZxlAcRFi6K3huQH/19AYKd/UpDSziMcBwM6Kxk79bfXX04R8WpxkvEUU5T/QFg4sauan4U7MLtC/qVhO3G6pBGVPfPu2QkJk+LIUqZjXvW5", "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": 35, "ansible_user_dir": "/root", "ansible_user_gecos": "root", "ansible_user_gid": 0, "ansible_user_id": "root", "ansible_user_shell": "/bin/bash", "ansible_user_uid": 0, "ansible_userspace_architecture": "x86_64", "ansible_userspace_bits": "64", "ansible_virtualization_role": "guest", "ansible_virtualization_type": "kvm", "gather_subset": ["all"], "module_setup": true}, "changed": false} META: ran handlers TASK [Install SELinux tool semanage on Fedora] ************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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:12.302135", "end": "2019-05-25 12:05:04.777786", "rc": 0, "start": "2019-05-25 12:04:52.475651", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Apply role with defaults, should not drop local modifications] *************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tests/tests_all_purge.yml:27 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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.281904", "end": "2019-05-25 12:05:27.257300", "rc": 0, "start": "2019-05-25 12:05:23.975396", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpgx0pi3ud/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:118 TASK [Get local modifications - boolean] ******************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/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.344313", "end": "2019-05-25 12:05:29.865444", "rc": 0, "start": "2019-05-25 12:05:28.521131", "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/tmpgx0pi3ud/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:01.717804", "end": "2019-05-25 12:05:32.380445", "rc": 0, "start": "2019-05-25 12:05:30.662641", "stderr": "", "stderr_lines": [], "stdout": "ssh_port_t tcp 22100", "stdout_lines": ["ssh_port_t tcp 22100"]} TASK [Get local modifications - login] ********************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/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.483437", "end": "2019-05-25 12:05:34.694669", "rc": 0, "start": "2019-05-25 12:05:33.211232", "stderr": "", "stderr_lines": [], "stdout": "sar-user staff_u s0 *", "stdout_lines": ["sar-user staff_u s0 *"]} TASK [Get local modifications - fcontext] ****************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/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:01.714405", "end": "2019-05-25 12:05:37.292373", "rc": 0, "start": "2019-05-25 12:05:35.577968", "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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/tests/tests_all_purge.yml:45 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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:07.466337", "end": "2019-05-25 12:06:03.109899", "rc": 0, "start": "2019-05-25 12:05:55.643562", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Purge all SELinux boolean local modifications] ********************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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:02.574403", "end": "2019-05-25 12:06:06.739316", "rc": 0, "start": "2019-05-25 12:06:04.164913", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpgx0pi3ud/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:118 TASK [Get local modifications - boolean] ******************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/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.597487", "end": "2019-05-25 12:06:09.466031", "rc": 0, "start": "2019-05-25 12:06:07.868544", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - port] ********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/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:01.430355", "end": "2019-05-25 12:06:11.869895", "rc": 0, "start": "2019-05-25 12:06:10.439540", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - login] ********************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/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.456637", "end": "2019-05-25 12:06:14.159998", "rc": 0, "start": "2019-05-25 12:06:12.703361", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - fcontext] ****************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/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:01.856876", "end": "2019-05-25 12:06:16.761367", "rc": 0, "start": "2019-05-25 12:06:14.904491", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Check if local modifications are empty - booleans] *************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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-2rt_ksox/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpgx0pi3ud/_setup.yml /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/_setup.yml PLAY [Fail when only localhost is available] *************************************************************************************************************************************************************** META: ran handlers TASK [debug] *********************************************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/_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/tmpgx0pi3ud/_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/tmpgx0pi3ud/tests/tests_all_transitions.yml PLAY [Test all the possible selinux_state transitions] ***************************************************************************************************************************************************** TASK [Gathering Facts] ************************************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/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-25", "day": "25", "epoch": "1558786018", "hour": "12", "iso8601": "2019-05-25T12:06:58Z", "iso8601_basic": "20190525T120658328663", "iso8601_basic_short": "20190525T120658", "iso8601_micro": "2019-05-25T12:06:58.328808Z", "minute": "06", "month": "05", "second": "58", "time": "12:06:58", "tz": "UTC", "tz_offset": "+0000", "weekday": "Saturday", "weekday_number": "6", "weeknumber": "20", "year": "2019"}, "ansible_default_ipv4": {"address": "10.0.2.15", "alias": "eth0", "broadcast": "10.0.2.255", "gateway": "10.0.2.2", "interface": "eth0", "macaddress": "52:54:00:12:34:56", "mtu": 1500, "netmask": "255.255.255.0", "network": "10.0.2.0", "type": "ether"}, "ansible_default_ipv6": {"address": "fec0::5054:ff:fe12:3456", "gateway": "fe80::2", "interface": "eth0", "macaddress": "52:54:00:12:34:56", "mtu": 1500, "prefix": "64", "scope": "site", "type": "ether"}, "ansible_device_links": {"ids": {"sr0": ["ata-QEMU_DVD-ROM_QM00003"]}, "labels": {"sr0": ["cidata"]}, "masters": {}, "uuids": {"sr0": ["2019-05-25-14-06-19-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-25-14-06-19-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 34822 22", "SSH_CONNECTION": "10.0.2.2 34822 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": "a820519c47fe4461b71ce827823cb0eb", "ansible_memfree_mb": 654, "ansible_memory_mb": {"nocache": {"free": 847, "used": 135}, "real": {"free": 654, "total": 982, "used": 328}, "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": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBM3reESYSuqKQKTTJR/E0cWygPYXAQRy3Vuw0z0PeTgG4m97JLud5KB1xMwe+C/+z0c9T0WK22hIClRjiiQjNy4=", "ansible_ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAIAdPSGUyI5YdORWHWAQSK+ZpWeTjej5sn9S5sjFilACI", "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABAQC6yl5xOm5YpJIt8E0xXzpzUvk/4U3PWlyp0SqhXTA2UT+nAFbsQEH3NAJRyx9Mdn++66dA/xdYi0/FTHsIBmyBAnmMut3ly3cFFj8UxwUZOADAHKvgo/y6FGO0TU1kejDMHqJEcMTRklSpamLSkmYlCPicwdfj6iJXC43DSBlhx81IQHCgQk13Dc5MjZdIcX/A5CWDx3SYqM7uGxt8CFYy9RN8yHcm71jbjc8ZeNYZB1D+F2TWfKPV6bIn+GXq7EsBTYcfEV+Gck0mM4hj8oob5Yutcl/ekk+pQCoHNiIgj8w4icI1FI09fFadBmGTqNgLgmIrEpzWjoYH/WehSbcV", "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": 34, "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/tmpgx0pi3ud/tests/tests_all_transitions.yml:11 included: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/tests/tests_all_transitions.yml:14 included: /tmp/tmpgx0pi3ud/tests/selinux_test_transitions.yml for /home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpgx0pi3ud/tests/selinux_test_transitions.yml for /home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpgx0pi3ud/tests/selinux_test_transitions.yml for /home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpgx0pi3ud/tests/selinux_test_transitions.yml for /home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpgx0pi3ud/tests/selinux_test_transitions.yml for /home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpgx0pi3ud/tests/selinux_test_transitions.yml for /home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpgx0pi3ud/tests/selinux_test_transitions.yml for /home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpgx0pi3ud/tests/selinux_test_transitions.yml for /home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/tests/selinux_test_transitions.yml:5 included: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/tests/selinux_apply_reboot.yml:3 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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.331886", "end": "2019-05-25 12:08:46.081684", "rc": 0, "start": "2019-05-25 12:08:42.749798", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpgx0pi3ud/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:118 TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/tests/selinux_test_transitions.yml:22 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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:02.853563", "end": "2019-05-25 12:09:09.576814", "rc": 0, "start": "2019-05-25 12:09:06.723251", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpgx0pi3ud/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:118 TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/tests/selinux_test_transitions.yml:34 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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:02.414078", "end": "2019-05-25 12:09:33.162445", "rc": 0, "start": "2019-05-25 12:09:30.748367", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpgx0pi3ud/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:118 TASK [apply the desired state if necessary with reboot] **************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/tests/selinux_test_transitions.yml:5 included: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/tests/selinux_apply_reboot.yml:3 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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:02.383723", "end": "2019-05-25 12:09:56.981384", "rc": 0, "start": "2019-05-25 12:09:54.597661", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpgx0pi3ud/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:118 TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/tests/selinux_test_transitions.yml:22 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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:02.323536", "end": "2019-05-25 12:10:19.825453", "rc": 0, "start": "2019-05-25 12:10:17.501917", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpgx0pi3ud/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:118 TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/tests/selinux_test_transitions.yml:34 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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:02.544218", "end": "2019-05-25 12:10:43.858591", "rc": 0, "start": "2019-05-25 12:10:41.314373", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpgx0pi3ud/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:118 TASK [apply the desired state if necessary with reboot] **************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/tests/selinux_test_transitions.yml:5 included: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/tests/selinux_apply_reboot.yml:3 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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:02.256683", "end": "2019-05-25 12:11:08.717049", "rc": 0, "start": "2019-05-25 12:11:06.460366", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpgx0pi3ud/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:118 TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/tests/selinux_test_transitions.yml:22 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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:02.697699", "end": "2019-05-25 12:11:31.383997", "rc": 0, "start": "2019-05-25 12:11:28.686298", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpgx0pi3ud/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:118 TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/tests/selinux_test_transitions.yml:44 included: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/tests/selinux_apply_reboot.yml:3 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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": "430851782730.12684", "changed": true, "finished": 0, "results_file": "/root/.ansible_async/430851782730.12684", "started": 1} TASK [wait for managed host to come back] ****************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/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": 30} TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/tests/selinux_test_transitions.yml:5 included: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/tests/selinux_apply_reboot.yml:3 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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": "879475530940.1208", "changed": true, "finished": 0, "results_file": "/root/.ansible_async/879475530940.1208", "started": 1} TASK [wait for managed host to come back] ****************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/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": 112} TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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": "enforcing", "mode": "enforcing", "policyvers": 31, "status": "enabled", "type": "targeted"}}, "changed": false} TASK [apply the role without parameters] ******************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/tests/selinux_test_transitions.yml:22 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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:02.986101", "end": "2019-05-25 12:15:03.524310", "rc": 0, "start": "2019-05-25 12:15:00.538209", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpgx0pi3ud/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:118 TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/tests/selinux_test_transitions.yml:34 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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:02.874415", "end": "2019-05-25 12:15:27.322488", "rc": 0, "start": "2019-05-25 12:15:24.448073", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpgx0pi3ud/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:118 TASK [apply the desired state if necessary with reboot] **************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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 -> enforcing" } TASK [setup the initial state] ***************************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tests/selinux_test_transitions.yml:5 included: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/tests/selinux_apply_reboot.yml:3 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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:02.673369", "end": "2019-05-25 12:15:51.288839", "rc": 0, "start": "2019-05-25 12:15:48.615470", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpgx0pi3ud/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:118 TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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": "enforcing", "mode": "enforcing", "policyvers": 31, "status": "enabled", "type": "targeted"}}, "changed": false} TASK [apply the role without parameters] ******************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/tests/selinux_test_transitions.yml:22 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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:02.739341", "end": "2019-05-25 12:16:14.420821", "rc": 0, "start": "2019-05-25 12:16:11.681480", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpgx0pi3ud/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:118 TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/tests/selinux_test_transitions.yml:34 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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": "enforcing"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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:02.695651", "end": "2019-05-25 12:16:38.606766", "rc": 0, "start": "2019-05-25 12:16:35.911115", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpgx0pi3ud/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:118 TASK [apply the desired state if necessary with reboot] **************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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 -> disabled" } TASK [setup the initial state] ***************************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tests/selinux_test_transitions.yml:5 included: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/tests/selinux_apply_reboot.yml:3 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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": "enforcing"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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:02.912715", "end": "2019-05-25 12:17:02.363308", "rc": 0, "start": "2019-05-25 12:16:59.450593", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpgx0pi3ud/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:118 TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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": "enforcing", "mode": "enforcing", "policyvers": 31, "status": "enabled", "type": "targeted"}}, "changed": false} TASK [apply the role without parameters] ******************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/tests/selinux_test_transitions.yml:22 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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:02.602510", "end": "2019-05-25 12:17:25.173981", "rc": 0, "start": "2019-05-25 12:17:22.571471", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpgx0pi3ud/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:118 TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/tests/selinux_test_transitions.yml:44 included: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/tests/selinux_apply_reboot.yml:3 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/tasks/main.yml:31 [WARNING]: SELinux state temporarily changed from 'enforcing' to 'permissive'. State change will take effect next reboot. changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "configfile": "/etc/selinux/config", "msg": "Config SELinux state changed from 'enforcing' to 'disabled'", "policy": "targeted", "reboot_required": true, "state": "disabled"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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": "595305325775.4378", "changed": true, "finished": 0, "results_file": "/root/.ansible_async/595305325775.4378", "started": 1} TASK [wait for managed host to come back] ****************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/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": 29} TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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 disabled -> permissive" } TASK [setup the initial state] ***************************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tests/selinux_test_transitions.yml:5 included: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/tests/selinux_apply_reboot.yml:3 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/tasks/main.yml:38 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": "disabled"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/tasks/main.yml:56 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "msg": "SELinux is disabled on system - some SELinux modules can crash" } TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/tasks/main.yml:80 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 SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpgx0pi3ud/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:118 TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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": {"status": "disabled"}}, "changed": false} TASK [apply the role without parameters] ******************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/tests/selinux_test_transitions.yml:22 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/tasks/main.yml:56 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "msg": "SELinux is disabled on system - some SELinux modules can crash" } TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/tasks/main.yml:80 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 SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpgx0pi3ud/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:118 TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/tests/selinux_test_transitions.yml:44 included: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/tests/selinux_apply_reboot.yml:3 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/tasks/main.yml:38 [WARNING]: Reboot is required to set SELinux state to 'permissive' 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 'permissive'", "policy": "targeted", "reboot_required": true, "state": "permissive"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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": "947619329450.1956", "changed": true, "finished": 0, "results_file": "/root/.ansible_async/947619329450.1956", "started": 1} TASK [wait for managed host to come back] ****************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/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": 108} TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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 disabled -> enforcing" } TASK [setup the initial state] ***************************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tests/selinux_test_transitions.yml:5 included: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/tests/selinux_apply_reboot.yml:3 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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": "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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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": "492071078256.1212", "changed": true, "finished": 0, "results_file": "/root/.ansible_async/492071078256.1212", "started": 1} TASK [wait for managed host to come back] ****************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/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": 29} TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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": {"status": "disabled"}}, "changed": false} TASK [apply the role without parameters] ******************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/tests/selinux_test_transitions.yml:22 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/tasks/main.yml:56 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "msg": "SELinux is disabled on system - some SELinux modules can crash" } TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/tasks/main.yml:80 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 SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpgx0pi3ud/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:118 TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/tests/selinux_test_transitions.yml:44 included: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/tests/selinux_apply_reboot.yml:3 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/tasks/main.yml:38 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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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": "124341681997.1544", "changed": true, "finished": 0, "results_file": "/root/.ansible_async/124341681997.1544", "started": 1} TASK [wait for managed host to come back] ****************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/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": 112} TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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 disabled -> disabled" } TASK [setup the initial state] ***************************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tests/selinux_test_transitions.yml:5 included: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/tests/selinux_apply_reboot.yml:3 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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": "Config SELinux state changed from 'enforcing' to 'disabled'", "policy": "targeted", "reboot_required": true, "state": "disabled"} TASK [selinux : Set permanent SELinux state if disabled] *************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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": "956861006938.1217", "changed": true, "finished": 0, "results_file": "/root/.ansible_async/956861006938.1217", "started": 1} TASK [wait for managed host to come back] ****************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/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": 29} TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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": {"status": "disabled"}}, "changed": false} TASK [apply the role without parameters] ******************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/tests/selinux_test_transitions.yml:22 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/tasks/main.yml:56 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "msg": "SELinux is disabled on system - some SELinux modules can crash" } TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/tasks/main.yml:80 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 SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpgx0pi3ud/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:118 TASK [refresh facts] *************************************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/tests/selinux_test_transitions.yml:34 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/tasks/main.yml:38 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": "disabled"} TASK [selinux : Set ansible facts if needed] *************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/tasks/main.yml:56 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "msg": "SELinux is disabled on system - some SELinux modules can crash" } TASK [selinux : Drop all local modifications] ************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/tasks/main.yml:80 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 SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpgx0pi3ud/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:118 TASK [apply the desired state if necessary with reboot] **************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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 [restore config] ************************************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tests/tests_all_transitions.yml:23 included: /tmp/tmpgx0pi3ud/tests/selinux_config_restore.yml for /home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Restore original /etc/selinux/config] **************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tests/selinux_config_restore.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", "gid": 0, "group": "root", "md5sum": "eab350e0c5241d4394c2099bf86e9312", "mode": "0644", "owner": "root", "size": 548, "src": "/etc/selinux/config.test_selinux_save", "state": "file", "uid": 0} TASK [Remove /etc/selinux/config backup] ******************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/tests/selinux_config_restore.yml:8 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "path": "/etc/selinux/config.test_selinux_save", "state": "absent"} TASK [restart managed host] ******************************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tests/selinux_config_restore.yml:15 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_job_id": "971808444096.1777", "changed": true, "finished": 0, "results_file": "/root/.ansible_async/971808444096.1777", "started": 1} TASK [wait for managed host to come back] ****************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tests/selinux_config_restore.yml:21 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "elapsed": 111} 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=281 changed=39 unreachable=0 failed=0 skipped=349 rescued=7 ignored=0 + cd /tmp/tmpgx0pi3ud/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-2rt_ksox/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpgx0pi3ud/_setup.yml /tmp/tmpgx0pi3ud/tests/tests_boolean.yml ansible-playbook 2.8.0 config file = /home/till/.ansible.cfg configured module search path = ['/home/till/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.7/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.7.3 (default, May 11 2019, 00:38:04) [GCC 9.1.1 20190503 (Red Hat 9.1.1-1)] Using /home/till/.ansible.cfg as config file PLAYBOOK: _setup.yml *************************************************************************************************************************************************************************************** 1 plays in /tmp/tmpgx0pi3ud/_setup.yml PLAY [Fail when only localhost is available] *************************************************************************************************************************************************************** META: ran handlers TASK [debug] *********************************************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/_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/tmpgx0pi3ud/_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/tmpgx0pi3ud/tests/set_selinux_variables.yml statically imported: /tmp/tmpgx0pi3ud/tests/set_selinux_variables.yml statically imported: /tmp/tmpgx0pi3ud/tests/set_selinux_variables.yml PLAYBOOK: tests_boolean.yml ******************************************************************************************************************************************************************************** 1 plays in /tmp/tmpgx0pi3ud/tests/tests_boolean.yml PLAY [Check if selinux role sets SELinux booleans] ********************************************************************************************************************************************************* TASK [Gathering Facts] ************************************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/tests/tests_boolean.yml:2 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-25", "day": "25", "epoch": "1558787329", "hour": "12", "iso8601": "2019-05-25T12:28:49Z", "iso8601_basic": "20190525T122849195913", "iso8601_basic_short": "20190525T122849", "iso8601_micro": "2019-05-25T12:28:49.196049Z", "minute": "28", "month": "05", "second": "49", "time": "12:28:49", "tz": "UTC", "tz_offset": "+0000", "weekday": "Saturday", "weekday_number": "6", "weeknumber": "20", "year": "2019"}, "ansible_default_ipv4": {"address": "10.0.2.15", "alias": "eth0", "broadcast": "10.0.2.255", "gateway": "10.0.2.2", "interface": "eth0", "macaddress": "52:54:00:12:34:56", "mtu": 1500, "netmask": "255.255.255.0", "network": "10.0.2.0", "type": "ether"}, "ansible_default_ipv6": {"address": "fec0::5054:ff:fe12:3456", "gateway": "fe80::2", "interface": "eth0", "macaddress": "52:54:00:12:34:56", "mtu": 1500, "prefix": "64", "scope": "site", "type": "ether"}, "ansible_device_links": {"ids": {"sr0": ["ata-QEMU_DVD-ROM_QM00003"]}, "labels": {"sr0": ["cidata"]}, "masters": {}, "uuids": {"sr0": ["2019-05-25-14-28-11-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-25-14-28-11-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 44938 22", "SSH_CONNECTION": "10.0.2.2 44938 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": "7f358bb2ccff468986497e167e9dc5b5", "ansible_memfree_mb": 651, "ansible_memory_mb": {"nocache": {"free": 844, "used": 138}, "real": {"free": 651, "total": 982, "used": 331}, "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": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBPDnivQoEqfC3sT2V5MgXcUDc6bZAnIfCIhjKHzl6nyviGZXw1iaHGWgBQC1sfDgShU8rfYxRW1ATwYPDRX7C30=", "ansible_ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAILDpErd2kIqQtVovf24vPWL/VUhKRkmPQ46Q7zKNNTQz", "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABAQDaPrvQ+WH3e2KJZRKz72DTrZos1KTYKvc5kTust/huE8V/ZpKPIETyCbprHOYXa/5TH7J0+/bh0hOZVpNDihQDoXlsel7AYYsG6eVaUqcdUoqblK+rO+/ZK/4sJhXiy0jtxl+f5QygYaBbM/Gqv/kCawMi/XREnpFjiv4OL1gPyT0OR6mKtgex25rKGL/khj62M8E3o5IJ3+N9VsBSA3lJh8Kj+e+ZB6RSqF6xyDMPwmdWw5q8DZulZyNKCFYrmzUkjwcjNJDckk4CU3GFEe2wJeKNPnz85pJ1IzEYfryBhgF9IbKjtfNalRDFOgtlvnRgwTCRGybN+XtE+3kOKyL7", "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": 35, "ansible_user_dir": "/root", "ansible_user_gecos": "root", "ansible_user_gid": 0, "ansible_user_id": "root", "ansible_user_shell": "/bin/bash", "ansible_user_uid": 0, "ansible_userspace_architecture": "x86_64", "ansible_userspace_bits": "64", "ansible_virtualization_role": "guest", "ansible_virtualization_type": "kvm", "gather_subset": ["all"], "module_setup": true}, "changed": false} META: ran handlers TASK [initial changes] ************************************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/tests/tests_boolean.yml:7 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/tasks/main.yml:64 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": "/usr/sbin/semanage boolean -D", "delta": "0:00:09.576238", "end": "2019-05-25 12:30:34.047302", "rc": 0, "start": "2019-05-25 12:30:24.471064", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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:02.542507", "end": "2019-05-25 12:30:37.582394", "rc": 0, "start": "2019-05-25 12:30:35.039887", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:84 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'name': 'samba_enable_home_dirs', 'state': 'on', 'persistent': 'yes'}) => {"ansible_loop_var": "item", "changed": true, "item": {"name": "samba_enable_home_dirs", "persistent": "yes", "state": "on"}, "name": "samba_enable_home_dirs", "persistent": true, "state": true} TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpgx0pi3ud/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:118 TASK [Get local modifications - boolean] ******************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/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.364553", "end": "2019-05-25 12:30:43.730421", "rc": 0, "start": "2019-05-25 12:30:42.365868", "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/tmpgx0pi3ud/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:01.308851", "end": "2019-05-25 12:30:45.726723", "rc": 0, "start": "2019-05-25 12:30:44.417872", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - login] ********************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/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.520615", "end": "2019-05-25 12:30:48.090674", "rc": 0, "start": "2019-05-25 12:30:46.570059", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - fcontext] ****************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/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:01.698396", "end": "2019-05-25 12:30:50.548136", "rc": 0, "start": "2019-05-25 12:30:48.849740", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [save state after initial changes and before other changes] ******************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/tests/tests_boolean.yml:16 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"boolean_before": ["samba_enable_home_dirs (on , on) Allow samba to enable home dirs"]}, "changed": false} TASK [Check if there are SELinux boolean changes] ********************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tests/tests_boolean.yml:20 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [subsequent changes] ********************************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tests/tests_boolean.yml:24 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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:02.361685", "end": "2019-05-25 12:31:11.921621", "rc": 0, "start": "2019-05-25 12:31:09.559936", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:84 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'name': 'httpd_can_network_connect', 'state': 'on', 'persistent': 'yes'}) => {"ansible_loop_var": "item", "changed": true, "item": {"name": "httpd_can_network_connect", "persistent": "yes", "state": "on"}, "name": "httpd_can_network_connect", "persistent": true, "state": true} TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpgx0pi3ud/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:118 TASK [Get local modifications - boolean] ******************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/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.546150", "end": "2019-05-25 12:31:18.268255", "rc": 0, "start": "2019-05-25 12:31:16.722105", "stderr": "", "stderr_lines": [], "stdout": "httpd_can_network_connect (on , on) Allow httpd to can network connect\nsamba_enable_home_dirs (on , on) Allow samba to enable home dirs", "stdout_lines": ["httpd_can_network_connect (on , on) Allow httpd to can network connect", "samba_enable_home_dirs (on , on) Allow samba to enable home dirs"]} TASK [Get local modifications - port] ********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/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:01.419180", "end": "2019-05-25 12:31:20.474226", "rc": 0, "start": "2019-05-25 12:31:19.055046", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - login] ********************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/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.420810", "end": "2019-05-25 12:31:22.777108", "rc": 0, "start": "2019-05-25 12:31:21.356298", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - fcontext] ****************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/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:01.822131", "end": "2019-05-25 12:31:25.572159", "rc": 0, "start": "2019-05-25 12:31:23.750028", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [save state after other changes] ********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tests/tests_boolean.yml:33 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"boolean_after": ["httpd_can_network_connect (on , on) Allow httpd to can network connect", "samba_enable_home_dirs (on , on) Allow samba to enable home dirs"]}, "changed": false} TASK [Check if there are SELinux boolean changes] ********************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tests/tests_boolean.yml:37 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [include_role : selinux] ****************************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tests/tests_boolean.yml:41 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/tasks/main.yml:64 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": "/usr/sbin/semanage boolean -D", "delta": "0:00:06.233248", "end": "2019-05-25 12:31:50.337142", "rc": 0, "start": "2019-05-25 12:31:44.103894", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Purge all SELinux file context local modifications] **************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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:02.836739", "end": "2019-05-25 12:31:54.129886", "rc": 0, "start": "2019-05-25 12:31:51.293147", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpgx0pi3ud/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:118 TASK [Get local modifications - boolean] ******************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/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.250714", "end": "2019-05-25 12:31:56.546300", "rc": 0, "start": "2019-05-25 12:31:55.295586", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - port] ********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/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:01.312656", "end": "2019-05-25 12:31:58.791271", "rc": 0, "start": "2019-05-25 12:31:57.478615", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - login] ********************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/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.580187", "end": "2019-05-25 12:32:01.367750", "rc": 0, "start": "2019-05-25 12:31:59.787563", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - fcontext] ****************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/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.059779", "end": "2019-05-25 12:32:04.411582", "rc": 0, "start": "2019-05-25 12:32:02.351803", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Check if there are no SELinux boolean mapping changes] *********************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tests/tests_boolean.yml:47 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } 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=38 changed=20 unreachable=0 failed=0 skipped=45 rescued=0 ignored=0 + cd /tmp/tmpgx0pi3ud/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-2rt_ksox/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpgx0pi3ud/_setup.yml /tmp/tmpgx0pi3ud/tests/tests_fcontext.yml ansible-playbook 2.8.0 config file = /home/till/.ansible.cfg configured module search path = ['/home/till/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.7/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.7.3 (default, May 11 2019, 00:38:04) [GCC 9.1.1 20190503 (Red Hat 9.1.1-1)] Using /home/till/.ansible.cfg as config file PLAYBOOK: _setup.yml *************************************************************************************************************************************************************************************** 1 plays in /tmp/tmpgx0pi3ud/_setup.yml PLAY [Fail when only localhost is available] *************************************************************************************************************************************************************** META: ran handlers TASK [debug] *********************************************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/_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/tmpgx0pi3ud/_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/tmpgx0pi3ud/tests/set_selinux_variables.yml statically imported: /tmp/tmpgx0pi3ud/tests/set_selinux_variables.yml statically imported: /tmp/tmpgx0pi3ud/tests/set_selinux_variables.yml statically imported: /tmp/tmpgx0pi3ud/tests/set_selinux_variables.yml PLAYBOOK: tests_fcontext.yml ******************************************************************************************************************************************************************************* 1 plays in /tmp/tmpgx0pi3ud/tests/tests_fcontext.yml PLAY [Check if selinux role sets SELinux fcontext mappings] ************************************************************************************************************************************************ TASK [Gathering Facts] ************************************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/tests/tests_fcontext.yml:2 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-25", "day": "25", "epoch": "1558787563", "hour": "12", "iso8601": "2019-05-25T12:32:43Z", "iso8601_basic": "20190525T123243111347", "iso8601_basic_short": "20190525T123243", "iso8601_micro": "2019-05-25T12:32:43.111551Z", "minute": "32", "month": "05", "second": "43", "time": "12:32:43", "tz": "UTC", "tz_offset": "+0000", "weekday": "Saturday", "weekday_number": "6", "weeknumber": "20", "year": "2019"}, "ansible_default_ipv4": {"address": "10.0.2.15", "alias": "eth0", "broadcast": "10.0.2.255", "gateway": "10.0.2.2", "interface": "eth0", "macaddress": "52:54:00:12:34:56", "mtu": 1500, "netmask": "255.255.255.0", "network": "10.0.2.0", "type": "ether"}, "ansible_default_ipv6": {"address": "fec0::5054:ff:fe12:3456", "gateway": "fe80::2", "interface": "eth0", "macaddress": "52:54:00:12:34:56", "mtu": 1500, "prefix": "64", "scope": "site", "type": "ether"}, "ansible_device_links": {"ids": {"sr0": ["ata-QEMU_DVD-ROM_QM00003"]}, "labels": {"sr0": ["cidata"]}, "masters": {}, "uuids": {"sr0": ["2019-05-25-14-32-05-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-25-14-32-05-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 36368 22", "SSH_CONNECTION": "10.0.2.2 36368 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": "f99011790eee436b9100309e9d02ca64", "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": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBLMi9IXFYBDpjHEWZWvGuXup9O2/FRkFBRLmU809z5bKiGQuQwdhDhZFIZJzydA4bKixc+jXBde9ahv2/XmAv4A=", "ansible_ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAIGz7PgmsA3WbzbEf9ps07nUYQavYzmR+lM+In4G9Sgsu", "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABAQC4sYSBmVCaiRvXeKNfGF1n8cMEcViujTCp53nKW6+0/80UmMnRfbC2peyaYCUEbvnqA9AXuGTLKF3NISsf/ph2T8RTdckoO1BQ6g44pagKxX+fL36xFDghlTjKxTj4sm09wH8raLYWgZZ79vjqIqZi9VWgbThJYS4svy8TJCzLNle9sryE1bBM5y0BwaIRGJKnflqRzOsCZL7pmizfeHeOWZS5G+cBxCQsBA+VHt2vwMnX51Ti0VND2Mi4M0fMt2qSyFdduLNHBD7Hzzi3JIm/glmA2DQ6gpvNLmj5uW1rOavluuLNYFADf7Kp4vnDQDAuPxDJVL6vetDtQ+04p1jh", "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": 34, "ansible_user_dir": "/root", "ansible_user_gecos": "root", "ansible_user_gid": 0, "ansible_user_id": "root", "ansible_user_shell": "/bin/bash", "ansible_user_uid": 0, "ansible_userspace_architecture": "x86_64", "ansible_userspace_bits": "64", "ansible_virtualization_role": "guest", "ansible_virtualization_type": "kvm", "gather_subset": ["all"], "module_setup": true}, "changed": false} META: ran handlers TASK [initial changes] ************************************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/tests/tests_fcontext.yml:8 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/tasks/main.yml:68 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": "/usr/sbin/semanage fcontext -D", "delta": "0:00:09.060610", "end": "2019-05-25 12:34:24.217875", "rc": 0, "start": "2019-05-25 12:34:15.157265", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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:02.888111", "end": "2019-05-25 12:34:28.023070", "rc": 0, "start": "2019-05-25 12:34:25.134959", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:97 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'target': '/tmp/test_dir1(/.*)?', 'setype': 'user_home_dir_t', 'ftype': 'd'}) => {"ansible_loop_var": "item", "changed": true, "ftype": "d", "item": {"ftype": "d", "setype": "user_home_dir_t", "target": "/tmp/test_dir1(/.*)?"}, "serange": "s0", "setype": "user_home_dir_t", "seuser": "system_u", "state": "present", "target": "/tmp/test_dir1(/.*)?"} TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpgx0pi3ud/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:118 TASK [Get local modifications - boolean] ******************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/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.264846", "end": "2019-05-25 12:34:37.785986", "rc": 0, "start": "2019-05-25 12:34:36.521140", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - port] ********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/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:01.551988", "end": "2019-05-25 12:34:40.149174", "rc": 0, "start": "2019-05-25 12:34:38.597186", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - login] ********************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/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.371274", "end": "2019-05-25 12:34:42.257575", "rc": 0, "start": "2019-05-25 12:34:40.886301", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - fcontext] ****************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/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:01.716453", "end": "2019-05-25 12:34:44.886413", "rc": 0, "start": "2019-05-25 12:34:43.169960", "stderr": "", "stderr_lines": [], "stdout": "/tmp/test_dir1(/.*)? directory system_u:object_r:user_home_dir_t:s0 ", "stdout_lines": ["/tmp/test_dir1(/.*)? directory system_u:object_r:user_home_dir_t:s0 "]} TASK [save state after initial changes and before other changes] ******************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/tests/tests_fcontext.yml:17 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"fcontext_before": "/tmp/test_dir1(/.*)? directory system_u:object_r:user_home_dir_t:s0 "}, "changed": false} TASK [Check if there are SELinux fcontext mapping changes] ************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/tests/tests_fcontext.yml:21 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [subsequent changes] ********************************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tests/tests_fcontext.yml:25 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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:02.380832", "end": "2019-05-25 12:35:06.061082", "rc": 0, "start": "2019-05-25 12:35:03.680250", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:97 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'target': '/tmp/test_dir2(/.*)?', 'setype': 'user_home_dir_t', 'ftype': 'd'}) => {"ansible_loop_var": "item", "changed": true, "ftype": "d", "item": {"ftype": "d", "setype": "user_home_dir_t", "target": "/tmp/test_dir2(/.*)?"}, "serange": "s0", "setype": "user_home_dir_t", "seuser": "system_u", "state": "present", "target": "/tmp/test_dir2(/.*)?"} TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpgx0pi3ud/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:118 TASK [Get local modifications - boolean] ******************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/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.516617", "end": "2019-05-25 12:35:15.447703", "rc": 0, "start": "2019-05-25 12:35:13.931086", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - port] ********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/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:01.486498", "end": "2019-05-25 12:35:17.725934", "rc": 0, "start": "2019-05-25 12:35:16.239436", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - login] ********************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/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.571079", "end": "2019-05-25 12:35:20.175111", "rc": 0, "start": "2019-05-25 12:35:18.604032", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - fcontext] ****************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/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:01.451032", "end": "2019-05-25 12:35:22.547178", "rc": 0, "start": "2019-05-25 12:35:21.096146", "stderr": "", "stderr_lines": [], "stdout": "/tmp/test_dir1(/.*)? directory system_u:object_r:user_home_dir_t:s0 \n/tmp/test_dir2(/.*)? directory system_u:object_r:user_home_dir_t:s0 ", "stdout_lines": ["/tmp/test_dir1(/.*)? directory system_u:object_r:user_home_dir_t:s0 ", "/tmp/test_dir2(/.*)? directory system_u:object_r:user_home_dir_t:s0 "]} TASK [save state after other changes] ********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tests/tests_fcontext.yml:34 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"fcontext_after": "/tmp/test_dir1(/.*)? directory system_u:object_r:user_home_dir_t:s0 \n/tmp/test_dir2(/.*)? directory system_u:object_r:user_home_dir_t:s0 "}, "changed": false} TASK [Check if there are SELinux fcontext mapping changes] ************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/tests/tests_fcontext.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 [revert subsequent changes] *************************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tests/tests_fcontext.yml:42 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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:02.814440", "end": "2019-05-25 12:35:43.447519", "rc": 0, "start": "2019-05-25 12:35:40.633079", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:97 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'target': '/tmp/test_dir2(/.*)?', 'setype': 'user_home_dir_t', 'ftype': 'd', 'state': 'absent'}) => {"ansible_loop_var": "item", "changed": true, "ftype": "d", "item": {"ftype": "d", "setype": "user_home_dir_t", "state": "absent", "target": "/tmp/test_dir2(/.*)?"}, "setype": "user_home_dir_t", "state": "absent", "target": "/tmp/test_dir2(/.*)?"} TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpgx0pi3ud/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:118 TASK [Get local modifications - boolean] ******************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/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.542742", "end": "2019-05-25 12:35:53.153307", "rc": 0, "start": "2019-05-25 12:35:51.610565", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - port] ********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/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:01.462589", "end": "2019-05-25 12:35:55.410901", "rc": 0, "start": "2019-05-25 12:35:53.948312", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - login] ********************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/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.309860", "end": "2019-05-25 12:35:57.542152", "rc": 0, "start": "2019-05-25 12:35:56.232292", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - fcontext] ****************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/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:01.844560", "end": "2019-05-25 12:36:00.298178", "rc": 0, "start": "2019-05-25 12:35:58.453618", "stderr": "", "stderr_lines": [], "stdout": "/tmp/test_dir1(/.*)? directory system_u:object_r:user_home_dir_t:s0 ", "stdout_lines": ["/tmp/test_dir1(/.*)? directory system_u:object_r:user_home_dir_t:s0 "]} TASK [save state after reverting other changes] ************************************************************************************************************************************************************ task path: /tmp/tmpgx0pi3ud/tests/tests_fcontext.yml:51 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"fcontext_after": "/tmp/test_dir1(/.*)? directory system_u:object_r:user_home_dir_t:s0 "}, "changed": false} TASK [Check if SELinux fcontext mapping is as before] ****************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tests/tests_fcontext.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 [include_role : selinux] ****************************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tests/tests_fcontext.yml:59 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/tasks/main.yml:68 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": "/usr/sbin/semanage fcontext -D", "delta": "0:00:05.709190", "end": "2019-05-25 12:36:24.905571", "rc": 0, "start": "2019-05-25 12:36:19.196381", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Purge all SELinux port local modifications] ************************************************************************************************************************************************ task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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:02.640585", "end": "2019-05-25 12:36:28.462148", "rc": 0, "start": "2019-05-25 12:36:25.821563", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpgx0pi3ud/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:118 TASK [Get local modifications - boolean] ******************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/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.443359", "end": "2019-05-25 12:36:31.011717", "rc": 0, "start": "2019-05-25 12:36:29.568358", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - port] ********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/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:01.549439", "end": "2019-05-25 12:36:33.355654", "rc": 0, "start": "2019-05-25 12:36:31.806215", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - login] ********************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/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.288073", "end": "2019-05-25 12:36:35.502340", "rc": 0, "start": "2019-05-25 12:36:34.214267", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - fcontext] ****************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/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:01.582818", "end": "2019-05-25 12:36:37.857920", "rc": 0, "start": "2019-05-25 12:36:36.275102", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Check if there are no SELinux fcontext mapping changes] ********************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tests/tests_fcontext.yml:65 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } 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=50 changed=26 unreachable=0 failed=0 skipped=60 rescued=0 ignored=0 + cd /tmp/tmpgx0pi3ud/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-2rt_ksox/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpgx0pi3ud/_setup.yml /tmp/tmpgx0pi3ud/tests/tests_login.yml ansible-playbook 2.8.0 config file = /home/till/.ansible.cfg configured module search path = ['/home/till/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.7/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.7.3 (default, May 11 2019, 00:38:04) [GCC 9.1.1 20190503 (Red Hat 9.1.1-1)] Using /home/till/.ansible.cfg as config file PLAYBOOK: _setup.yml *************************************************************************************************************************************************************************************** 1 plays in /tmp/tmpgx0pi3ud/_setup.yml PLAY [Fail when only localhost is available] *************************************************************************************************************************************************************** META: ran handlers TASK [debug] *********************************************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/_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/tmpgx0pi3ud/_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/tmpgx0pi3ud/tests/set_selinux_variables.yml statically imported: /tmp/tmpgx0pi3ud/tests/set_selinux_variables.yml statically imported: /tmp/tmpgx0pi3ud/tests/set_selinux_variables.yml statically imported: /tmp/tmpgx0pi3ud/tests/set_selinux_variables.yml PLAYBOOK: tests_login.yml ********************************************************************************************************************************************************************************** 1 plays in /tmp/tmpgx0pi3ud/tests/tests_login.yml PLAY [Check if selinux role sets SELinux login mappings] *************************************************************************************************************************************************** TASK [Gathering Facts] ************************************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/tests/tests_login.yml:2 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-25", "day": "25", "epoch": "1558787837", "hour": "12", "iso8601": "2019-05-25T12:37:17Z", "iso8601_basic": "20190525T123717704558", "iso8601_basic_short": "20190525T123717", "iso8601_micro": "2019-05-25T12:37:17.704864Z", "minute": "37", "month": "05", "second": "17", "time": "12:37:17", "tz": "UTC", "tz_offset": "+0000", "weekday": "Saturday", "weekday_number": "6", "weeknumber": "20", "year": "2019"}, "ansible_default_ipv4": {"address": "10.0.2.15", "alias": "eth0", "broadcast": "10.0.2.255", "gateway": "10.0.2.2", "interface": "eth0", "macaddress": "52:54:00:12:34:56", "mtu": 1500, "netmask": "255.255.255.0", "network": "10.0.2.0", "type": "ether"}, "ansible_default_ipv6": {"address": "fec0::5054:ff:fe12:3456", "gateway": "fe80::2", "interface": "eth0", "macaddress": "52:54:00:12:34:56", "mtu": 1500, "prefix": "64", "scope": "site", "type": "ether"}, "ansible_device_links": {"ids": {"sr0": ["ata-QEMU_DVD-ROM_QM00003"]}, "labels": {"sr0": ["cidata"]}, "masters": {}, "uuids": {"sr0": ["2019-05-25-14-36-39-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-25-14-36-39-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 55576 22", "SSH_CONNECTION": "10.0.2.2 55576 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": "089280d2277e47bba6a4f39b1554ef0c", "ansible_memfree_mb": 654, "ansible_memory_mb": {"nocache": {"free": 847, "used": 135}, "real": {"free": 654, "total": 982, "used": 328}, "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": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBGQlwqgXFFYnxkAUvHZMRX1TSg+did3GDoKEpfHRmlADZIHZIe7FOGbDGZbWx2JaS6YQrL/iQOUxIJgPQeSEv1E=", "ansible_ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAIJYMz7AS/V5oBTNRY3eCJupbGrhtZzHraaH/086kbnDb", "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABAQDQdkOOjQjhgs4trPOuS+MuR5RjqOfDMzVUUoiVYbL5MnFDNE5nfYRPk1QSg+Z3DaehYc5vLOq9HthNmRQT66KbwDfR9fMCnBjNCNXwNJ2wHm7TiqVOoKzv4HuAULj5+eWJ780VLdiEP1Nf/r2uwsQPJhaPH3XiXaLw76VGBNxYQwERlPjrruTaMYl0HCjKFiWSRYEoKw9qlO4HbrNQ3WgEY+0p+6xbN3jGgax8KZZNbWCwnwCWCO88Oo7WGuHT3Mcfc9sXErd8bgJk3LqRdtKaoP3br28CBcc7D1CFYN28JOQuZEbMpGUxS0JvGN06Tgy9ZIcUlmhQO6ds65aHy2+p", "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": 35, "ansible_user_dir": "/root", "ansible_user_gecos": "root", "ansible_user_gid": 0, "ansible_user_id": "root", "ansible_user_shell": "/bin/bash", "ansible_user_uid": 0, "ansible_userspace_architecture": "x86_64", "ansible_userspace_bits": "64", "ansible_virtualization_role": "guest", "ansible_virtualization_type": "kvm", "gather_subset": ["all"], "module_setup": true}, "changed": false} META: ran handlers TASK [Add a System Api Roles SELinux User] ***************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tests/tests_login.yml:7 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "comment": "System Api Roles SELinux User", "create_home": true, "group": 1001, "home": "/home/sar-user", "name": "sar-user", "shell": "/bin/bash", "state": "present", "system": false, "uid": 1001} TASK [initial changes] ************************************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/tests/tests_login.yml:12 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/tasks/main.yml:76 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": "/usr/sbin/semanage login -D", "delta": "0:00:09.369975", "end": "2019-05-25 12:39:05.859560", "rc": 0, "start": "2019-05-25 12:38:56.489585", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/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:02.804051", "end": "2019-05-25 12:39:09.502840", "rc": 0, "start": "2019-05-25 12:39:06.698789", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpgx0pi3ud/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:118 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'login': 'sar-user', 'seuser': 'staff_u', 'serange': 's0-s0:c0.c1023', 'state': 'present'}) => {"ansible_loop_var": "item", "changed": true, "item": {"login": "sar-user", "serange": "s0-s0:c0.c1023", "seuser": "staff_u", "state": "present"}, "login": "sar-user", "serange": "s0-s0:c0.c1023", "seuser": "staff_u", "state": "present"} TASK [Get local modifications - boolean] ******************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/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.270596", "end": "2019-05-25 12:39:16.566329", "rc": 0, "start": "2019-05-25 12:39:15.295733", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - port] ********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/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:01.467894", "end": "2019-05-25 12:39:18.889736", "rc": 0, "start": "2019-05-25 12:39:17.421842", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - login] ********************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/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.426053", "end": "2019-05-25 12:39:21.159090", "rc": 0, "start": "2019-05-25 12:39:19.733037", "stderr": "", "stderr_lines": [], "stdout": "sar-user staff_u s0-s0:c0.c1023 *", "stdout_lines": ["sar-user staff_u s0-s0:c0.c1023 *"]} TASK [Get local modifications - fcontext] ****************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/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:01.547575", "end": "2019-05-25 12:39:23.481451", "rc": 0, "start": "2019-05-25 12:39:21.933876", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [save state after initial changes and before other changes] ******************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/tests/tests_login.yml:22 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"login_before": "sar-user staff_u s0-s0:c0.c1023 *"}, "changed": false} TASK [Check if there are SELinux login mapping changes] **************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tests/tests_login.yml:26 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [subsequent changes] ********************************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tests/tests_login.yml:30 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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:02.784311", "end": "2019-05-25 12:39:44.496508", "rc": 0, "start": "2019-05-25 12:39:41.712197", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpgx0pi3ud/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:118 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'login': '__default__', 'seuser': 'staff_u', 'serange': 's0-s0:c0.c1023', 'state': 'present'}) => {"ansible_loop_var": "item", "changed": false, "item": {"login": "__default__", "serange": "s0-s0:c0.c1023", "seuser": "staff_u", "state": "present"}, "login": "__default__", "serange": "s0-s0:c0.c1023", "seuser": "staff_u", "state": "present"} TASK [Get local modifications - boolean] ******************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/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.482158", "end": "2019-05-25 12:39:51.171234", "rc": 0, "start": "2019-05-25 12:39:49.689076", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - port] ********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/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:01.538606", "end": "2019-05-25 12:39:53.409373", "rc": 0, "start": "2019-05-25 12:39:51.870767", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - login] ********************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/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.270918", "end": "2019-05-25 12:39:55.496861", "rc": 0, "start": "2019-05-25 12:39:54.225943", "stderr": "", "stderr_lines": [], "stdout": "__default__ staff_u s0-s0:c0.c1023 *\nsar-user staff_u s0-s0:c0.c1023 *", "stdout_lines": ["__default__ staff_u s0-s0:c0.c1023 *", "sar-user staff_u s0-s0:c0.c1023 *"]} TASK [Get local modifications - fcontext] ****************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/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:01.545746", "end": "2019-05-25 12:39:57.799352", "rc": 0, "start": "2019-05-25 12:39:56.253606", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [save state after other changes] ********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tests/tests_login.yml:40 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"login_after": "__default__ staff_u s0-s0:c0.c1023 *\nsar-user staff_u s0-s0:c0.c1023 *"}, "changed": false} TASK [Check if there are SELinux login mapping changes] **************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tests/tests_login.yml:44 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [revert subsequent changes] *************************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tests/tests_login.yml:48 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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:02.774365", "end": "2019-05-25 12:40:19.969867", "rc": 0, "start": "2019-05-25 12:40:17.195502", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpgx0pi3ud/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:118 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'login': '__default__', 'seuser': 'staff_u', 'serange': 's0-s0:c0.c1023', 'state': 'absent'}) => {"ansible_loop_var": "item", "changed": true, "item": {"login": "__default__", "serange": "s0-s0:c0.c1023", "seuser": "staff_u", "state": "absent"}, "login": "__default__", "serange": "s0-s0:c0.c1023", "seuser": "staff_u", "state": "absent"} TASK [Get local modifications - boolean] ******************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/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.368422", "end": "2019-05-25 12:40:26.819977", "rc": 0, "start": "2019-05-25 12:40:25.451555", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - port] ********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/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:01.629504", "end": "2019-05-25 12:40:29.217707", "rc": 0, "start": "2019-05-25 12:40:27.588203", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - login] ********************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/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.331407", "end": "2019-05-25 12:40:31.390399", "rc": 0, "start": "2019-05-25 12:40:30.058992", "stderr": "", "stderr_lines": [], "stdout": "sar-user staff_u s0-s0:c0.c1023 *", "stdout_lines": ["sar-user staff_u s0-s0:c0.c1023 *"]} TASK [Get local modifications - fcontext] ****************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/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:01.753470", "end": "2019-05-25 12:40:34.092373", "rc": 0, "start": "2019-05-25 12:40:32.338903", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [save state after reverting other changes] ************************************************************************************************************************************************************ task path: /tmp/tmpgx0pi3ud/tests/tests_login.yml:58 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"login_after": "sar-user staff_u s0-s0:c0.c1023 *"}, "changed": false} TASK [Check if SELinux login mapping is as before] ********************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/tests/tests_login.yml:62 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [include_role : selinux] ****************************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tests/tests_login.yml:66 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/tasks/main.yml:76 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": "/usr/sbin/semanage login -D", "delta": "0:00:05.927760", "end": "2019-05-25 12:40:58.320724", "rc": 0, "start": "2019-05-25 12:40:52.392964", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Reload SELinux policy] ********************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/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:02.914059", "end": "2019-05-25 12:41:02.079292", "rc": 0, "start": "2019-05-25 12:40:59.165233", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpgx0pi3ud/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:118 TASK [Get local modifications - boolean] ******************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/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.282100", "end": "2019-05-25 12:41:04.761979", "rc": 0, "start": "2019-05-25 12:41:03.479879", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - port] ********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/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:01.631345", "end": "2019-05-25 12:41:07.362491", "rc": 0, "start": "2019-05-25 12:41:05.731146", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - login] ********************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/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.654487", "end": "2019-05-25 12:41:09.776813", "rc": 0, "start": "2019-05-25 12:41:08.122326", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - fcontext] ****************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/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:01.705069", "end": "2019-05-25 12:41:12.389315", "rc": 0, "start": "2019-05-25 12:41:10.684246", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Check if there are no SELinux login mapping changes] ************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/tests/tests_login.yml:72 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 a System Api Roles SELinux User] ************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tests/tests_login.yml:76 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": false, "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=52 changed=27 unreachable=0 failed=0 skipped=60 rescued=0 ignored=0 + cd /tmp/tmpgx0pi3ud/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-2rt_ksox/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpgx0pi3ud/_setup.yml /tmp/tmpgx0pi3ud/tests/tests_port.yml ansible-playbook 2.8.0 config file = /home/till/.ansible.cfg configured module search path = ['/home/till/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.7/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.7.3 (default, May 11 2019, 00:38:04) [GCC 9.1.1 20190503 (Red Hat 9.1.1-1)] Using /home/till/.ansible.cfg as config file PLAYBOOK: _setup.yml *************************************************************************************************************************************************************************************** 1 plays in /tmp/tmpgx0pi3ud/_setup.yml PLAY [Fail when only localhost is available] *************************************************************************************************************************************************************** META: ran handlers TASK [debug] *********************************************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/_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/tmpgx0pi3ud/_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/tmpgx0pi3ud/tests/set_selinux_variables.yml statically imported: /tmp/tmpgx0pi3ud/tests/set_selinux_variables.yml statically imported: /tmp/tmpgx0pi3ud/tests/set_selinux_variables.yml statically imported: /tmp/tmpgx0pi3ud/tests/set_selinux_variables.yml PLAYBOOK: tests_port.yml *********************************************************************************************************************************************************************************** 1 plays in /tmp/tmpgx0pi3ud/tests/tests_port.yml PLAY [Check if selinux role sets SELinux port mapping] ***************************************************************************************************************************************************** TASK [Gathering Facts] ************************************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/tests/tests_port.yml:2 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-25", "day": "25", "epoch": "1558788111", "hour": "12", "iso8601": "2019-05-25T12:41:51Z", "iso8601_basic": "20190525T124151244029", "iso8601_basic_short": "20190525T124151", "iso8601_micro": "2019-05-25T12:41:51.244277Z", "minute": "41", "month": "05", "second": "51", "time": "12:41:51", "tz": "UTC", "tz_offset": "+0000", "weekday": "Saturday", "weekday_number": "6", "weeknumber": "20", "year": "2019"}, "ansible_default_ipv4": {"address": "10.0.2.15", "alias": "eth0", "broadcast": "10.0.2.255", "gateway": "10.0.2.2", "interface": "eth0", "macaddress": "52:54:00:12:34:56", "mtu": 1500, "netmask": "255.255.255.0", "network": "10.0.2.0", "type": "ether"}, "ansible_default_ipv6": {"address": "fec0::5054:ff:fe12:3456", "gateway": "fe80::2", "interface": "eth0", "macaddress": "52:54:00:12:34:56", "mtu": 1500, "prefix": "64", "scope": "site", "type": "ether"}, "ansible_device_links": {"ids": {"sr0": ["ata-QEMU_DVD-ROM_QM00003"]}, "labels": {"sr0": ["cidata"]}, "masters": {}, "uuids": {"sr0": ["2019-05-25-14-41-15-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-25-14-41-15-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 43034 22", "SSH_CONNECTION": "10.0.2.2 43034 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": "b0464900c13d4502948d94f9fcafb4e0", "ansible_memfree_mb": 640, "ansible_memory_mb": {"nocache": {"free": 843, "used": 139}, "real": {"free": 640, "total": 982, "used": 342}, "swap": {"cached": 0, "free": 0, "total": 0, "used": 0}}, "ansible_memtotal_mb": 982, "ansible_mounts": [{"block_available": 729418, "block_size": 4096, "block_total": 1015472, "block_used": 286054, "device": "/dev/vda1", "fstype": "ext4", "inode_available": 233658, "inode_total": 262144, "inode_used": 28486, "mount": "/", "options": "rw,seclabel,relatime", "size_available": 2987696128, "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": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBJwzvVvj2V9ka1fIHUdnan9i8HPwoVtv41c8PCz1wEFyvlSRMD2bJLrdpp3rCK2paDWajQPIqy06KTvN1JrleFA=", "ansible_ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAID+AlGLxXY1zOeQ+vTM4W9jBVQv4AivTiBKUUM3eHx+O", "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABAQCyMYNhFRpILM18FBkf62FiYhBzscIWWmWHYjMEZfTRQLMHxF4Du9TgmvAQ24+cx0EyJwV0F/HAMB5/3wtkd/jxVuxe3uVbC++GcVZq0q6iidb+5wK0PCAYR43NoxvL36zYEIXPIhYwn/HrIdhAkBndEu6PVHPE8scLMxoxuOo5YmHf/ctJEI37JBRvm2XdcbtNNY3xv1OIHGyc0kq2h31Tl36NRqh8PYBCo7XiEBl9+l/47C4sY4rSj5FMFp+dhXlrEGltgFyrnJSO8vz+bS7M9AKAcqp86u8VHWgj7L2YJxUaL13HqsLU9qNeAR+1owwBV6VwSgIZovL47Qf/p5xX", "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": 32, "ansible_user_dir": "/root", "ansible_user_gecos": "root", "ansible_user_gid": 0, "ansible_user_id": "root", "ansible_user_shell": "/bin/bash", "ansible_user_uid": 0, "ansible_userspace_architecture": "x86_64", "ansible_userspace_bits": "64", "ansible_virtualization_role": "guest", "ansible_virtualization_type": "kvm", "gather_subset": ["all"], "module_setup": true}, "changed": false} META: ran handlers TASK [initial changes] ************************************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/tests/tests_port.yml:7 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/tasks/main.yml:72 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": "/usr/sbin/semanage port -D", "delta": "0:00:08.873598", "end": "2019-05-25 12:43:32.588133", "rc": 0, "start": "2019-05-25 12:43:23.714535", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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:02.608927", "end": "2019-05-25 12:43:36.176160", "rc": 0, "start": "2019-05-25 12:43:33.567233", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpgx0pi3ud/tasks/main.yml:110 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'ports': '22100', 'proto': 'tcp', 'setype': 'ssh_port_t', 'state': 'present'}) => {"ansible_loop_var": "item", "changed": true, "item": {"ports": "22100", "proto": "tcp", "setype": "ssh_port_t", "state": "present"}, "ports": ["22100"], "proto": "tcp", "setype": "ssh_port_t", "state": "present"} TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:118 TASK [Get local modifications - boolean] ******************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/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.312543", "end": "2019-05-25 12:43:45.544618", "rc": 0, "start": "2019-05-25 12:43:44.232075", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - port] ********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/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:01.377988", "end": "2019-05-25 12:43:47.760821", "rc": 0, "start": "2019-05-25 12:43:46.382833", "stderr": "", "stderr_lines": [], "stdout": "ssh_port_t tcp 22100", "stdout_lines": ["ssh_port_t tcp 22100"]} TASK [Get local modifications - login] ********************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/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.443372", "end": "2019-05-25 12:43:50.152903", "rc": 0, "start": "2019-05-25 12:43:48.709531", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - fcontext] ****************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/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:01.743008", "end": "2019-05-25 12:43:52.610404", "rc": 0, "start": "2019-05-25 12:43:50.867396", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [save state after initial changes and before other changes] ******************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/tests/tests_port.yml:16 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"port_before": "ssh_port_t tcp 22100"}, "changed": false} TASK [Check if there are SELinux port mapping changes] ***************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tests/tests_port.yml:20 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [subsequent changes] ********************************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tests/tests_port.yml:24 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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:02.725464", "end": "2019-05-25 12:44:14.527638", "rc": 0, "start": "2019-05-25 12:44:11.802174", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpgx0pi3ud/tasks/main.yml:110 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'ports': '22022', 'proto': 'tcp', 'setype': 'ssh_port_t', 'state': 'present'}) => {"ansible_loop_var": "item", "changed": true, "item": {"ports": "22022", "proto": "tcp", "setype": "ssh_port_t", "state": "present"}, "ports": ["22022"], "proto": "tcp", "setype": "ssh_port_t", "state": "present"} TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:118 TASK [Get local modifications - boolean] ******************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/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.557666", "end": "2019-05-25 12:44:24.313818", "rc": 0, "start": "2019-05-25 12:44:22.756152", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - port] ********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/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:01.338053", "end": "2019-05-25 12:44:26.653217", "rc": 0, "start": "2019-05-25 12:44:25.315164", "stderr": "", "stderr_lines": [], "stdout": "ssh_port_t tcp 22100, 22022", "stdout_lines": ["ssh_port_t tcp 22100, 22022"]} TASK [Get local modifications - login] ********************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/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.504778", "end": "2019-05-25 12:44:29.028077", "rc": 0, "start": "2019-05-25 12:44:27.523299", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - fcontext] ****************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/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:01.549848", "end": "2019-05-25 12:44:31.287115", "rc": 0, "start": "2019-05-25 12:44:29.737267", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [save state after other changes] ********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tests/tests_port.yml:33 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"port_after": "ssh_port_t tcp 22100, 22022"}, "changed": false} TASK [Check if there are SELinux port mapping changes] ***************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tests/tests_port.yml:37 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [revert subsequent changes] *************************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tests/tests_port.yml:41 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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:02.515704", "end": "2019-05-25 12:44:52.327843", "rc": 0, "start": "2019-05-25 12:44:49.812139", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpgx0pi3ud/tasks/main.yml:110 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'ports': '22022', 'proto': 'tcp', 'setype': 'ssh_port_t', 'state': 'absent'}) => {"ansible_loop_var": "item", "changed": true, "item": {"ports": "22022", "proto": "tcp", "setype": "ssh_port_t", "state": "absent"}, "ports": ["22022"], "proto": "tcp", "setype": "ssh_port_t", "state": "absent"} TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:118 TASK [Get local modifications - boolean] ******************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/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.797237", "end": "2019-05-25 12:45:01.682333", "rc": 0, "start": "2019-05-25 12:44:59.885096", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - port] ********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/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:01.626109", "end": "2019-05-25 12:45:04.247393", "rc": 0, "start": "2019-05-25 12:45:02.621284", "stderr": "", "stderr_lines": [], "stdout": "ssh_port_t tcp 22100", "stdout_lines": ["ssh_port_t tcp 22100"]} TASK [Get local modifications - login] ********************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/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.270882", "end": "2019-05-25 12:45:06.297404", "rc": 0, "start": "2019-05-25 12:45:05.026522", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - fcontext] ****************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/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:01.679360", "end": "2019-05-25 12:45:08.942916", "rc": 0, "start": "2019-05-25 12:45:07.263556", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [save state after reverting other changes] ************************************************************************************************************************************************************ task path: /tmp/tmpgx0pi3ud/tests/tests_port.yml:50 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"port_after": "ssh_port_t tcp 22100"}, "changed": false} TASK [Check if SELinux port mapping is as before] ********************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tests/tests_port.yml:54 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [include_role : selinux] ****************************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tests/tests_port.yml:58 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/tasks/main.yml:72 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": "/usr/sbin/semanage port -D", "delta": "0:00:05.570406", "end": "2019-05-25 12:45:33.051392", "rc": 0, "start": "2019-05-25 12:45:27.480986", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Purge all SELinux login local modifications] *********************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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:02.482175", "end": "2019-05-25 12:45:36.466466", "rc": 0, "start": "2019-05-25 12:45:33.984291", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [selinux : Set SELinux booleans] ********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:84 TASK [selinux : Set SELinux domains] *********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:91 TASK [selinux : Set SELinux file contexts] ***************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:97 TASK [selinux : Restore SELinux labels on filesystem tree] ************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/tasks/main.yml:106 TASK [selinux : Set an SELinux label on a port] ************************************************************************************************************************************************************ task path: /tmp/tmpgx0pi3ud/tasks/main.yml:110 TASK [selinux : Set linux user to SELinux user mapping] **************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tasks/main.yml:118 TASK [Get local modifications - boolean] ******************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/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.591704", "end": "2019-05-25 12:45:39.201175", "rc": 0, "start": "2019-05-25 12:45:37.609471", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - port] ********************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/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:01.519816", "end": "2019-05-25 12:45:41.520868", "rc": 0, "start": "2019-05-25 12:45:40.001052", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - login] ********************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/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.264458", "end": "2019-05-25 12:45:43.694054", "rc": 0, "start": "2019-05-25 12:45:42.429596", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get local modifications - fcontext] ****************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/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:01.735561", "end": "2019-05-25 12:45:46.267115", "rc": 0, "start": "2019-05-25 12:45:44.531554", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Check if there are no SELinux port mapping changes] ************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tests/tests_port.yml:64 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } 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=50 changed=26 unreachable=0 failed=0 skipped=60 rescued=0 ignored=0 + cd /tmp/tmpgx0pi3ud/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-2rt_ksox/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpgx0pi3ud/_setup.yml /tmp/tmpgx0pi3ud/tests/tests_selinux_disabled.yml ansible-playbook 2.8.0 config file = /home/till/.ansible.cfg configured module search path = ['/home/till/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.7/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.7.3 (default, May 11 2019, 00:38:04) [GCC 9.1.1 20190503 (Red Hat 9.1.1-1)] Using /home/till/.ansible.cfg as config file PLAYBOOK: _setup.yml *************************************************************************************************************************************************************************************** 1 plays in /tmp/tmpgx0pi3ud/_setup.yml PLAY [Fail when only localhost is available] *************************************************************************************************************************************************************** META: ran handlers TASK [debug] *********************************************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/_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/tmpgx0pi3ud/_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_selinux_disabled.yml *********************************************************************************************************************************************************************** 1 plays in /tmp/tmpgx0pi3ud/tests/tests_selinux_disabled.yml PLAY [Ensure the default is targeted, enforcing, without local modifications] ****************************************************************************************************************************** TASK [Gathering Facts] ************************************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/tests/tests_selinux_disabled.yml:2 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-25", "day": "25", "epoch": "1558788385", "hour": "12", "iso8601": "2019-05-25T12:46:25Z", "iso8601_basic": "20190525T124625247415", "iso8601_basic_short": "20190525T124625", "iso8601_micro": "2019-05-25T12:46:25.247633Z", "minute": "46", "month": "05", "second": "25", "time": "12:46:25", "tz": "UTC", "tz_offset": "+0000", "weekday": "Saturday", "weekday_number": "6", "weeknumber": "20", "year": "2019"}, "ansible_default_ipv4": {"address": "10.0.2.15", "alias": "eth0", "broadcast": "10.0.2.255", "gateway": "10.0.2.2", "interface": "eth0", "macaddress": "52:54:00:12:34:56", "mtu": 1500, "netmask": "255.255.255.0", "network": "10.0.2.0", "type": "ether"}, "ansible_default_ipv6": {"address": "fec0::5054:ff:fe12:3456", "gateway": "fe80::2", "interface": "eth0", "macaddress": "52:54:00:12:34:56", "mtu": 1500, "prefix": "64", "scope": "site", "type": "ether"}, "ansible_device_links": {"ids": {"sr0": ["ata-QEMU_DVD-ROM_QM00003"]}, "labels": {"sr0": ["cidata"]}, "masters": {}, "uuids": {"sr0": ["2019-05-25-14-45-47-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-25-14-45-47-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 52820 22", "SSH_CONNECTION": "10.0.2.2 52820 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": "25a0231ac9ab46f9ad30b69c6d0c94d5", "ansible_memfree_mb": 650, "ansible_memory_mb": {"nocache": {"free": 843, "used": 139}, "real": {"free": 650, "total": 982, "used": 332}, "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": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBBi1KA61MjcFKHGf9ycSp/wwRrmqrGQ8X62kw0cskPf+Ww82O8ZdVla80pdmvZsMCYL+Wyusu7miGDGWs2Fjnik=", "ansible_ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAIJ8XBod7sV2p94bAVWeOYI5l0wzBbbYolfZFXS8ZQhFL", "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABAQD5n1QXwFnr4QGQjYfab/zZPkb9io/Fwg8fgYKAf/qmSUyFXQCXOXQAnV7zu8WJ3nRUTVpbFd/pIvHjOwgwwPKbZmzbb/4O9R/ZqlKP8D1gQwNbSSgVOE1wi2ucIMskeRjlRg0l4gspap1TLt3f+wQnZXSYL8Z2PU/OsHNWcW9Oc7HGw+BxL18Y8XrmtktPFSHCx0EjcXVVLsHgyRHjiV4+y8kjsy8hKXCPFz5+aiDrHunCpazfoEtdWLbKCzEfJ3toOkyy4FdY555CiHHYVRAlDnSl59ghJA62KrBjyT+FhNnXDvfjGNAt+j5TA7OtrmYYFD8hsHSoHM8qlYE+kp83", "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": 34, "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/tmpgx0pi3ud/tests/tests_selinux_disabled.yml:16 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/tmpgx0pi3ud/tests/tests_selinux_disabled.yml:23 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/tmpgx0pi3ud/tests/tests_selinux_disabled.yml:27 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:11.932180", "end": "2019-05-25 12:48:06.539836", "rc": 0, "start": "2019-05-25 12:47:54.607656", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Backup original /etc/selinux/config] ***************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tests/tests_selinux_disabled.yml:29 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_disabled", "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 [Upload testing /etc/selinux/config] ****************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tests/tests_selinux_disabled.yml:34 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "checksum": "385caf4e178c9a1dfcdaac71738934c735201480", "dest": "/etc/selinux/config", "gid": 0, "group": "root", "md5sum": "293160d55f3a26d5bc687154d028eb47", "mode": "0644", "owner": "root", "secontext": "system_u:object_r:selinux_config_t:s0", "size": 547, "src": "/root/.ansible/tmp/ansible-tmp-1558788487.8838775-247264591137448/source", "state": "file", "uid": 0} TASK [Switch to permissive to allow login when selinuxfs is not mounted] *********************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tests/tests_selinux_disabled.yml:38 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["setenforce", "0"], "delta": "0:00:00.012696", "end": "2019-05-25 12:48:10.473669", "rc": 0, "start": "2019-05-25 12:48:10.460973", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Get selinuxfs mountpoint] **************************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tests/tests_selinux_disabled.yml:41 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": "findmnt -n -t selinuxfs --output=target", "delta": "0:00:00.015669", "end": "2019-05-25 12:48:11.338107", "rc": 0, "start": "2019-05-25 12:48:11.322438", "stderr": "", "stderr_lines": [], "stdout": "/sys/fs/selinux", "stdout_lines": ["/sys/fs/selinux"]} TASK [Umount /sys/fs/selinux to emulate SELinux disabled system] ******************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/tests/tests_selinux_disabled.yml:44 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["umount", "/sys/fs/selinux"], "delta": "0:00:00.035858", "end": "2019-05-25 12:48:12.149982", "rc": 0, "start": "2019-05-25 12:48:12.114124", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [include_role : selinux] ****************************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tests/tests_selinux_disabled.yml:49 TASK [selinux : Install SELinux python2 tools] ************************************************************************************************************************************************************* task path: /tmp/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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/tmpgx0pi3ud/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 [examine the selinux_reboot_required variable] ******************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tests/tests_selinux_disabled.yml:52 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"test_selinux_reboot_required": true}, "changed": false} TASK [check that the role has failed and set the correct variable] ***************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tests/tests_selinux_disabled.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 [Mount /sys/fs/selinux back to system] **************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tests/tests_selinux_disabled.yml:60 [WARNING]: Consider using the mount module rather than running 'mount'. If you need to use command because mount is insufficient you can add 'warn: false' to this command task or set 'command_warnings=False' in ansible.cfg to get rid of this message. changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["mount", "-t", "selinuxfs", "selinuxfs", "/sys/fs/selinux"], "delta": "0:00:00.016208", "end": "2019-05-25 12:48:32.038544", "rc": 0, "start": "2019-05-25 12:48:32.022336", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Switch back to enforcing] **************************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tests/tests_selinux_disabled.yml:62 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["setenforce", "1"], "delta": "0:00:00.020439", "end": "2019-05-25 12:48:32.950911", "rc": 0, "start": "2019-05-25 12:48:32.930472", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Gather facts again] ********************************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tests/tests_selinux_disabled.yml:64 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [Check SELinux config mode] *************************************************************************************************************************************************************************** task path: /tmp/tmpgx0pi3ud/tests/tests_selinux_disabled.yml:66 fatal: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2]: FAILED! => {"changed": false, "msg": "Invalid options for assert: mgs"} PLAY RECAP ************************************************************************************************************************************************************************************************* /home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 : ok=20 changed=11 unreachable=0 failed=1 skipped=3 rescued=1 ignored=0