Discussion:
[ansible-project] ansible azure module - deletion of cloud services when deleting vm's
Patrick Crews
2015-07-30 01:46:34 UTC
Permalink
Hello,

I have been working with the azure module:
http://docs.ansible.com/ansible/azure_module.html
and have found it very functional so far.

The one request I would have is that the user be provided the option of
also deleting the associated cloud service when deleting vm's.
Otherwise, my experience has shown that the user must delete the cloud
services themselves if they wish to use the ansible playbook to recreate
said vm's
I am iterating on setting up some test vm's and looking for efficiency in
repeated test runs.

For example, I can create a vm once via playbook and delete it as well,
however, subsequent attempts result in this error:
failed: [localhost -> 127.0.0.1] => (item={'name': 'TESTMACHINE_NAME',
'location': 'LOCATION'}) => {"failed": true, "item": {"location":
"LOCATION", "name": "TESTMACHINE_NAME"}}
msg: failed to lookup the deployment information for TESTMACHINE_NAME,
error was: Not found (Not Found)

This requires other intervention by the user to be able to use the playbook
with the same vm name(s)
While it is possible to script / playbook calls to the cli to handle the
deletion of the service(s), I am hoping to avoid installing and setting up
the azure cli on machines in the future.

Any thoughts on this are welcome.

Thanks,
Patrick
--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+***@googlegroups.com.
To post to this group, send email to ansible-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/dbef5008-40db-4cdb-b8b2-b74c7f56d6eb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Brian Coca
2015-07-30 01:53:07 UTC
Permalink
Open a ticket in the github issue tracker so this is 'on the list'.
Post by Patrick Crews
Hello,
http://docs.ansible.com/ansible/azure_module.html
and have found it very functional so far.
The one request I would have is that the user be provided the option of also
deleting the associated cloud service when deleting vm's.
Otherwise, my experience has shown that the user must delete the cloud
services themselves if they wish to use the ansible playbook to recreate
said vm's
I am iterating on setting up some test vm's and looking for efficiency in
repeated test runs.
For example, I can create a vm once via playbook and delete it as well,
failed: [localhost -> 127.0.0.1] => (item={'name': 'TESTMACHINE_NAME',
"LOCATION", "name": "TESTMACHINE_NAME"}}
msg: failed to lookup the deployment information for TESTMACHINE_NAME, error
was: Not found (Not Found)
This requires other intervention by the user to be able to use the playbook
with the same vm name(s)
While it is possible to script / playbook calls to the cli to handle the
deletion of the service(s), I am hoping to avoid installing and setting up
the azure cli on machines in the future.
Any thoughts on this are welcome.
Thanks,
Patrick
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/dbef5008-40db-4cdb-b8b2-b74c7f56d6eb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Brian Coca
--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+***@googlegroups.com.
To post to this group, send email to ansible-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAJ5XC8nNi1K_jV7Bhuo9UWjPLAupRqMbnQfRHZUbDrD--RCWpg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Loading...