You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In molecule v5, the create step was automatically skipped when created: true in <XDG_CACHE_HOME>/molecule//<scenario>/state.yml with the message WARNING Skipping, instances already created.. This is the desired behavior.
Here an example with a simple hello_world role after a molecule create execution. The molecule-qemu plugin is used here.
❯ molecule converge
INFO default scenario test matrix: dependency, create, prepare, converge
INFO Performing prerun with role_name_check=0...
INFO Set ANSIBLE_LIBRARY=/home/manu/.cache/ansible-compat/35072c/modules:/home/manu/.ansible/plugins/modules:/usr/share/ansible/plugins/modules
INFO Set ANSIBLE_COLLECTIONS_PATH=/home/manu/.cache/ansible-compat/35072c/collections:/home/manu/.ansible/collections:/usr/share/ansible/collections
INFO Set ANSIBLE_ROLES_PATH=/home/manu/.cache/ansible-compat/35072c/roles:/home/manu/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles
INFO Running default > dependency
WARNING Skipping, missing the requirements file.
WARNING Skipping, missing the requirements file.
INFO Running default > create
WARNING Skipping, instances already created.
INFO Running default > prepare
WARNING Skipping, prepare playbook not configured.
INFO Running default > converge
PLAY [all] *********************************************************************
TASK [hello_world : Hello world] ***********************************************
ok: [test-hello-world] => {
"msg": "Hello, world!"
}
PLAY RECAP *********************************************************************
test-hello-world : ok=1 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
Actual Behaviour
Since molecule v6, the WARNING Skipping, instances already created. message is no longer displayed and the create step is executed each time the molecule converge is called.
Here an example with the same role, with the same conditions except that molecule version is 6.0.2.
INFO default scenario test matrix: dependency, create, prepare, converge
INFO Performing prerun with role_name_check=0...
INFO Running default > dependency
WARNING Skipping, missing the requirements file.
WARNING Skipping, missing the requirements file.
INFO Running default > create
PLAY [Create] ******************************************************************
TASK [Gather only necessary facts] *********************************************
ok: [localhost]
TASK [Register VMs data] *******************************************************
ok: [localhost] => (item=test-hello-world)
TASK [Prepare VMs data] ********************************************************
ok: [localhost]
...
TASK [Dump VMs config] *********************************************************
ok: [localhost]
PLAY RECAP *********************************************************************
localhost : ok=31 changed=0 unreachable=0 failed=0 skipped=5 rescued=0 ignored=0
INFO Running default > prepare
WARNING Skipping, prepare playbook not configured.
INFO Running default > converge
PLAY [all] *********************************************************************
TASK [hello_world : Hello world] ***********************************************
ok: [test-hello-world] => {
"msg": "Hello, world!"
}
PLAY RECAP *********************************************************************
test-hello-world : ok=1 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
The text was updated successfully, but these errors were encountered:
mluzarreta
added a commit
to mluzarreta/molecule
that referenced
this issue
Sep 8, 2023
Issue Type
Molecule and Ansible details
Molecule installation method: source
Ansible installation method: pip
Desired Behavior
In molecule v5, the
create
step was automatically skipped whencreated: true
in<XDG_CACHE_HOME>/molecule//<scenario>/state.yml
with the messageWARNING Skipping, instances already created.
. This is the desired behavior.Here an example with a simple hello_world role after a
molecule create
execution. The molecule-qemu plugin is used here.Actual Behaviour
Since molecule v6, the
WARNING Skipping, instances already created.
message is no longer displayed and the create step is executed each time themolecule converge
is called.Here an example with the same role, with the same conditions except that molecule version is 6.0.2.
The text was updated successfully, but these errors were encountered: