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/tmptdk3_2m8 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: tests_wrong_provider.yml ********************************************* 1 plays in /tmp/tmpoydf_gbg/tests/tests_wrong_provider.yml PLAY [Test issuing certificate with nonexistent provider] ********************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpoydf_gbg/tests/tests_wrong_provider.yml:2 Wednesday 06 July 2022 23:28:03 +0000 (0:00:00.014) 0:00:00.014 ******** ok: [/cache/fedora-35.qcow2.snap] META: ran handlers TASK [linux-system-roles.certificate : Set version specific variables] ********* task path: /tmp/tmpoydf_gbg/tests/roles/linux-system-roles.certificate/tasks/main.yml:2 Wednesday 06 July 2022 23:28:04 +0000 (0:00:01.112) 0:00:01.127 ******** included: /tmp/tmpoydf_gbg/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml for /cache/fedora-35.qcow2.snap TASK [linux-system-roles.certificate : Ensure ansible_facts used by role] ****** task path: /tmp/tmpoydf_gbg/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:2 Wednesday 06 July 2022 23:28:04 +0000 (0:00:00.028) 0:00:01.155 ******** ok: [/cache/fedora-35.qcow2.snap] TASK [linux-system-roles.certificate : Set platform/version specific variables] *** task path: /tmp/tmpoydf_gbg/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:8 Wednesday 06 July 2022 23:28:04 +0000 (0:00:00.561) 0:00:01.717 ******** skipping: [/cache/fedora-35.qcow2.snap] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/fedora-35.qcow2.snap] => (item=Fedora.yml) => { "ansible_loop_var": "item", "changed": false, "item": "Fedora.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/fedora-35.qcow2.snap] => (item=Fedora_35.yml) => { "ansible_loop_var": "item", "changed": false, "item": "Fedora_35.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/fedora-35.qcow2.snap] => (item=Fedora_35.yml) => { "ansible_loop_var": "item", "changed": false, "item": "Fedora_35.yml", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Ensure certificate role dependencies are installed] *** task path: /tmp/tmpoydf_gbg/tests/roles/linux-system-roles.certificate/tasks/main.yml:5 Wednesday 06 July 2022 23:28:04 +0000 (0:00:00.041) 0:00:01.758 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.certificate : Ensure provider packages are installed] *** task path: /tmp/tmpoydf_gbg/tests/roles/linux-system-roles.certificate/tasks/main.yml:22 Wednesday 06 July 2022 23:28:07 +0000 (0:00:02.170) 0:00:03.928 ******** skipping: [/cache/fedora-35.qcow2.snap] => (item=fake-provider) => { "__certificate_provider": "fake-provider", "ansible_loop_var": "__certificate_provider", "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Ensure pre-scripts hooks directory exists] *** task path: /tmp/tmpoydf_gbg/tests/roles/linux-system-roles.certificate/tasks/main.yml:33 Wednesday 06 July 2022 23:28:07 +0000 (0:00:00.040) 0:00:03.969 ******** skipping: [/cache/fedora-35.qcow2.snap] => (item=fake-provider) => { "__certificate_provider": "fake-provider", "ansible_loop_var": "__certificate_provider", "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Ensure post-scripts hooks directory exists] *** task path: /tmp/tmpoydf_gbg/tests/roles/linux-system-roles.certificate/tasks/main.yml:59 Wednesday 06 July 2022 23:28:07 +0000 (0:00:00.041) 0:00:04.010 ******** skipping: [/cache/fedora-35.qcow2.snap] => (item=fake-provider) => { "__certificate_provider": "fake-provider", "ansible_loop_var": "__certificate_provider", "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Ensure provider service is running] ***** task path: /tmp/tmpoydf_gbg/tests/roles/linux-system-roles.certificate/tasks/main.yml:88 Wednesday 06 July 2022 23:28:07 +0000 (0:00:00.041) 0:00:04.051 ******** skipping: [/cache/fedora-35.qcow2.snap] => (item=fake-provider) => { "__certificate_provider": "fake-provider", "ansible_loop_var": "__certificate_provider", "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Ensure certificate requests] ************ task path: /tmp/tmpoydf_gbg/tests/roles/linux-system-roles.certificate/tasks/main.yml:100 Wednesday 06 July 2022 23:28:07 +0000 (0:00:00.040) 0:00:04.092 ******** failed: [/cache/fedora-35.qcow2.snap] (item={'name': 'mycert_wrong_provider', 'dns': 'www.example.com', 'ca': 'self-sign', 'provider': 'fake-provider'}) => { "ansible_loop_var": "item", "changed": false, "item": { "ca": "self-sign", "dns": "www.example.com", "name": "mycert_wrong_provider", "provider": "fake-provider" } } MSG: Chosen provider 'fake-provider' is not available. TASK [assert...] *************************************************************** task path: /tmp/tmpoydf_gbg/tests/tests_wrong_provider.yml:22 Wednesday 06 July 2022 23:28:07 +0000 (0:00:00.610) 0:00:04.702 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-35.qcow2.snap : ok=5 changed=0 unreachable=0 failed=0 skipped=5 rescued=1 ignored=0 Wednesday 06 July 2022 23:28:07 +0000 (0:00:00.045) 0:00:04.747 ******** =============================================================================== linux-system-roles.certificate : Ensure certificate role dependencies are installed --- 2.17s /tmp/tmpoydf_gbg/tests/roles/linux-system-roles.certificate/tasks/main.yml:5 -- Gathering Facts --------------------------------------------------------- 1.11s /tmp/tmpoydf_gbg/tests/tests_wrong_provider.yml:2 ----------------------------- linux-system-roles.certificate : Ensure certificate requests ------------ 0.61s /tmp/tmpoydf_gbg/tests/roles/linux-system-roles.certificate/tasks/main.yml:100 linux-system-roles.certificate : Ensure ansible_facts used by role ------ 0.56s /tmp/tmpoydf_gbg/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:2 assert... --------------------------------------------------------------- 0.05s /tmp/tmpoydf_gbg/tests/tests_wrong_provider.yml:22 ---------------------------- linux-system-roles.certificate : Ensure post-scripts hooks directory exists --- 0.04s /tmp/tmpoydf_gbg/tests/roles/linux-system-roles.certificate/tasks/main.yml:59 - linux-system-roles.certificate : Ensure pre-scripts hooks directory exists --- 0.04s /tmp/tmpoydf_gbg/tests/roles/linux-system-roles.certificate/tasks/main.yml:33 - linux-system-roles.certificate : Set platform/version specific variables --- 0.04s /tmp/tmpoydf_gbg/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:8 linux-system-roles.certificate : Ensure provider service is running ----- 0.04s /tmp/tmpoydf_gbg/tests/roles/linux-system-roles.certificate/tasks/main.yml:88 - linux-system-roles.certificate : Ensure provider packages are installed --- 0.04s /tmp/tmpoydf_gbg/tests/roles/linux-system-roles.certificate/tasks/main.yml:22 - linux-system-roles.certificate : Set version specific variables --------- 0.03s /tmp/tmpoydf_gbg/tests/roles/linux-system-roles.certificate/tasks/main.yml:2 -- 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/tmptdk3_2m8 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: tests_wrong_provider.yml ********************************************* 1 plays in /tmp/tmpswp52mgx/tests/certificate/tests_wrong_provider.yml PLAY [Test issuing certificate with nonexistent provider] ********************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpswp52mgx/tests/certificate/tests_wrong_provider.yml:2 Wednesday 06 July 2022 23:40:35 +0000 (0:00:00.012) 0:00:00.012 ******** ok: [/cache/fedora-35.qcow2.snap] META: ran handlers TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /tmp/tmptdk3_2m8/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Wednesday 06 July 2022 23:40:36 +0000 (0:00:01.115) 0:00:01.128 ******** included: /tmp/tmptdk3_2m8/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml for /cache/fedora-35.qcow2.snap TASK [fedora.linux_system_roles.certificate : Ensure ansible_facts used by role] *** task path: /tmp/tmptdk3_2m8/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Wednesday 06 July 2022 23:40:36 +0000 (0:00:00.030) 0:00:01.158 ******** ok: [/cache/fedora-35.qcow2.snap] TASK [fedora.linux_system_roles.certificate : Set platform/version specific variables] *** task path: /tmp/tmptdk3_2m8/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:7 Wednesday 06 July 2022 23:40:36 +0000 (0:00:00.558) 0:00:01.716 ******** skipping: [/cache/fedora-35.qcow2.snap] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/fedora-35.qcow2.snap] => (item=Fedora.yml) => { "ansible_loop_var": "item", "changed": false, "item": "Fedora.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/fedora-35.qcow2.snap] => (item=Fedora_35.yml) => { "ansible_loop_var": "item", "changed": false, "item": "Fedora_35.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/fedora-35.qcow2.snap] => (item=Fedora_35.yml) => { "ansible_loop_var": "item", "changed": false, "item": "Fedora_35.yml", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed] *** task path: /tmp/tmptdk3_2m8/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Wednesday 06 July 2022 23:40:36 +0000 (0:00:00.042) 0:00:01.759 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.certificate : Ensure provider packages are installed] *** task path: /tmp/tmptdk3_2m8/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:22 Wednesday 06 July 2022 23:40:38 +0000 (0:00:02.056) 0:00:03.815 ******** skipping: [/cache/fedora-35.qcow2.snap] => (item=fake-provider) => { "__certificate_provider": "fake-provider", "ansible_loop_var": "__certificate_provider", "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists] *** task path: /tmp/tmptdk3_2m8/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:33 Wednesday 06 July 2022 23:40:39 +0000 (0:00:00.039) 0:00:03.854 ******** skipping: [/cache/fedora-35.qcow2.snap] => (item=fake-provider) => { "__certificate_provider": "fake-provider", "ansible_loop_var": "__certificate_provider", "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Ensure post-scripts hooks directory exists] *** task path: /tmp/tmptdk3_2m8/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:59 Wednesday 06 July 2022 23:40:39 +0000 (0:00:00.041) 0:00:03.895 ******** skipping: [/cache/fedora-35.qcow2.snap] => (item=fake-provider) => { "__certificate_provider": "fake-provider", "ansible_loop_var": "__certificate_provider", "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Ensure provider service is running] *** task path: /tmp/tmptdk3_2m8/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:88 Wednesday 06 July 2022 23:40:39 +0000 (0:00:00.038) 0:00:03.934 ******** skipping: [/cache/fedora-35.qcow2.snap] => (item=fake-provider) => { "__certificate_provider": "fake-provider", "ansible_loop_var": "__certificate_provider", "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Ensure certificate requests] ***** task path: /tmp/tmptdk3_2m8/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:99 Wednesday 06 July 2022 23:40:39 +0000 (0:00:00.039) 0:00:03.973 ******** failed: [/cache/fedora-35.qcow2.snap] (item={'name': 'mycert_wrong_provider', 'dns': 'www.example.com', 'ca': 'self-sign', 'provider': 'fake-provider'}) => { "ansible_loop_var": "item", "changed": false, "item": { "ca": "self-sign", "dns": "www.example.com", "name": "mycert_wrong_provider", "provider": "fake-provider" } } MSG: Chosen provider 'fake-provider' is not available. TASK [assert...] *************************************************************** task path: /tmp/tmpswp52mgx/tests/certificate/tests_wrong_provider.yml:22 Wednesday 06 July 2022 23:40:39 +0000 (0:00:00.620) 0:00:04.594 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-35.qcow2.snap : ok=5 changed=0 unreachable=0 failed=0 skipped=5 rescued=1 ignored=0 Wednesday 06 July 2022 23:40:39 +0000 (0:00:00.040) 0:00:04.635 ******** =============================================================================== fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 2.06s /tmp/tmptdk3_2m8/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Gathering Facts --------------------------------------------------------- 1.12s /tmp/tmpswp52mgx/tests/certificate/tests_wrong_provider.yml:2 ----------------- fedora.linux_system_roles.certificate : Ensure certificate requests ----- 0.62s /tmp/tmptdk3_2m8/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:99 fedora.linux_system_roles.certificate : Ensure ansible_facts used by role --- 0.56s /tmp/tmptdk3_2m8/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 fedora.linux_system_roles.certificate : Set platform/version specific variables --- 0.04s /tmp/tmptdk3_2m8/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:7 fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists --- 0.04s /tmp/tmptdk3_2m8/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:33 assert... --------------------------------------------------------------- 0.04s /tmp/tmpswp52mgx/tests/certificate/tests_wrong_provider.yml:22 ---------------- fedora.linux_system_roles.certificate : Ensure provider service is running --- 0.04s /tmp/tmptdk3_2m8/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:88 fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 0.04s /tmp/tmptdk3_2m8/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:22 fedora.linux_system_roles.certificate : Ensure post-scripts hooks directory exists --- 0.04s /tmp/tmptdk3_2m8/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:59 fedora.linux_system_roles.certificate : Set version specific variables --- 0.03s /tmp/tmptdk3_2m8/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2