--- - name: Configure ft_chatons base VM hosts: ft_chatons become: yes tasks: - name: Delete old project file: path: "/home/{{ ansible_user }}/projects/ft_chatons" state: absent - name: Copy the project to the VM include_tasks: tasks/copy-to-vm.yml - name: Ensure project directory exists file: path: "/home/{{ ansible_user }}/projects/ft_chatons" state: directory mode: '0755' become: no - name: Re all services include_tasks: tasks/restart.yml