Closed tseven closed 7 years ago
me too O think i relates with the updated version of ansible 2.2.2.0
Fixed in sites.yml, change with_items: nginx_drupal_sites ----- TO ------ with_items: "{{ nginx_drupal_sites }}"
more info at https://github.com/ansible/ansible/issues/23496
Thanks @fmmribeiro that did the trick!
Thank you for putting this ansible role together. I'm new to ansible but have a decent understanding of what's going on.
I cannot get the role to read the config variables properly.
fatal: [104.154.x.x]: FAILED! => {"failed": true, "msg": "the field 'args' has an invalid value, which appears to include a variable that is undefined. The error was: 'ansible.vars.unsafe_proxy.AnsibleUnsafeText object' has no attribute 'file_name'\n\nThe error appears to have been in '/Users/stevenkinley/ansible/lamp_simple/roles/FloeDesignTechnologies.nginx-drupal/tasks/sites.yml': line 4, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n file: path={{nginx_drupal_config_path}}/sites-enabled state=directory\n- name: \"Create available sites configuration files\"\n ^ here\n"}
I've tried multiple syntaxes formats, none seem to work.
My playbook.yml
I'm sure I'm missing some subtle syntax thing.
Any help would be appreciated.
Thanks!