ansistrano / deploy

Ansible role to deploy scripting applications like PHP, Python, Ruby, etc. in a capistrano style
https://ansistrano.com
MIT License
2.37k stars 343 forks source link

Startup Error #319

Closed nek-v closed 5 years ago

nek-v commented 5 years ago

Hello. What could be the problem?

$ uname -a
Linux dev 4.4.0-116-generic #140-Ubuntu SMP Mon Feb 12 21:23:04 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

$ ansible-playbook --version
ansible-playbook 2.0.0.2
  config file = /var/www/server.local/ansistrano/ansible.cfg
  configured module search path = Default w/o overrides

$ cat ./deploy.yml
---
- name: Deploy example app to my-server.com
  hosts: all
  vars:
    ansistrano_deploy_from: "{{ playbook_dir }}/.."
    ansistrano_deploy_to: "/tmp/my-app.com"
    ansistrano_keep_releases: 3
    ansistrano_rsync_extra_params: "--exclude-from={{ playbook_dir }}/../.gitignore"
    # There seems to be an issue with rsync in vagrant
    ansistrano_deploy_via: copy
  roles:
    - { role: ansistrano.deploy }
$ ansible-playbook -i hosts deploy.yml
ERROR! no action detected in task

The error appears to have been in '/etc/ansible/roles/ansistrano.deploy/tasks/main.yml': line 2, column 3, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

---
- include_tasks: "{{ ansistrano_before_setup_tasks_file | default('empty.yml') }}"
  ^ here
We could be wrong, but this one looks like it might be an issue with
missing quotes.  Always quote template expression brackets when they
start a value. For instance:

    with_items:
      - {{ foo }}

Should be written as:

    with_items:
      - "{{ foo }}"
nek-v commented 5 years ago

See this issue