---
# tasks file for detect-vm
# Gather facts about all servers named test:
- name: gather facts
  os_server_facts:
    server: test*
- name: debuggi
  debug:
    var: openstack_servers

called by:
---
- name: detect vm
  hosts: localhost
  roles:
    - { role: detect-vm }

debug shows:
ok: [localhost] => {
    "openstack_servers": []
}

but although auth is working fine, if I call create or delete, if I run 
detect-vm it says:
ok: [localhost] => {
    "ansible_facts": {
        "openstack_servers": []
    }, 
    "changed": false, 
    "invocation": {
        "module_args": {
            "api_timeout": null, 
            "auth": null, 
            "auth_type": null, 
            "availability_zone": null, 
            "cacert": null, 
            "cert": null, 
            "cloud": null, 
            "detailed": null, 
            "endpoint_type": "public", 
            "key": null, 
            "region_name": null, 
            "server": "test*", 
            "timeout": 180, 
            "verify": null, 
            "wait": true
        }
    }
}




Am Donnerstag, 15. Februar 2018 18:58:15 UTC+1 schrieb Sven Leupold:
>
> Hi
>
> I wonder if you experience the same problem with os_server if you run an 
> openstack playbook twice or more.
>
> If I run os_server after the initial vm setup was successful, it always 
> fails. Destroying vm's with state: absent is working. Uh!
>
> Any idea or is this just "normal" behaviour in os_server?
>
> Thanks in advance
>
> Sven
>

-- 
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/7934d4ad-3054-495e-a31d-8595d45c2da0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to