Modify/update existing resources with ansible?

Hello guys:

I have some questions regarding existing resources management: can ansible change their attributes after creation?

For instance, I wasn’t able to change the network settings for an existing VM on VMware. Also, according to some Google searching, it seems that the instance type of an existing ec2 instance cannot be changed with ansible.

Is this because ansible is not stateful? With terraform am I able to achieve this.

So far, I’ve only been using ansible to create new resources, but not for updating them.

Hope someone can give me some guidance.

Thanks in advance

Hi ,

In the upcoming ansible 2.8 version , modules are available to support , but remember this is not stable version
https://docs.ansible.com/ansible/devel/modules/list_of_cloud_modules.html#vmware

https://docs.microsoft.com/en-us/powershell/module/hyper-v/new-vm?view=win10-ps

The alternate solution would be invoking powershell modules from ansible

Thanks, Jaya.

But, regardless of whether is VMware or AWS, isn’t it generally supported to modify an existing resource by using Ansible? Is it true that Ansible doesn’t keep track of the status of resources after its creation?