Issue with role variables

19 views
Skip to first unread message

Ryan Hunter

unread,
Jan 15, 2016, 12:28:43 AM1/15/16
to Ansible Project
Hello

I just upgraded to ansible 2.0.0.0 and am having some backwards compatibility issues:

If I have a play like:

- hosts: uber
  user: ubuntu
  roles:
    - role: zuul
      name: uber 
      port: "{{ uber_zuul_port }}"
      workers:
        - localhost
      worker_port: "{{ uber_port }}"
    - uber

I keep getting:

fatal: [default]: FAILED! => {"failed": true, "msg": "ERROR! 'port' is undefined"}

in the role zuul.

This play works fine with ansible 1.9 Did something related to role parameterization get deprecated?

Thanks

--
-Ryan
Reply all
Reply to author
Forward
0 new messages