--- # Setup the API website - name: "Make sure repos directory exists" ansible.builtin.file: path: "~/public_repos" state: directory owner: fflux group: fflux mode: '1755' become: true become_user: fflux - name: "Clone api repo" ansible.builtin.git: accept_newhostkey: yes repo: "ssh://kallithea@projects.c3l.lu/freifunk/web/api" dest: "/home/fflux/public_repos/api/" version: "main" become: true become_user: fflux - name: "Symlink to website" ansible.builtin.file: src: "/home/fflux/public_repos/api/public" dest: "/var/www/api" owner: fflux group: fflux state: link become: true