ansible-playbook [core 2.12.6] config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.9/site-packages/ansible ansible collection location = /tmp/tmpdm_c1v_l executable location = /usr/bin/ansible-playbook python version = 3.9.13 (main, May 18 2022, 00:00:00) [GCC 11.3.1 20220421 (Red Hat 11.3.1-2)] jinja version = 2.11.3 libyaml = True Using /etc/ansible/ansible.cfg as config file Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'default', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. PLAYBOOK: _backup.yml ********************************************************** 1 plays in /tmp/tmp5fajrzs2/tests/_backup.yml PLAY [all] ********************************************************************* META: ran handlers TASK [Get stats of system files] *********************************************** task path: /tmp/tmp5fajrzs2/tests/_backup.yml:6 Wednesday 03 August 2022 16:50:06 +0000 (0:00:00.019) 0:00:00.019 ****** ok: [/cache/fedora-35.qcow2.snap] => (item=/etc/resolv.conf) => { "ansible_facts": { "discovered_interpreter_python": "/usr/bin/python3" }, "ansible_loop_var": "item", "changed": false, "item": "/etc/resolv.conf", "stat": { "atime": 1659545404.9723847, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "binary", "ctime": 1659545404.9723847, "dev": 32, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 43747, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": true, "isreg": false, "issock": false, "isuid": false, "lnk_source": "/run/systemd/resolve/stub-resolv.conf", "lnk_target": "../run/systemd/resolve/stub-resolv.conf", "mimetype": "inode/symlink", "mode": "0777", "mtime": 1659338446.0, "nlink": 1, "path": "/etc/resolv.conf", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 39, "uid": 0, "version": null, "wgrp": true, "woth": true, "writeable": true, "wusr": true, "xgrp": true, "xoth": true, "xusr": true } } TASK [Check if system files exist] ********************************************* task path: /tmp/tmp5fajrzs2/tests/_backup.yml:13 Wednesday 03 August 2022 16:50:06 +0000 (0:00:00.608) 0:00:00.628 ****** [WARNING]: conditional statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found: {{ item.stat.exists }} ok: [/cache/fedora-35.qcow2.snap] => (item={'changed': False, 'stat': {'exists': True, 'path': '/etc/resolv.conf', 'mode': '0777', 'isdir': False, 'ischr': False, 'isblk': False, 'isreg': False, 'isfifo': False, 'islnk': True, 'issock': False, 'uid': 0, 'gid': 0, 'size': 39, 'inode': 43747, 'dev': 32, 'nlink': 1, 'atime': 1659545404.9723847, 'mtime': 1659338446.0, 'ctime': 1659545404.9723847, 'wusr': True, 'rusr': True, 'xusr': True, 'wgrp': True, 'rgrp': True, 'xgrp': True, 'woth': True, 'roth': True, 'xoth': True, 'isuid': False, 'isgid': False, 'blocks': 8, 'block_size': 4096, 'device_type': 0, 'readable': True, 'writeable': True, 'executable': False, 'lnk_source': '/run/systemd/resolve/stub-resolv.conf', 'lnk_target': '../run/systemd/resolve/stub-resolv.conf', 'pw_name': 'root', 'gr_name': 'root', 'mimetype': 'inode/symlink', 'charset': 'binary', 'version': None, 'attributes': [], 'attr_flags': ''}, 'invocation': {'module_args': {'path': '/etc/resolv.conf', 'follow': False, 'get_md5': False, 'get_checksum': True, 'get_mime': True, 'get_attributes': True, 'checksum_algorithm': 'sha1'}}, 'ansible_facts': {'discovered_interpreter_python': '/usr/bin/python3'}, 'failed': False, 'item': '/etc/resolv.conf', 'ansible_loop_var': 'item'}) => { "ansible_facts": { "_existing_files": " /etc/resolv.conf" }, "ansible_loop_var": "item", "changed": false, "item": { "ansible_facts": { "discovered_interpreter_python": "/usr/bin/python3" }, "ansible_loop_var": "item", "changed": false, "failed": false, "invocation": { "module_args": { "checksum_algorithm": "sha1", "follow": false, "get_attributes": true, "get_checksum": true, "get_md5": false, "get_mime": true, "path": "/etc/resolv.conf" } }, "item": "/etc/resolv.conf", "stat": { "atime": 1659545404.9723847, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "binary", "ctime": 1659545404.9723847, "dev": 32, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 43747, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": true, "isreg": false, "issock": false, "isuid": false, "lnk_source": "/run/systemd/resolve/stub-resolv.conf", "lnk_target": "../run/systemd/resolve/stub-resolv.conf", "mimetype": "inode/symlink", "mode": "0777", "mtime": 1659338446.0, "nlink": 1, "path": "/etc/resolv.conf", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 39, "uid": 0, "version": null, "wgrp": true, "woth": true, "writeable": true, "wusr": true, "xgrp": true, "xoth": true, "xusr": true } } } TASK [Back up system files] **************************************************** task path: /tmp/tmp5fajrzs2/tests/_backup.yml:19 Wednesday 03 August 2022 16:50:06 +0000 (0:00:00.032) 0:00:00.661 ****** changed: [/cache/fedora-35.qcow2.snap] => { "changed": true, "cmd": [ "tar", "-cf", "/tmp/network.backup.tar", "--same-owner", "--same-permissions", "/etc/resolv.conf" ], "delta": "0:00:00.004059", "end": "2022-08-03 16:50:06.820299", "rc": 0, "start": "2022-08-03 16:50:06.816240" } STDERR: tar: Removing leading `/' from member names META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-35.qcow2.snap : ok=3 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Wednesday 03 August 2022 16:50:07 +0000 (0:00:00.505) 0:00:01.167 ****** =============================================================================== Get stats of system files ----------------------------------------------- 0.61s /tmp/tmp5fajrzs2/tests/_backup.yml:6 ------------------------------------------ Back up system files ---------------------------------------------------- 0.51s /tmp/tmp5fajrzs2/tests/_backup.yml:19 ----------------------------------------- Check if system files exist --------------------------------------------- 0.03s /tmp/tmp5fajrzs2/tests/_backup.yml:13 ----------------------------------------- PLAYBOOK: tests_states_initscripts.yml ***************************************** 2 plays in /tmp/tmp5fajrzs2/tests/tests_states_initscripts.yml PLAY [Run playbook 'playbooks/tests_states.yml' with initscripts as provider] *** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp5fajrzs2/tests/tests_states_initscripts.yml:4 Wednesday 03 August 2022 16:50:07 +0000 (0:00:00.026) 0:00:01.193 ****** ok: [/cache/fedora-35.qcow2.snap] META: ran handlers TASK [include_tasks] *********************************************************** task path: /tmp/tmp5fajrzs2/tests/tests_states_initscripts.yml:7 Wednesday 03 August 2022 16:50:08 +0000 (0:00:01.055) 0:00:02.249 ****** included: /tmp/tmp5fajrzs2/tests/tasks/el_repo_setup.yml for /cache/fedora-35.qcow2.snap TASK [Fix CentOS6 Base repo] *************************************************** task path: /tmp/tmp5fajrzs2/tests/tasks/el_repo_setup.yml:2 Wednesday 03 August 2022 16:50:08 +0000 (0:00:00.028) 0:00:02.277 ****** skipping: [/cache/fedora-35.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** task path: /tmp/tmp5fajrzs2/tests/tasks/el_repo_setup.yml:27 Wednesday 03 August 2022 16:50:08 +0000 (0:00:00.021) 0:00:02.299 ****** included: /tmp/tmp5fajrzs2/tests/tasks/enable_epel.yml for /cache/fedora-35.qcow2.snap TASK [Create EPEL 35] ********************************************************** task path: /tmp/tmp5fajrzs2/tests/tasks/enable_epel.yml:4 Wednesday 03 August 2022 16:50:08 +0000 (0:00:00.029) 0:00:02.329 ****** skipping: [/cache/fedora-35.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 7] *********************************************************** task path: /tmp/tmp5fajrzs2/tests/tasks/enable_epel.yml:11 Wednesday 03 August 2022 16:50:08 +0000 (0:00:00.019) 0:00:02.348 ****** skipping: [/cache/fedora-35.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 8] *********************************************************** task path: /tmp/tmp5fajrzs2/tests/tasks/enable_epel.yml:17 Wednesday 03 August 2022 16:50:08 +0000 (0:00:00.022) 0:00:02.371 ****** skipping: [/cache/fedora-35.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 6] *********************************************************** task path: /tmp/tmp5fajrzs2/tests/tasks/enable_epel.yml:26 Wednesday 03 August 2022 16:50:08 +0000 (0:00:00.020) 0:00:02.391 ****** skipping: [/cache/fedora-35.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set network provider to 'initscripts'] *********************************** task path: /tmp/tmp5fajrzs2/tests/tests_states_initscripts.yml:8 Wednesday 03 August 2022 16:50:08 +0000 (0:00:00.020) 0:00:02.411 ****** ok: [/cache/fedora-35.qcow2.snap] => { "ansible_facts": { "network_provider": "initscripts" }, "changed": false } META: ran handlers META: ran handlers PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp5fajrzs2/tests/playbooks/tests_states.yml:3 Wednesday 03 August 2022 16:50:08 +0000 (0:00:00.047) 0:00:02.458 ****** skipping: [/cache/fedora-35.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } META: ran handlers TASK [Show playbook name] ****************************************************** task path: /tmp/tmp5fajrzs2/tests/playbooks/tests_states.yml:10 Wednesday 03 August 2022 16:50:08 +0000 (0:00:00.040) 0:00:02.499 ****** skipping: [/cache/fedora-35.qcow2.snap] => {} TASK [include_tasks] *********************************************************** task path: /tmp/tmp5fajrzs2/tests/playbooks/tests_states.yml:18 Wednesday 03 August 2022 16:50:08 +0000 (0:00:00.034) 0:00:02.534 ****** skipping: [/cache/fedora-35.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** task path: /tmp/tmp5fajrzs2/tests/playbooks/tests_states.yml:39 Wednesday 03 August 2022 16:50:08 +0000 (0:00:00.031) 0:00:02.565 ****** skipping: [/cache/fedora-35.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** task path: /tmp/tmp5fajrzs2/tests/playbooks/tests_states.yml:57 Wednesday 03 August 2022 16:50:08 +0000 (0:00:00.032) 0:00:02.598 ****** skipping: [/cache/fedora-35.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** task path: /tmp/tmp5fajrzs2/tests/playbooks/tests_states.yml:73 Wednesday 03 August 2022 16:50:08 +0000 (0:00:00.041) 0:00:02.639 ****** skipping: [/cache/fedora-35.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** task path: /tmp/tmp5fajrzs2/tests/playbooks/tests_states.yml:91 Wednesday 03 August 2022 16:50:08 +0000 (0:00:00.035) 0:00:02.675 ****** skipping: [/cache/fedora-35.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** task path: /tmp/tmp5fajrzs2/tests/playbooks/tests_states.yml:111 Wednesday 03 August 2022 16:50:08 +0000 (0:00:00.034) 0:00:02.709 ****** skipping: [/cache/fedora-35.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-35.qcow2.snap : ok=7 changed=1 unreachable=0 failed=0 skipped=13 rescued=0 ignored=0 Wednesday 03 August 2022 16:50:08 +0000 (0:00:00.044) 0:00:02.754 ****** =============================================================================== Gathering Facts --------------------------------------------------------- 1.06s /tmp/tmp5fajrzs2/tests/tests_states_initscripts.yml:4 ------------------------- Get stats of system files ----------------------------------------------- 0.61s /tmp/tmp5fajrzs2/tests/_backup.yml:6 ------------------------------------------ Back up system files ---------------------------------------------------- 0.51s /tmp/tmp5fajrzs2/tests/_backup.yml:19 ----------------------------------------- Set network provider to 'initscripts' ----------------------------------- 0.05s /tmp/tmp5fajrzs2/tests/tests_states_initscripts.yml:8 ------------------------- include_tasks ----------------------------------------------------------- 0.04s /tmp/tmp5fajrzs2/tests/playbooks/tests_states.yml:111 ------------------------- include_tasks ----------------------------------------------------------- 0.04s /tmp/tmp5fajrzs2/tests/playbooks/tests_states.yml:57 -------------------------- Gathering Facts --------------------------------------------------------- 0.04s /tmp/tmp5fajrzs2/tests/playbooks/tests_states.yml:3 --------------------------- include_tasks ----------------------------------------------------------- 0.04s /tmp/tmp5fajrzs2/tests/playbooks/tests_states.yml:73 -------------------------- Show playbook name ------------------------------------------------------ 0.03s /tmp/tmp5fajrzs2/tests/playbooks/tests_states.yml:10 -------------------------- include_tasks ----------------------------------------------------------- 0.03s /tmp/tmp5fajrzs2/tests/playbooks/tests_states.yml:91 -------------------------- Check if system files exist --------------------------------------------- 0.03s /tmp/tmp5fajrzs2/tests/_backup.yml:13 ----------------------------------------- include_tasks ----------------------------------------------------------- 0.03s /tmp/tmp5fajrzs2/tests/playbooks/tests_states.yml:39 -------------------------- include_tasks ----------------------------------------------------------- 0.03s /tmp/tmp5fajrzs2/tests/playbooks/tests_states.yml:18 -------------------------- include_tasks ----------------------------------------------------------- 0.03s /tmp/tmp5fajrzs2/tests/tasks/el_repo_setup.yml:27 ----------------------------- include_tasks ----------------------------------------------------------- 0.03s /tmp/tmp5fajrzs2/tests/tests_states_initscripts.yml:7 ------------------------- Enable EPEL 7 ----------------------------------------------------------- 0.02s /tmp/tmp5fajrzs2/tests/tasks/enable_epel.yml:11 ------------------------------- Fix CentOS6 Base repo --------------------------------------------------- 0.02s /tmp/tmp5fajrzs2/tests/tasks/el_repo_setup.yml:2 ------------------------------ Enable EPEL 6 ----------------------------------------------------------- 0.02s /tmp/tmp5fajrzs2/tests/tasks/enable_epel.yml:26 ------------------------------- Enable EPEL 8 ----------------------------------------------------------- 0.02s /tmp/tmp5fajrzs2/tests/tasks/enable_epel.yml:17 ------------------------------- Create EPEL 35 ---------------------------------------------------------- 0.02s /tmp/tmp5fajrzs2/tests/tasks/enable_epel.yml:4 -------------------------------- PLAYBOOK: _restore.yml ********************************************************* 1 plays in /tmp/tmp5fajrzs2/tests/_restore.yml PLAY [all] ********************************************************************* META: ran handlers TASK [Restore system files] **************************************************** task path: /tmp/tmp5fajrzs2/tests/_restore.yml:4 Wednesday 03 August 2022 16:50:09 +0000 (0:00:00.020) 0:00:02.774 ****** changed: [/cache/fedora-35.qcow2.snap] => { "changed": true, "cmd": "(cd /; tar -xf /tmp/network.backup.tar)", "delta": "0:00:00.006480", "end": "2022-08-03 16:50:08.817452", "rc": 0, "start": "2022-08-03 16:50:08.810972" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-35.qcow2.snap : ok=8 changed=2 unreachable=0 failed=0 skipped=13 rescued=0 ignored=0 Wednesday 03 August 2022 16:50:09 +0000 (0:00:00.386) 0:00:03.160 ****** =============================================================================== Gathering Facts --------------------------------------------------------- 1.06s /tmp/tmp5fajrzs2/tests/tests_states_initscripts.yml:4 ------------------------- Get stats of system files ----------------------------------------------- 0.61s /tmp/tmp5fajrzs2/tests/_backup.yml:6 ------------------------------------------ Back up system files ---------------------------------------------------- 0.51s /tmp/tmp5fajrzs2/tests/_backup.yml:19 ----------------------------------------- Restore system files ---------------------------------------------------- 0.39s /tmp/tmp5fajrzs2/tests/_restore.yml:4 ----------------------------------------- Set network provider to 'initscripts' ----------------------------------- 0.05s /tmp/tmp5fajrzs2/tests/tests_states_initscripts.yml:8 ------------------------- include_tasks ----------------------------------------------------------- 0.04s /tmp/tmp5fajrzs2/tests/playbooks/tests_states.yml:111 ------------------------- include_tasks ----------------------------------------------------------- 0.04s /tmp/tmp5fajrzs2/tests/playbooks/tests_states.yml:57 -------------------------- Gathering Facts --------------------------------------------------------- 0.04s /tmp/tmp5fajrzs2/tests/playbooks/tests_states.yml:3 --------------------------- include_tasks ----------------------------------------------------------- 0.04s /tmp/tmp5fajrzs2/tests/playbooks/tests_states.yml:73 -------------------------- Show playbook name ------------------------------------------------------ 0.03s /tmp/tmp5fajrzs2/tests/playbooks/tests_states.yml:10 -------------------------- include_tasks ----------------------------------------------------------- 0.03s /tmp/tmp5fajrzs2/tests/playbooks/tests_states.yml:91 -------------------------- Check if system files exist --------------------------------------------- 0.03s /tmp/tmp5fajrzs2/tests/_backup.yml:13 ----------------------------------------- include_tasks ----------------------------------------------------------- 0.03s /tmp/tmp5fajrzs2/tests/playbooks/tests_states.yml:39 -------------------------- include_tasks ----------------------------------------------------------- 0.03s /tmp/tmp5fajrzs2/tests/playbooks/tests_states.yml:18 -------------------------- include_tasks ----------------------------------------------------------- 0.03s /tmp/tmp5fajrzs2/tests/tasks/el_repo_setup.yml:27 ----------------------------- include_tasks ----------------------------------------------------------- 0.03s /tmp/tmp5fajrzs2/tests/tests_states_initscripts.yml:7 ------------------------- Enable EPEL 7 ----------------------------------------------------------- 0.02s /tmp/tmp5fajrzs2/tests/tasks/enable_epel.yml:11 ------------------------------- Fix CentOS6 Base repo --------------------------------------------------- 0.02s /tmp/tmp5fajrzs2/tests/tasks/el_repo_setup.yml:2 ------------------------------ Enable EPEL 6 ----------------------------------------------------------- 0.02s /tmp/tmp5fajrzs2/tests/tasks/enable_epel.yml:26 ------------------------------- Enable EPEL 8 ----------------------------------------------------------- 0.02s /tmp/tmp5fajrzs2/tests/tasks/enable_epel.yml:17 ------------------------------- ansible-playbook [core 2.12.6] config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.9/site-packages/ansible ansible collection location = /tmp/tmpdm_c1v_l executable location = /usr/bin/ansible-playbook python version = 3.9.13 (main, May 18 2022, 00:00:00) [GCC 11.3.1 20220421 (Red Hat 11.3.1-2)] jinja version = 2.11.3 libyaml = True Using /etc/ansible/ansible.cfg as config file Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'default', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. PLAYBOOK: _backup.yml ********************************************************** 1 plays in /tmp/tmpn6gexhje/tests/network/_backup.yml PLAY [all] ********************************************************************* META: ran handlers TASK [Get stats of system files] *********************************************** task path: /tmp/tmpn6gexhje/tests/network/_backup.yml:6 Wednesday 03 August 2022 17:16:34 +0000 (0:00:00.018) 0:00:00.018 ****** ok: [/cache/fedora-35.qcow2.snap] => (item=/etc/resolv.conf) => { "ansible_facts": { "discovered_interpreter_python": "/usr/bin/python3" }, "ansible_loop_var": "item", "changed": false, "item": "/etc/resolv.conf", "stat": { "atime": 1659546992.987671, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "binary", "ctime": 1659546992.987671, "dev": 32, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 43746, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": true, "isreg": false, "issock": false, "isuid": false, "lnk_source": "/run/systemd/resolve/stub-resolv.conf", "lnk_target": "../run/systemd/resolve/stub-resolv.conf", "mimetype": "inode/symlink", "mode": "0777", "mtime": 1659338446.0, "nlink": 1, "path": "/etc/resolv.conf", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 39, "uid": 0, "version": null, "wgrp": true, "woth": true, "writeable": true, "wusr": true, "xgrp": true, "xoth": true, "xusr": true } } TASK [Check if system files exist] ********************************************* task path: /tmp/tmpn6gexhje/tests/network/_backup.yml:13 Wednesday 03 August 2022 17:16:34 +0000 (0:00:00.622) 0:00:00.640 ****** [WARNING]: conditional statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found: {{ item.stat.exists }} ok: [/cache/fedora-35.qcow2.snap] => (item={'changed': False, 'stat': {'exists': True, 'path': '/etc/resolv.conf', 'mode': '0777', 'isdir': False, 'ischr': False, 'isblk': False, 'isreg': False, 'isfifo': False, 'islnk': True, 'issock': False, 'uid': 0, 'gid': 0, 'size': 39, 'inode': 43746, 'dev': 32, 'nlink': 1, 'atime': 1659546992.987671, 'mtime': 1659338446.0, 'ctime': 1659546992.987671, 'wusr': True, 'rusr': True, 'xusr': True, 'wgrp': True, 'rgrp': True, 'xgrp': True, 'woth': True, 'roth': True, 'xoth': True, 'isuid': False, 'isgid': False, 'blocks': 8, 'block_size': 4096, 'device_type': 0, 'readable': True, 'writeable': True, 'executable': False, 'lnk_source': '/run/systemd/resolve/stub-resolv.conf', 'lnk_target': '../run/systemd/resolve/stub-resolv.conf', 'pw_name': 'root', 'gr_name': 'root', 'mimetype': 'inode/symlink', 'charset': 'binary', 'version': None, 'attributes': [], 'attr_flags': ''}, 'invocation': {'module_args': {'path': '/etc/resolv.conf', 'follow': False, 'get_md5': False, 'get_checksum': True, 'get_mime': True, 'get_attributes': True, 'checksum_algorithm': 'sha1'}}, 'ansible_facts': {'discovered_interpreter_python': '/usr/bin/python3'}, 'failed': False, 'item': '/etc/resolv.conf', 'ansible_loop_var': 'item'}) => { "ansible_facts": { "_existing_files": " /etc/resolv.conf" }, "ansible_loop_var": "item", "changed": false, "item": { "ansible_facts": { "discovered_interpreter_python": "/usr/bin/python3" }, "ansible_loop_var": "item", "changed": false, "failed": false, "invocation": { "module_args": { "checksum_algorithm": "sha1", "follow": false, "get_attributes": true, "get_checksum": true, "get_md5": false, "get_mime": true, "path": "/etc/resolv.conf" } }, "item": "/etc/resolv.conf", "stat": { "atime": 1659546992.987671, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "binary", "ctime": 1659546992.987671, "dev": 32, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 43746, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": true, "isreg": false, "issock": false, "isuid": false, "lnk_source": "/run/systemd/resolve/stub-resolv.conf", "lnk_target": "../run/systemd/resolve/stub-resolv.conf", "mimetype": "inode/symlink", "mode": "0777", "mtime": 1659338446.0, "nlink": 1, "path": "/etc/resolv.conf", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 39, "uid": 0, "version": null, "wgrp": true, "woth": true, "writeable": true, "wusr": true, "xgrp": true, "xoth": true, "xusr": true } } } TASK [Back up system files] **************************************************** task path: /tmp/tmpn6gexhje/tests/network/_backup.yml:19 Wednesday 03 August 2022 17:16:34 +0000 (0:00:00.036) 0:00:00.676 ****** changed: [/cache/fedora-35.qcow2.snap] => { "changed": true, "cmd": [ "tar", "-cf", "/tmp/network.backup.tar", "--same-owner", "--same-permissions", "/etc/resolv.conf" ], "delta": "0:00:00.004104", "end": "2022-08-03 17:16:34.799851", "rc": 0, "start": "2022-08-03 17:16:34.795747" } STDERR: tar: Removing leading `/' from member names META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-35.qcow2.snap : ok=3 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Wednesday 03 August 2022 17:16:35 +0000 (0:00:00.499) 0:00:01.176 ****** =============================================================================== Get stats of system files ----------------------------------------------- 0.62s /tmp/tmpn6gexhje/tests/network/_backup.yml:6 ---------------------------------- Back up system files ---------------------------------------------------- 0.50s /tmp/tmpn6gexhje/tests/network/_backup.yml:19 --------------------------------- Check if system files exist --------------------------------------------- 0.04s /tmp/tmpn6gexhje/tests/network/_backup.yml:13 --------------------------------- PLAYBOOK: tests_states_initscripts.yml ***************************************** 2 plays in /tmp/tmpn6gexhje/tests/network/tests_states_initscripts.yml PLAY [Run playbook 'playbooks/tests_states.yml' with initscripts as provider] *** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpn6gexhje/tests/network/tests_states_initscripts.yml:4 Wednesday 03 August 2022 17:16:35 +0000 (0:00:00.015) 0:00:01.191 ****** ok: [/cache/fedora-35.qcow2.snap] META: ran handlers TASK [include_tasks] *********************************************************** task path: /tmp/tmpn6gexhje/tests/network/tests_states_initscripts.yml:7 Wednesday 03 August 2022 17:16:36 +0000 (0:00:01.043) 0:00:02.235 ****** included: /tmp/tmpn6gexhje/tests/network/tasks/el_repo_setup.yml for /cache/fedora-35.qcow2.snap TASK [Fix CentOS6 Base repo] *************************************************** task path: /tmp/tmpn6gexhje/tests/network/tasks/el_repo_setup.yml:2 Wednesday 03 August 2022 17:16:36 +0000 (0:00:00.026) 0:00:02.261 ****** skipping: [/cache/fedora-35.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** task path: /tmp/tmpn6gexhje/tests/network/tasks/el_repo_setup.yml:27 Wednesday 03 August 2022 17:16:36 +0000 (0:00:00.021) 0:00:02.283 ****** included: /tmp/tmpn6gexhje/tests/network/tasks/enable_epel.yml for /cache/fedora-35.qcow2.snap TASK [Create EPEL 35] ********************************************************** task path: /tmp/tmpn6gexhje/tests/network/tasks/enable_epel.yml:4 Wednesday 03 August 2022 17:16:36 +0000 (0:00:00.035) 0:00:02.318 ****** skipping: [/cache/fedora-35.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 7] *********************************************************** task path: /tmp/tmpn6gexhje/tests/network/tasks/enable_epel.yml:11 Wednesday 03 August 2022 17:16:36 +0000 (0:00:00.019) 0:00:02.338 ****** skipping: [/cache/fedora-35.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 8] *********************************************************** task path: /tmp/tmpn6gexhje/tests/network/tasks/enable_epel.yml:17 Wednesday 03 August 2022 17:16:36 +0000 (0:00:00.019) 0:00:02.358 ****** skipping: [/cache/fedora-35.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 6] *********************************************************** task path: /tmp/tmpn6gexhje/tests/network/tasks/enable_epel.yml:26 Wednesday 03 August 2022 17:16:36 +0000 (0:00:00.019) 0:00:02.377 ****** skipping: [/cache/fedora-35.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set network provider to 'initscripts'] *********************************** task path: /tmp/tmpn6gexhje/tests/network/tests_states_initscripts.yml:8 Wednesday 03 August 2022 17:16:36 +0000 (0:00:00.019) 0:00:02.396 ****** ok: [/cache/fedora-35.qcow2.snap] => { "ansible_facts": { "network_provider": "initscripts" }, "changed": false } META: ran handlers META: ran handlers PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpn6gexhje/tests/network/playbooks/tests_states.yml:3 Wednesday 03 August 2022 17:16:36 +0000 (0:00:00.046) 0:00:02.443 ****** skipping: [/cache/fedora-35.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } META: ran handlers TASK [Show playbook name] ****************************************************** task path: /tmp/tmpn6gexhje/tests/network/playbooks/tests_states.yml:10 Wednesday 03 August 2022 17:16:36 +0000 (0:00:00.041) 0:00:02.485 ****** skipping: [/cache/fedora-35.qcow2.snap] => {} TASK [include_tasks] *********************************************************** task path: /tmp/tmpn6gexhje/tests/network/playbooks/tests_states.yml:18 Wednesday 03 August 2022 17:16:36 +0000 (0:00:00.030) 0:00:02.516 ****** skipping: [/cache/fedora-35.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** task path: /tmp/tmpn6gexhje/tests/network/playbooks/tests_states.yml:39 Wednesday 03 August 2022 17:16:36 +0000 (0:00:00.030) 0:00:02.547 ****** skipping: [/cache/fedora-35.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** task path: /tmp/tmpn6gexhje/tests/network/playbooks/tests_states.yml:57 Wednesday 03 August 2022 17:16:36 +0000 (0:00:00.030) 0:00:02.578 ****** skipping: [/cache/fedora-35.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** task path: /tmp/tmpn6gexhje/tests/network/playbooks/tests_states.yml:73 Wednesday 03 August 2022 17:16:36 +0000 (0:00:00.030) 0:00:02.609 ****** skipping: [/cache/fedora-35.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** task path: /tmp/tmpn6gexhje/tests/network/playbooks/tests_states.yml:90 Wednesday 03 August 2022 17:16:36 +0000 (0:00:00.030) 0:00:02.639 ****** skipping: [/cache/fedora-35.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** task path: /tmp/tmpn6gexhje/tests/network/playbooks/tests_states.yml:110 Wednesday 03 August 2022 17:16:36 +0000 (0:00:00.032) 0:00:02.671 ****** skipping: [/cache/fedora-35.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-35.qcow2.snap : ok=7 changed=1 unreachable=0 failed=0 skipped=13 rescued=0 ignored=0 Wednesday 03 August 2022 17:16:36 +0000 (0:00:00.037) 0:00:02.709 ****** =============================================================================== Gathering Facts --------------------------------------------------------- 1.04s /tmp/tmpn6gexhje/tests/network/tests_states_initscripts.yml:4 ----------------- Get stats of system files ----------------------------------------------- 0.62s /tmp/tmpn6gexhje/tests/network/_backup.yml:6 ---------------------------------- Back up system files ---------------------------------------------------- 0.50s /tmp/tmpn6gexhje/tests/network/_backup.yml:19 --------------------------------- Set network provider to 'initscripts' ----------------------------------- 0.05s /tmp/tmpn6gexhje/tests/network/tests_states_initscripts.yml:8 ----------------- Gathering Facts --------------------------------------------------------- 0.04s /tmp/tmpn6gexhje/tests/network/playbooks/tests_states.yml:3 ------------------- include_tasks ----------------------------------------------------------- 0.04s /tmp/tmpn6gexhje/tests/network/playbooks/tests_states.yml:110 ----------------- Check if system files exist --------------------------------------------- 0.04s /tmp/tmpn6gexhje/tests/network/_backup.yml:13 --------------------------------- include_tasks ----------------------------------------------------------- 0.04s /tmp/tmpn6gexhje/tests/network/tasks/el_repo_setup.yml:27 --------------------- include_tasks ----------------------------------------------------------- 0.03s /tmp/tmpn6gexhje/tests/network/playbooks/tests_states.yml:90 ------------------ Show playbook name ------------------------------------------------------ 0.03s /tmp/tmpn6gexhje/tests/network/playbooks/tests_states.yml:10 ------------------ include_tasks ----------------------------------------------------------- 0.03s /tmp/tmpn6gexhje/tests/network/playbooks/tests_states.yml:57 ------------------ include_tasks ----------------------------------------------------------- 0.03s /tmp/tmpn6gexhje/tests/network/playbooks/tests_states.yml:39 ------------------ include_tasks ----------------------------------------------------------- 0.03s /tmp/tmpn6gexhje/tests/network/playbooks/tests_states.yml:18 ------------------ include_tasks ----------------------------------------------------------- 0.03s /tmp/tmpn6gexhje/tests/network/playbooks/tests_states.yml:73 ------------------ include_tasks ----------------------------------------------------------- 0.03s /tmp/tmpn6gexhje/tests/network/tests_states_initscripts.yml:7 ----------------- Fix CentOS6 Base repo --------------------------------------------------- 0.02s /tmp/tmpn6gexhje/tests/network/tasks/el_repo_setup.yml:2 ---------------------- Create EPEL 35 ---------------------------------------------------------- 0.02s /tmp/tmpn6gexhje/tests/network/tasks/enable_epel.yml:4 ------------------------ Enable EPEL 7 ----------------------------------------------------------- 0.02s /tmp/tmpn6gexhje/tests/network/tasks/enable_epel.yml:11 ----------------------- Enable EPEL 8 ----------------------------------------------------------- 0.02s /tmp/tmpn6gexhje/tests/network/tasks/enable_epel.yml:17 ----------------------- Enable EPEL 6 ----------------------------------------------------------- 0.02s /tmp/tmpn6gexhje/tests/network/tasks/enable_epel.yml:26 ----------------------- PLAYBOOK: _restore.yml ********************************************************* 1 plays in /tmp/tmpn6gexhje/tests/network/_restore.yml PLAY [all] ********************************************************************* META: ran handlers TASK [Restore system files] **************************************************** task path: /tmp/tmpn6gexhje/tests/network/_restore.yml:4 Wednesday 03 August 2022 17:16:36 +0000 (0:00:00.019) 0:00:02.728 ****** changed: [/cache/fedora-35.qcow2.snap] => { "changed": true, "cmd": "(cd /; tar -xf /tmp/network.backup.tar)", "delta": "0:00:00.006638", "end": "2022-08-03 17:16:36.736171", "rc": 0, "start": "2022-08-03 17:16:36.729533" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-35.qcow2.snap : ok=8 changed=2 unreachable=0 failed=0 skipped=13 rescued=0 ignored=0 Wednesday 03 August 2022 17:16:37 +0000 (0:00:00.388) 0:00:03.116 ****** =============================================================================== Gathering Facts --------------------------------------------------------- 1.04s /tmp/tmpn6gexhje/tests/network/tests_states_initscripts.yml:4 ----------------- Get stats of system files ----------------------------------------------- 0.62s /tmp/tmpn6gexhje/tests/network/_backup.yml:6 ---------------------------------- Back up system files ---------------------------------------------------- 0.50s /tmp/tmpn6gexhje/tests/network/_backup.yml:19 --------------------------------- Restore system files ---------------------------------------------------- 0.39s /tmp/tmpn6gexhje/tests/network/_restore.yml:4 --------------------------------- Set network provider to 'initscripts' ----------------------------------- 0.05s /tmp/tmpn6gexhje/tests/network/tests_states_initscripts.yml:8 ----------------- Gathering Facts --------------------------------------------------------- 0.04s /tmp/tmpn6gexhje/tests/network/playbooks/tests_states.yml:3 ------------------- include_tasks ----------------------------------------------------------- 0.04s /tmp/tmpn6gexhje/tests/network/playbooks/tests_states.yml:110 ----------------- Check if system files exist --------------------------------------------- 0.04s /tmp/tmpn6gexhje/tests/network/_backup.yml:13 --------------------------------- include_tasks ----------------------------------------------------------- 0.04s /tmp/tmpn6gexhje/tests/network/tasks/el_repo_setup.yml:27 --------------------- include_tasks ----------------------------------------------------------- 0.03s /tmp/tmpn6gexhje/tests/network/playbooks/tests_states.yml:90 ------------------ Show playbook name ------------------------------------------------------ 0.03s /tmp/tmpn6gexhje/tests/network/playbooks/tests_states.yml:10 ------------------ include_tasks ----------------------------------------------------------- 0.03s /tmp/tmpn6gexhje/tests/network/playbooks/tests_states.yml:57 ------------------ include_tasks ----------------------------------------------------------- 0.03s /tmp/tmpn6gexhje/tests/network/playbooks/tests_states.yml:39 ------------------ include_tasks ----------------------------------------------------------- 0.03s /tmp/tmpn6gexhje/tests/network/playbooks/tests_states.yml:18 ------------------ include_tasks ----------------------------------------------------------- 0.03s /tmp/tmpn6gexhje/tests/network/playbooks/tests_states.yml:73 ------------------ include_tasks ----------------------------------------------------------- 0.03s /tmp/tmpn6gexhje/tests/network/tests_states_initscripts.yml:7 ----------------- Fix CentOS6 Base repo --------------------------------------------------- 0.02s /tmp/tmpn6gexhje/tests/network/tasks/el_repo_setup.yml:2 ---------------------- Create EPEL 35 ---------------------------------------------------------- 0.02s /tmp/tmpn6gexhje/tests/network/tasks/enable_epel.yml:4 ------------------------ Enable EPEL 7 ----------------------------------------------------------- 0.02s /tmp/tmpn6gexhje/tests/network/tasks/enable_epel.yml:11 ----------------------- Enable EPEL 8 ----------------------------------------------------------- 0.02s /tmp/tmpn6gexhje/tests/network/tasks/enable_epel.yml:17 -----------------------