>
> When running the command it stated there was an undefined variable I made
> the below changes to the playbook
>
=> {"msg": "The task includes an option with an undefined variable. The
error was: 'ansible.utils.unsafe_proxy.AnsibleUnsafeText object' has no
attribute 'client_name'\n\nThe error appears to have been in
'/etc/ansible/testing/prod_inov2.yml'
inventory file
[apps]
server1 instance_user=fondinst client_name=fondprd1 server_ip=
server2 instance_user=kumcinst client_name=kumcprd1 `server_ip=
[proxy]
proxy1
- hosts: 127.0.0.1
connection: local
gather_facts: no
- hosts: apps
tasks:
- name: debug
debug: msg={{ client_name }}
- hosts: proxy
tasks:
- debug: msg="{{ item['client_name'] }}"
with_items: "{{ groups['apps'] }}"
--
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/98a37340-7866-4b90-a6b7-d83abfc9b849%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.