On Monday, 26 February 2018 07.15.27 CET Raja Shekar wrote:
> - debug: var=groups_out.stdout_lines
>
> - name: Update the Client Schema
> shell: source ~/.bash_profile && sqlplus -S '{{ item.1.groups_out }}/{{
> item.2.groups_out }}@{{ item.4.groups_out }}'
> @"roles/oracle-sql/files/Scripts/client_hotfix.sql" {{ item.0.groups_out }}
> sudo: no
> with_items: "{{ groups_out.stdout_lines }}"
>
>
> Failing with below error message
>
> fatal: [10.202.98.198]: FAILED! => {"failed": true, "msg": "The task
> includes an option with an undefined variable. The error was: 'unicode
> object' has no attribute 'groups_out'\n\nThe error appears to have been in
> '/etc/ansible/playbooks/database/roles/oracle-sql/tasks/main.yml': line 57,
> column 5, but may\nbe elsewhere in the file depending on the exact syntax
> problem.\n\nThe offending line appears to be:\n\n\n - name: Update the
> Schema info\n ^ here\n\nexception type: <class
> 'ansible.errors.AnsibleUndefinedVariable'>\nexception: 'unicode object' has
> no attribute 'groups_out'"}
It says item.X.groups_out do not exist.
You would need to show you the content of groups_out.stdout_lines
g
--
Kai Stian Olstad
--
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/1644602.24SAjDYl0v%40x1.
For more options, visit https://groups.google.com/d/optout.