Hello!

I'm struggling with importing the functionality of deploy_revision from 
chef to ansible.

In case of ruby this means the following steps:

- checkout git repo to /revisions/sha1
- run bundle install in there
- create necessary custom configuration files
- take any necessary custom steps to configure the installation
- update symlink of /current to point to /revisions/sha1

Now what I'd like to do is to put steps 1,2,5 into a separate task file, 
and use it like this:

- include: ../../common/tasks/ruby-git-deploy.yml
  deploy_dir: /opt/water/revisions
  deploy_revision: master
  deploy_repository: [email protected]/.....

  tasks_before_symlink:
    - roles/water-meter/setup.yml
    - roles/common/rake_db_migrate.yml

the tasks_before_symlink would point to the tasks files that would carry 
out steps 3,4, but I seem to be unable to include them:

- include: '{{item}}'
  with_items: {{ tasks_before_symlink }}

complains about deprecated code: 

ERROR: [DEPRECATED]: include + with_items is a removed deprecated feature 
(in 
/Users/avandra/projects/freelancer/liveoaksys/water-playbook/roles/common/tasks/ruby-git-deploy.yml).
 
 Please update your playbooks.

There is no realy pointer on what is the "new way" to do this, can you help 
me out?

Regards,
  Akos Vandra

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/b8047675-4fa4-499c-90b1-e34b02ab2133%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to