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


#1

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

project_shared_children:

  • 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?!


#2

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

ansible-playbook deploy.yml -e env=production -e site=example.com

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


#3

perfect thanks!! 20 characters