Here's the -vvv output for a working templated invocation of 
azure_rm_publicipaddress. You'll see the invocation params happily take the 
templated tags, and see in the state block that they were applied correctly.
TASK [Create public ip for vm] 
****************************************************************************************************************************************************************************************************************
task path: /Users/mkporwit/work/infra/ansible/azure/create_vm.yml:14
Using module file 
/usr/local/lib/python2.7/site-packages/ansible-2.4.0-py2.7.egg/ansible/modules/cloud/azure/azure_rm_publicipaddress.py
<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: mkporwit
<127.0.0.1> EXEC /bin/sh -c 'echo ~ && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo 
/Users/mkporwit/.ansible/tmp/ansible-tmp-1491610957.8-260047672053181 `" && 
echo ansible-tmp-1491610957.8-260047672053181="` echo 
/Users/mkporwit/.ansible/tmp/ansible-tmp-1491610957.8-260047672053181 `" ) 
&& sleep 0'
<127.0.0.1> PUT /var/folders/06/zm5r71tj60b4_19wlz7h822m0000gn/T/tmpMIvukr 
TO 
/Users/mkporwit/.ansible/tmp/ansible-tmp-1491610957.8-260047672053181/azure_rm_publicipaddress.py
<127.0.0.1> EXEC /bin/sh -c 'chmod u+x 
/Users/mkporwit/.ansible/tmp/ansible-tmp-1491610957.8-260047672053181/ 
/Users/mkporwit/.ansible/tmp/ansible-tmp-1491610957.8-260047672053181/azure_rm_publicipaddress.py
 
&& sleep 0'
<127.0.0.1> EXEC /bin/sh -c '/usr/local/opt/python/bin/python2.7 
/Users/mkporwit/.ansible/tmp/ansible-tmp-1491610957.8-260047672053181/azure_rm_publicipaddress.py;
 
rm -rf 
"/Users/mkporwit/.ansible/tmp/ansible-tmp-1491610957.8-260047672053181/" > 
/dev/null 2>&1 && sleep 0'
ok: [localhost] => (item=01) => {
    "changed": false, 
    "invocation": {
        "module_args": {
            "ad_user": null, 
            "allocation_method": "Static", 
            "append_tags": true, 
            "client_id": null, 
            "domain_name": "hoyludevmkp-foo-vm-01", 
            "domain_name_label": "hoyludevmkp-foo-vm-01", 
            "location": null, 
            "name": "hoyludevmkp-foo-vm-01-ip", 
            "password": null, 
            "profile": null, 
            "resource_group": "hoylu-dev-mkp", 
            "secret": null, 
            "state": "present", 
            "subscription_id": null, 
            "tags": {
                "env": "dev", 
                "foo": "dev"
            }, 
            "tenant": null
        }
    }, 
    "item": "01", 
    "state": {
        "dns_settings": {
            "domain_name_label": "hoyludevmkp-foo-vm-01", 
            "fqdn": "hoyludevmkp-foo-vm-01.westus2.cloudapp.azure.com", 
            "reverse_fqdn": null
        }, 
        "etag": "W/\"7c3db6aa-7057-49c2-8cf4-7c5b0b03e88e\"", 
        "idle_timeout_in_minutes": 4, 
        "ip_address": "52.183.90.100", 
        "location": "westus2", 
        "name": "hoyludevmkp-foo-vm-01-ip", 
        "provisioning_state": "Succeeded", 
        "public_ip_allocation_method": "Static", 
        "tags": {
            "env": "dev", 
            "foo": "dev"
        }, 
        "type": "Microsoft.Network/publicIPAddresses"
    }
}

-- 
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/19ff6eab-6aa5-4bab-b270-15aecf555678%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to