Modify/update existing resources with ansible?

15 views
Skip to first unread message

Angel Rengifo Cancino

unread,
Jul 12, 2019, 11:19:46 PM7/12/19
to ansible...@googlegroups.com
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

Jaya Nehru Kumar

unread,
Jul 14, 2019, 6:01:57 AM7/14/19
to Ansible Project
Hi ,

  In the upcoming ansible 2.8 version , modules are available to support , but remember this is not stable version 

The alternate solution would be invoking powershell modules from ansible

Angel Rengifo Cancino

unread,
Jul 14, 2019, 7:59:57 PM7/14/19
to ansible...@googlegroups.com
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?

--
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-proje...@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/c50b9533-901d-4ff2-88af-cef499db6383%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages