ansible-collection-ibm icon indicating copy to clipboard operation
ansible-collection-ibm copied to clipboard

Destroy playbook does not detect/destroy vpc

Open gmontalvoy opened this issue 4 years ago • 1 comments

Hi there,

Testing the examples provided by the own repository, I realize the destroy.yaml playbook does not detect and ,eventually destroy, the resources created by the create.yaml playbook.


TASK [Gathering Facts] ******************************************************************************************************************************************************************
ok: [localhost]

TASK [Release Floating IP] **************************************************************************************************************************************************************
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [Remove VSI] ***********************************************************************************************************************************************************************
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [Remove SSH Key] *******************************************************************************************************************************************************************
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [Remove VPC Subnet] ****************************************************************************************************************************************************************
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [Remove VPC] ***********************************************************************************************************************************************************************
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"}

PLAY RECAP ******************************************************************************************************************************************************************************
localhost                  : ok=1    changed=0    unreachable=0    failed=0    skipped=5    rescued=0    ignored=0   

The resources are still on the ibm cloud image

gmontalvoy avatar Jun 14 '20 15:06 gmontalvoy

Have updated the example to address this issue. Please have look https://github.com/IBM-Cloud/ansible-collection-ibm/tree/master/examples/simple-vm-ssh

Anil-CM avatar Jul 06 '20 07:07 Anil-CM