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/tmp40vowjjo 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/tmp05ac0kav/tests/_backup.yml PLAY [all] ********************************************************************* META: ran handlers TASK [Get stats of system files] *********************************************** task path: /tmp/tmp05ac0kav/tests/_backup.yml:6 Wednesday 03 August 2022 16:19:01 +0000 (0:00:00.019) 0:00:00.019 ****** ok: [/cache/centos-9.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": 1659543540.4149354, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "fba82b5b78ea37322e584bf452f6f8e163f0869b", "ctime": 1659543540.4159353, "dev": 64513, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 4210438, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1659542505.0, "nlink": 1, "path": "/etc/resolv.conf", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 90, "uid": 0, "version": "1127737530", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Check if system files exist] ********************************************* task path: /tmp/tmp05ac0kav/tests/_backup.yml:13 Wednesday 03 August 2022 16:19:02 +0000 (0:00:00.617) 0:00:00.637 ****** [WARNING]: conditional statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found: {{ item.stat.exists }} ok: [/cache/centos-9.qcow2.snap] => (item={'changed': False, 'stat': {'exists': True, 'path': '/etc/resolv.conf', 'mode': '0644', 'isdir': False, 'ischr': False, 'isblk': False, 'isreg': True, 'isfifo': False, 'islnk': False, 'issock': False, 'uid': 0, 'gid': 0, 'size': 90, 'inode': 4210438, 'dev': 64513, 'nlink': 1, 'atime': 1659543540.4149354, 'mtime': 1659542505.0, 'ctime': 1659543540.4159353, 'wusr': True, 'rusr': True, 'xusr': False, 'wgrp': False, 'rgrp': True, 'xgrp': False, 'woth': False, 'roth': True, 'xoth': False, 'isuid': False, 'isgid': False, 'blocks': 8, 'block_size': 4096, 'device_type': 0, 'readable': True, 'writeable': True, 'executable': False, 'pw_name': 'root', 'gr_name': 'root', 'checksum': 'fba82b5b78ea37322e584bf452f6f8e163f0869b', 'mimetype': 'text/plain', 'charset': 'us-ascii', 'version': '1127737530', '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": 1659543540.4149354, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "fba82b5b78ea37322e584bf452f6f8e163f0869b", "ctime": 1659543540.4159353, "dev": 64513, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 4210438, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1659542505.0, "nlink": 1, "path": "/etc/resolv.conf", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 90, "uid": 0, "version": "1127737530", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } } TASK [Back up system files] **************************************************** task path: /tmp/tmp05ac0kav/tests/_backup.yml:19 Wednesday 03 August 2022 16:19:02 +0000 (0:00:00.036) 0:00:00.674 ****** changed: [/cache/centos-9.qcow2.snap] => { "changed": true, "cmd": [ "tar", "-cf", "/tmp/network.backup.tar", "--same-owner", "--same-permissions", "/etc/resolv.conf" ], "delta": "0:00:00.003779", "end": "2022-08-03 12:19:02.219407", "rc": 0, "start": "2022-08-03 12:19:02.215628" } STDERR: tar: Removing leading `/' from member names META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-9.qcow2.snap : ok=3 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Wednesday 03 August 2022 16:19:02 +0000 (0:00:00.495) 0:00:01.169 ****** =============================================================================== Get stats of system files ----------------------------------------------- 0.62s /tmp/tmp05ac0kav/tests/_backup.yml:6 ------------------------------------------ Back up system files ---------------------------------------------------- 0.50s /tmp/tmp05ac0kav/tests/_backup.yml:19 ----------------------------------------- Check if system files exist --------------------------------------------- 0.04s /tmp/tmp05ac0kav/tests/_backup.yml:13 ----------------------------------------- PLAYBOOK: tests_states_initscripts.yml ***************************************** 2 plays in /tmp/tmp05ac0kav/tests/tests_states_initscripts.yml PLAY [Run playbook 'playbooks/tests_states.yml' with initscripts as provider] *** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp05ac0kav/tests/tests_states_initscripts.yml:4 Wednesday 03 August 2022 16:19:02 +0000 (0:00:00.015) 0:00:01.185 ****** ok: [/cache/centos-9.qcow2.snap] META: ran handlers TASK [include_tasks] *********************************************************** task path: /tmp/tmp05ac0kav/tests/tests_states_initscripts.yml:7 Wednesday 03 August 2022 16:19:03 +0000 (0:00:01.055) 0:00:02.240 ****** included: /tmp/tmp05ac0kav/tests/tasks/el_repo_setup.yml for /cache/centos-9.qcow2.snap TASK [Fix CentOS6 Base repo] *************************************************** task path: /tmp/tmp05ac0kav/tests/tasks/el_repo_setup.yml:2 Wednesday 03 August 2022 16:19:03 +0000 (0:00:00.026) 0:00:02.267 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** task path: /tmp/tmp05ac0kav/tests/tasks/el_repo_setup.yml:27 Wednesday 03 August 2022 16:19:03 +0000 (0:00:00.021) 0:00:02.289 ****** included: /tmp/tmp05ac0kav/tests/tasks/enable_epel.yml for /cache/centos-9.qcow2.snap TASK [Create EPEL 9] *********************************************************** task path: /tmp/tmp05ac0kav/tests/tasks/enable_epel.yml:4 Wednesday 03 August 2022 16:19:04 +0000 (0:00:00.028) 0:00:02.317 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 7] *********************************************************** task path: /tmp/tmp05ac0kav/tests/tasks/enable_epel.yml:11 Wednesday 03 August 2022 16:19:04 +0000 (0:00:00.019) 0:00:02.337 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 8] *********************************************************** task path: /tmp/tmp05ac0kav/tests/tasks/enable_epel.yml:17 Wednesday 03 August 2022 16:19:04 +0000 (0:00:00.019) 0:00:02.357 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 6] *********************************************************** task path: /tmp/tmp05ac0kav/tests/tasks/enable_epel.yml:26 Wednesday 03 August 2022 16:19:04 +0000 (0:00:00.025) 0:00:02.382 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set network provider to 'initscripts'] *********************************** task path: /tmp/tmp05ac0kav/tests/tests_states_initscripts.yml:8 Wednesday 03 August 2022 16:19:04 +0000 (0:00:00.021) 0:00:02.404 ****** ok: [/cache/centos-9.qcow2.snap] => { "ansible_facts": { "network_provider": "initscripts" }, "changed": false } META: ran handlers META: ran handlers PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp05ac0kav/tests/playbooks/tests_states.yml:3 Wednesday 03 August 2022 16:19:04 +0000 (0:00:00.047) 0:00:02.451 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } META: ran handlers TASK [Show playbook name] ****************************************************** task path: /tmp/tmp05ac0kav/tests/playbooks/tests_states.yml:10 Wednesday 03 August 2022 16:19:04 +0000 (0:00:00.040) 0:00:02.492 ****** skipping: [/cache/centos-9.qcow2.snap] => {} TASK [include_tasks] *********************************************************** task path: /tmp/tmp05ac0kav/tests/playbooks/tests_states.yml:18 Wednesday 03 August 2022 16:19:04 +0000 (0:00:00.032) 0:00:02.524 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** task path: /tmp/tmp05ac0kav/tests/playbooks/tests_states.yml:39 Wednesday 03 August 2022 16:19:04 +0000 (0:00:00.035) 0:00:02.560 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** task path: /tmp/tmp05ac0kav/tests/playbooks/tests_states.yml:57 Wednesday 03 August 2022 16:19:04 +0000 (0:00:00.034) 0:00:02.594 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** task path: /tmp/tmp05ac0kav/tests/playbooks/tests_states.yml:73 Wednesday 03 August 2022 16:19:04 +0000 (0:00:00.032) 0:00:02.626 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** task path: /tmp/tmp05ac0kav/tests/playbooks/tests_states.yml:91 Wednesday 03 August 2022 16:19:04 +0000 (0:00:00.031) 0:00:02.658 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** task path: /tmp/tmp05ac0kav/tests/playbooks/tests_states.yml:111 Wednesday 03 August 2022 16:19:04 +0000 (0:00:00.031) 0:00:02.690 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-9.qcow2.snap : ok=7 changed=1 unreachable=0 failed=0 skipped=13 rescued=0 ignored=0 Wednesday 03 August 2022 16:19:04 +0000 (0:00:00.039) 0:00:02.729 ****** =============================================================================== Gathering Facts --------------------------------------------------------- 1.06s /tmp/tmp05ac0kav/tests/tests_states_initscripts.yml:4 ------------------------- Get stats of system files ----------------------------------------------- 0.62s /tmp/tmp05ac0kav/tests/_backup.yml:6 ------------------------------------------ Back up system files ---------------------------------------------------- 0.50s /tmp/tmp05ac0kav/tests/_backup.yml:19 ----------------------------------------- Set network provider to 'initscripts' ----------------------------------- 0.05s /tmp/tmp05ac0kav/tests/tests_states_initscripts.yml:8 ------------------------- Gathering Facts --------------------------------------------------------- 0.04s /tmp/tmp05ac0kav/tests/playbooks/tests_states.yml:3 --------------------------- include_tasks ----------------------------------------------------------- 0.04s /tmp/tmp05ac0kav/tests/playbooks/tests_states.yml:111 ------------------------- Check if system files exist --------------------------------------------- 0.04s /tmp/tmp05ac0kav/tests/_backup.yml:13 ----------------------------------------- include_tasks ----------------------------------------------------------- 0.04s /tmp/tmp05ac0kav/tests/playbooks/tests_states.yml:18 -------------------------- include_tasks ----------------------------------------------------------- 0.03s /tmp/tmp05ac0kav/tests/playbooks/tests_states.yml:39 -------------------------- include_tasks ----------------------------------------------------------- 0.03s /tmp/tmp05ac0kav/tests/playbooks/tests_states.yml:57 -------------------------- Show playbook name ------------------------------------------------------ 0.03s /tmp/tmp05ac0kav/tests/playbooks/tests_states.yml:10 -------------------------- include_tasks ----------------------------------------------------------- 0.03s /tmp/tmp05ac0kav/tests/playbooks/tests_states.yml:91 -------------------------- include_tasks ----------------------------------------------------------- 0.03s /tmp/tmp05ac0kav/tests/playbooks/tests_states.yml:73 -------------------------- include_tasks ----------------------------------------------------------- 0.03s /tmp/tmp05ac0kav/tests/tasks/el_repo_setup.yml:27 ----------------------------- include_tasks ----------------------------------------------------------- 0.03s /tmp/tmp05ac0kav/tests/tests_states_initscripts.yml:7 ------------------------- Enable EPEL 8 ----------------------------------------------------------- 0.03s /tmp/tmp05ac0kav/tests/tasks/enable_epel.yml:17 ------------------------------- Enable EPEL 6 ----------------------------------------------------------- 0.02s /tmp/tmp05ac0kav/tests/tasks/enable_epel.yml:26 ------------------------------- Fix CentOS6 Base repo --------------------------------------------------- 0.02s /tmp/tmp05ac0kav/tests/tasks/el_repo_setup.yml:2 ------------------------------ Enable EPEL 7 ----------------------------------------------------------- 0.02s /tmp/tmp05ac0kav/tests/tasks/enable_epel.yml:11 ------------------------------- Create EPEL 9 ----------------------------------------------------------- 0.02s /tmp/tmp05ac0kav/tests/tasks/enable_epel.yml:4 -------------------------------- PLAYBOOK: _restore.yml ********************************************************* 1 plays in /tmp/tmp05ac0kav/tests/_restore.yml PLAY [all] ********************************************************************* META: ran handlers TASK [Restore system files] **************************************************** task path: /tmp/tmp05ac0kav/tests/_restore.yml:4 Wednesday 03 August 2022 16:19:04 +0000 (0:00:00.019) 0:00:02.749 ****** changed: [/cache/centos-9.qcow2.snap] => { "changed": true, "cmd": "(cd /; tar -xf /tmp/network.backup.tar)", "delta": "0:00:00.005558", "end": "2022-08-03 12:19:04.178208", "rc": 0, "start": "2022-08-03 12:19:04.172650" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-9.qcow2.snap : ok=8 changed=2 unreachable=0 failed=0 skipped=13 rescued=0 ignored=0 Wednesday 03 August 2022 16:19:04 +0000 (0:00:00.386) 0:00:03.135 ****** =============================================================================== Gathering Facts --------------------------------------------------------- 1.06s /tmp/tmp05ac0kav/tests/tests_states_initscripts.yml:4 ------------------------- Get stats of system files ----------------------------------------------- 0.62s /tmp/tmp05ac0kav/tests/_backup.yml:6 ------------------------------------------ Back up system files ---------------------------------------------------- 0.50s /tmp/tmp05ac0kav/tests/_backup.yml:19 ----------------------------------------- Restore system files ---------------------------------------------------- 0.39s /tmp/tmp05ac0kav/tests/_restore.yml:4 ----------------------------------------- Set network provider to 'initscripts' ----------------------------------- 0.05s /tmp/tmp05ac0kav/tests/tests_states_initscripts.yml:8 ------------------------- Gathering Facts --------------------------------------------------------- 0.04s /tmp/tmp05ac0kav/tests/playbooks/tests_states.yml:3 --------------------------- include_tasks ----------------------------------------------------------- 0.04s /tmp/tmp05ac0kav/tests/playbooks/tests_states.yml:111 ------------------------- Check if system files exist --------------------------------------------- 0.04s /tmp/tmp05ac0kav/tests/_backup.yml:13 ----------------------------------------- include_tasks ----------------------------------------------------------- 0.04s /tmp/tmp05ac0kav/tests/playbooks/tests_states.yml:18 -------------------------- include_tasks ----------------------------------------------------------- 0.03s /tmp/tmp05ac0kav/tests/playbooks/tests_states.yml:39 -------------------------- include_tasks ----------------------------------------------------------- 0.03s /tmp/tmp05ac0kav/tests/playbooks/tests_states.yml:57 -------------------------- Show playbook name ------------------------------------------------------ 0.03s /tmp/tmp05ac0kav/tests/playbooks/tests_states.yml:10 -------------------------- include_tasks ----------------------------------------------------------- 0.03s /tmp/tmp05ac0kav/tests/playbooks/tests_states.yml:91 -------------------------- include_tasks ----------------------------------------------------------- 0.03s /tmp/tmp05ac0kav/tests/playbooks/tests_states.yml:73 -------------------------- include_tasks ----------------------------------------------------------- 0.03s /tmp/tmp05ac0kav/tests/tasks/el_repo_setup.yml:27 ----------------------------- include_tasks ----------------------------------------------------------- 0.03s /tmp/tmp05ac0kav/tests/tests_states_initscripts.yml:7 ------------------------- Enable EPEL 8 ----------------------------------------------------------- 0.03s /tmp/tmp05ac0kav/tests/tasks/enable_epel.yml:17 ------------------------------- Enable EPEL 6 ----------------------------------------------------------- 0.02s /tmp/tmp05ac0kav/tests/tasks/enable_epel.yml:26 ------------------------------- Fix CentOS6 Base repo --------------------------------------------------- 0.02s /tmp/tmp05ac0kav/tests/tasks/el_repo_setup.yml:2 ------------------------------ Enable EPEL 7 ----------------------------------------------------------- 0.02s /tmp/tmp05ac0kav/tests/tasks/enable_epel.yml:11 ------------------------------- 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/tmp40vowjjo 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/tmpem3y1lsc/tests/network/_backup.yml PLAY [all] ********************************************************************* META: ran handlers TASK [Get stats of system files] *********************************************** task path: /tmp/tmpem3y1lsc/tests/network/_backup.yml:6 Wednesday 03 August 2022 16:40:13 +0000 (0:00:00.018) 0:00:00.018 ****** ok: [/cache/centos-9.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": 1659544812.0919025, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "fba82b5b78ea37322e584bf452f6f8e163f0869b", "ctime": 1659544812.0919025, "dev": 64513, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 4210118, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1659543778.0, "nlink": 1, "path": "/etc/resolv.conf", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 90, "uid": 0, "version": "561080191", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Check if system files exist] ********************************************* task path: /tmp/tmpem3y1lsc/tests/network/_backup.yml:13 Wednesday 03 August 2022 16:40:14 +0000 (0:00:00.601) 0:00:00.620 ****** [WARNING]: conditional statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found: {{ item.stat.exists }} ok: [/cache/centos-9.qcow2.snap] => (item={'changed': False, 'stat': {'exists': True, 'path': '/etc/resolv.conf', 'mode': '0644', 'isdir': False, 'ischr': False, 'isblk': False, 'isreg': True, 'isfifo': False, 'islnk': False, 'issock': False, 'uid': 0, 'gid': 0, 'size': 90, 'inode': 4210118, 'dev': 64513, 'nlink': 1, 'atime': 1659544812.0919025, 'mtime': 1659543778.0, 'ctime': 1659544812.0919025, 'wusr': True, 'rusr': True, 'xusr': False, 'wgrp': False, 'rgrp': True, 'xgrp': False, 'woth': False, 'roth': True, 'xoth': False, 'isuid': False, 'isgid': False, 'blocks': 8, 'block_size': 4096, 'device_type': 0, 'readable': True, 'writeable': True, 'executable': False, 'pw_name': 'root', 'gr_name': 'root', 'checksum': 'fba82b5b78ea37322e584bf452f6f8e163f0869b', 'mimetype': 'text/plain', 'charset': 'us-ascii', 'version': '561080191', '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": 1659544812.0919025, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "fba82b5b78ea37322e584bf452f6f8e163f0869b", "ctime": 1659544812.0919025, "dev": 64513, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 4210118, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1659543778.0, "nlink": 1, "path": "/etc/resolv.conf", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 90, "uid": 0, "version": "561080191", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } } TASK [Back up system files] **************************************************** task path: /tmp/tmpem3y1lsc/tests/network/_backup.yml:19 Wednesday 03 August 2022 16:40:14 +0000 (0:00:00.035) 0:00:00.656 ****** changed: [/cache/centos-9.qcow2.snap] => { "changed": true, "cmd": [ "tar", "-cf", "/tmp/network.backup.tar", "--same-owner", "--same-permissions", "/etc/resolv.conf" ], "delta": "0:00:00.003971", "end": "2022-08-03 12:40:13.837949", "rc": 0, "start": "2022-08-03 12:40:13.833978" } STDERR: tar: Removing leading `/' from member names META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-9.qcow2.snap : ok=3 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Wednesday 03 August 2022 16:40:15 +0000 (0:00:00.484) 0:00:01.141 ****** =============================================================================== Get stats of system files ----------------------------------------------- 0.60s /tmp/tmpem3y1lsc/tests/network/_backup.yml:6 ---------------------------------- Back up system files ---------------------------------------------------- 0.48s /tmp/tmpem3y1lsc/tests/network/_backup.yml:19 --------------------------------- Check if system files exist --------------------------------------------- 0.04s /tmp/tmpem3y1lsc/tests/network/_backup.yml:13 --------------------------------- PLAYBOOK: tests_states_initscripts.yml ***************************************** 2 plays in /tmp/tmpem3y1lsc/tests/network/tests_states_initscripts.yml PLAY [Run playbook 'playbooks/tests_states.yml' with initscripts as provider] *** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpem3y1lsc/tests/network/tests_states_initscripts.yml:4 Wednesday 03 August 2022 16:40:15 +0000 (0:00:00.015) 0:00:01.156 ****** ok: [/cache/centos-9.qcow2.snap] META: ran handlers TASK [include_tasks] *********************************************************** task path: /tmp/tmpem3y1lsc/tests/network/tests_states_initscripts.yml:7 Wednesday 03 August 2022 16:40:16 +0000 (0:00:01.053) 0:00:02.209 ****** included: /tmp/tmpem3y1lsc/tests/network/tasks/el_repo_setup.yml for /cache/centos-9.qcow2.snap TASK [Fix CentOS6 Base repo] *************************************************** task path: /tmp/tmpem3y1lsc/tests/network/tasks/el_repo_setup.yml:2 Wednesday 03 August 2022 16:40:16 +0000 (0:00:00.027) 0:00:02.237 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** task path: /tmp/tmpem3y1lsc/tests/network/tasks/el_repo_setup.yml:27 Wednesday 03 August 2022 16:40:16 +0000 (0:00:00.021) 0:00:02.258 ****** included: /tmp/tmpem3y1lsc/tests/network/tasks/enable_epel.yml for /cache/centos-9.qcow2.snap TASK [Create EPEL 9] *********************************************************** task path: /tmp/tmpem3y1lsc/tests/network/tasks/enable_epel.yml:4 Wednesday 03 August 2022 16:40:16 +0000 (0:00:00.030) 0:00:02.289 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 7] *********************************************************** task path: /tmp/tmpem3y1lsc/tests/network/tasks/enable_epel.yml:11 Wednesday 03 August 2022 16:40:16 +0000 (0:00:00.021) 0:00:02.310 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 8] *********************************************************** task path: /tmp/tmpem3y1lsc/tests/network/tasks/enable_epel.yml:17 Wednesday 03 August 2022 16:40:16 +0000 (0:00:00.020) 0:00:02.331 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 6] *********************************************************** task path: /tmp/tmpem3y1lsc/tests/network/tasks/enable_epel.yml:26 Wednesday 03 August 2022 16:40:16 +0000 (0:00:00.024) 0:00:02.356 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set network provider to 'initscripts'] *********************************** task path: /tmp/tmpem3y1lsc/tests/network/tests_states_initscripts.yml:8 Wednesday 03 August 2022 16:40:16 +0000 (0:00:00.021) 0:00:02.377 ****** ok: [/cache/centos-9.qcow2.snap] => { "ansible_facts": { "network_provider": "initscripts" }, "changed": false } META: ran handlers META: ran handlers PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tests_states.yml:3 Wednesday 03 August 2022 16:40:16 +0000 (0:00:00.043) 0:00:02.420 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } META: ran handlers TASK [Show playbook name] ****************************************************** task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tests_states.yml:10 Wednesday 03 August 2022 16:40:16 +0000 (0:00:00.037) 0:00:02.458 ****** skipping: [/cache/centos-9.qcow2.snap] => {} TASK [include_tasks] *********************************************************** task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tests_states.yml:18 Wednesday 03 August 2022 16:40:16 +0000 (0:00:00.032) 0:00:02.490 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tests_states.yml:39 Wednesday 03 August 2022 16:40:16 +0000 (0:00:00.032) 0:00:02.523 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tests_states.yml:57 Wednesday 03 August 2022 16:40:16 +0000 (0:00:00.031) 0:00:02.555 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tests_states.yml:73 Wednesday 03 August 2022 16:40:16 +0000 (0:00:00.032) 0:00:02.587 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tests_states.yml:90 Wednesday 03 August 2022 16:40:16 +0000 (0:00:00.031) 0:00:02.618 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tests_states.yml:110 Wednesday 03 August 2022 16:40:16 +0000 (0:00:00.031) 0:00:02.650 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-9.qcow2.snap : ok=7 changed=1 unreachable=0 failed=0 skipped=13 rescued=0 ignored=0 Wednesday 03 August 2022 16:40:16 +0000 (0:00:00.039) 0:00:02.690 ****** =============================================================================== Gathering Facts --------------------------------------------------------- 1.05s /tmp/tmpem3y1lsc/tests/network/tests_states_initscripts.yml:4 ----------------- Get stats of system files ----------------------------------------------- 0.60s /tmp/tmpem3y1lsc/tests/network/_backup.yml:6 ---------------------------------- Back up system files ---------------------------------------------------- 0.48s /tmp/tmpem3y1lsc/tests/network/_backup.yml:19 --------------------------------- Set network provider to 'initscripts' ----------------------------------- 0.04s /tmp/tmpem3y1lsc/tests/network/tests_states_initscripts.yml:8 ----------------- include_tasks ----------------------------------------------------------- 0.04s /tmp/tmpem3y1lsc/tests/network/playbooks/tests_states.yml:110 ----------------- Gathering Facts --------------------------------------------------------- 0.04s /tmp/tmpem3y1lsc/tests/network/playbooks/tests_states.yml:3 ------------------- Check if system files exist --------------------------------------------- 0.04s /tmp/tmpem3y1lsc/tests/network/_backup.yml:13 --------------------------------- include_tasks ----------------------------------------------------------- 0.03s /tmp/tmpem3y1lsc/tests/network/playbooks/tests_states.yml:57 ------------------ include_tasks ----------------------------------------------------------- 0.03s /tmp/tmpem3y1lsc/tests/network/playbooks/tests_states.yml:18 ------------------ Show playbook name ------------------------------------------------------ 0.03s /tmp/tmpem3y1lsc/tests/network/playbooks/tests_states.yml:10 ------------------ include_tasks ----------------------------------------------------------- 0.03s /tmp/tmpem3y1lsc/tests/network/playbooks/tests_states.yml:39 ------------------ include_tasks ----------------------------------------------------------- 0.03s /tmp/tmpem3y1lsc/tests/network/playbooks/tests_states.yml:90 ------------------ include_tasks ----------------------------------------------------------- 0.03s /tmp/tmpem3y1lsc/tests/network/playbooks/tests_states.yml:73 ------------------ include_tasks ----------------------------------------------------------- 0.03s /tmp/tmpem3y1lsc/tests/network/tasks/el_repo_setup.yml:27 --------------------- include_tasks ----------------------------------------------------------- 0.03s /tmp/tmpem3y1lsc/tests/network/tests_states_initscripts.yml:7 ----------------- Enable EPEL 8 ----------------------------------------------------------- 0.02s /tmp/tmpem3y1lsc/tests/network/tasks/enable_epel.yml:17 ----------------------- Fix CentOS6 Base repo --------------------------------------------------- 0.02s /tmp/tmpem3y1lsc/tests/network/tasks/el_repo_setup.yml:2 ---------------------- Create EPEL 9 ----------------------------------------------------------- 0.02s /tmp/tmpem3y1lsc/tests/network/tasks/enable_epel.yml:4 ------------------------ Enable EPEL 6 ----------------------------------------------------------- 0.02s /tmp/tmpem3y1lsc/tests/network/tasks/enable_epel.yml:26 ----------------------- Enable EPEL 7 ----------------------------------------------------------- 0.02s /tmp/tmpem3y1lsc/tests/network/tasks/enable_epel.yml:11 ----------------------- PLAYBOOK: _restore.yml ********************************************************* 1 plays in /tmp/tmpem3y1lsc/tests/network/_restore.yml PLAY [all] ********************************************************************* META: ran handlers TASK [Restore system files] **************************************************** task path: /tmp/tmpem3y1lsc/tests/network/_restore.yml:4 Wednesday 03 August 2022 16:40:16 +0000 (0:00:00.019) 0:00:02.710 ****** changed: [/cache/centos-9.qcow2.snap] => { "changed": true, "cmd": "(cd /; tar -xf /tmp/network.backup.tar)", "delta": "0:00:00.006297", "end": "2022-08-03 12:40:15.784874", "rc": 0, "start": "2022-08-03 12:40:15.778577" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-9.qcow2.snap : ok=8 changed=2 unreachable=0 failed=0 skipped=13 rescued=0 ignored=0 Wednesday 03 August 2022 16:40:17 +0000 (0:00:00.389) 0:00:03.099 ****** =============================================================================== Gathering Facts --------------------------------------------------------- 1.05s /tmp/tmpem3y1lsc/tests/network/tests_states_initscripts.yml:4 ----------------- Get stats of system files ----------------------------------------------- 0.60s /tmp/tmpem3y1lsc/tests/network/_backup.yml:6 ---------------------------------- Back up system files ---------------------------------------------------- 0.48s /tmp/tmpem3y1lsc/tests/network/_backup.yml:19 --------------------------------- Restore system files ---------------------------------------------------- 0.39s /tmp/tmpem3y1lsc/tests/network/_restore.yml:4 --------------------------------- Set network provider to 'initscripts' ----------------------------------- 0.04s /tmp/tmpem3y1lsc/tests/network/tests_states_initscripts.yml:8 ----------------- include_tasks ----------------------------------------------------------- 0.04s /tmp/tmpem3y1lsc/tests/network/playbooks/tests_states.yml:110 ----------------- Gathering Facts --------------------------------------------------------- 0.04s /tmp/tmpem3y1lsc/tests/network/playbooks/tests_states.yml:3 ------------------- Check if system files exist --------------------------------------------- 0.04s /tmp/tmpem3y1lsc/tests/network/_backup.yml:13 --------------------------------- include_tasks ----------------------------------------------------------- 0.03s /tmp/tmpem3y1lsc/tests/network/playbooks/tests_states.yml:57 ------------------ include_tasks ----------------------------------------------------------- 0.03s /tmp/tmpem3y1lsc/tests/network/playbooks/tests_states.yml:18 ------------------ Show playbook name ------------------------------------------------------ 0.03s /tmp/tmpem3y1lsc/tests/network/playbooks/tests_states.yml:10 ------------------ include_tasks ----------------------------------------------------------- 0.03s /tmp/tmpem3y1lsc/tests/network/playbooks/tests_states.yml:39 ------------------ include_tasks ----------------------------------------------------------- 0.03s /tmp/tmpem3y1lsc/tests/network/playbooks/tests_states.yml:90 ------------------ include_tasks ----------------------------------------------------------- 0.03s /tmp/tmpem3y1lsc/tests/network/playbooks/tests_states.yml:73 ------------------ include_tasks ----------------------------------------------------------- 0.03s /tmp/tmpem3y1lsc/tests/network/tasks/el_repo_setup.yml:27 --------------------- include_tasks ----------------------------------------------------------- 0.03s /tmp/tmpem3y1lsc/tests/network/tests_states_initscripts.yml:7 ----------------- Enable EPEL 8 ----------------------------------------------------------- 0.02s /tmp/tmpem3y1lsc/tests/network/tasks/enable_epel.yml:17 ----------------------- Fix CentOS6 Base repo --------------------------------------------------- 0.02s /tmp/tmpem3y1lsc/tests/network/tasks/el_repo_setup.yml:2 ---------------------- Create EPEL 9 ----------------------------------------------------------- 0.02s /tmp/tmpem3y1lsc/tests/network/tasks/enable_epel.yml:4 ------------------------ Enable EPEL 6 ----------------------------------------------------------- 0.02s /tmp/tmpem3y1lsc/tests/network/tasks/enable_epel.yml:26 -----------------------