Adding in a `project_shared_children` is not working, at least i may be doing it wrong

in trellis/roles/deploy/defaults/main.yml I added a new entry to project_shared_children within


  • path: web/app/uploads
    src: uploads
  • path: web/app/wp-rocket-config
    src: wp-rocket-config

with the expectation that web/app/wp-rocket-config would be created upon (re)running:

ansible-playbook server.yml -e env=production

However that is not the case – am I doing something wrong?!

Given that project_shared_children is a deploy feature, try the deploy.yml playbook:

ansible-playbook deploy.yml -e env=production -e

Also, your definition of project_shared_children looks fine, but I suggest putting it in a group_vars file like group_vars/all/main.yml…


perfect thanks!! 20 characters

1 Like