TypeError: argument of type 'NoneType' is not iterable

26 views
Skip to first unread message

Michael Baydoun

unread,
Jan 14, 2016, 8:36:45 AM1/14/16
to Ansible Project
Worked in 1.9.x, fails with error in 2.0 (see subject line for error)

roles/x/vars/main.yml
---
dotNetAgentVersion: 5.3.90.0
javaAgentVersion: 3.18.0
binaryFiles:
  - "NewRelicAgent_x64_{{ dotNetAgentVersion }}.msi"
  - "newrelic-java-{{ javaAgentVersion }}.zip"
  - "newrelic-sysmond-2.1.0.124-1.x86_64.rpm"

roles/x/tasks/main.yml
---
- name: binary file permissions
  file:
   path: /var/www/html/{{ item }}
   group: apache
   mode: 0744
   owner: apache
   setype: httpd_sys_content_t
   seuser: system_u
   delegate_to: LinuxWebServer
   run_once: yes
   sudo: yes
   with_items: binaryFiles

Michael Baydoun

unread,
Jan 14, 2016, 9:07:00 AM1/14/16
to Ansible Project
Additional note, only fails if the inventory_hostname in question at the time is a windows server, I can work around that with a when clause.
Reply all
Reply to author
Forward
0 new messages