The Nova API does not have any way to update flavors. Because of this, the
Ansible
module does not support updating.
On Sunday, April 17, 2016 at 11:52:30 AM UTC-4, Thiago Martins wrote:
>
> Guys,
>
> I'm trying to update the default OpenStack flavors, by using
> "os_nova_flavor" but, it does not update the flavors settings if it already
> exists...
>
> Is there any way to force it to update the flavors?
>
> A workaround is to first, delete the flavors, and then, create it again.
> But this is bad because every time I run Ansible, it will delete and
> recreate the flavors over and over again.
>
> My intention is to update the flavors, only if it is different. For
> example:
>
> ---
> - name: nova updating m1.small flavor
> environment: "{{admin_openrc_env}}"
> os_nova_flavor:
> state=present
> name=m1.small
> ram=2048
> swap=1024
> vcpus=2
> disk=20
> ephemeral=4
> ---
>
> I was thinking that, if "m1.small" flavor doesn't have those settings, it
> sill be "changed", otherwise, if it already have those settings, it will
> "not be changed / green Ansible ok".
>
> Is there any way to make it behaves like this?
>
> Thanks!
> Thiago
>
--
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/3c82d86e-83be-4066-adf2-ac52027d91a0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.