nested - Ansible - 'unicode object' has no attribute 'file_input' -
i'm working ansible 2.2.1.0 , work on old project made else errors.
i have following variables in code:
software_output: - { file_input: 'download_me.zip', file_output: 'download.zip' } software_version:"0.5,0.6" and have shell module instruction download on ftp:
- name: "mysoftware | package on ftp" shell: > curl --ftp-ssl -k {{ ' --ssl-allow-beast ' if os == 'aix' else "" }} -# -f -u {{ ftp_user }}:{{ ftp_password }} -f "{{ ftp_url | replace('@@software_version@@',item[1]) }}{{ item[0].file_input }}" -o {{ require_inst_dir }}/{{ item[0].file_output }} 2>/dev/null with_nested: - software_output - "{{ software_version.split(',') }}" when: software_version defined but doesn't work @ all, have following error:
'unicode object' has no attribute 'file_input' it looks with_nested not used has used, did missed something?
in:
with_nested: - software_output software_output string software_output.
to refer variable value, change to:
with_nested: - "{{ software_output }}" long time ago first syntax valid, long time ago.
Comments
Post a Comment