Files
@ 863d0c5a23f6
Branch filter:
Location: freifunk/Ansible-Configuration/web/tasks/api.yml - annotation
863d0c5a23f6
653 B
text/x-yaml
feat: add ssh-keypair for git
29984fbe5d02 29984fbe5d02 af9bde0c6a76 b8d455c6364b af9bde0c6a76 b8d455c6364b b8d455c6364b b8d455c6364b af9bde0c6a76 b8d455c6364b af9bde0c6a76 b8d455c6364b 29984fbe5d02 b8d455c6364b 29984fbe5d02 af9bde0c6a76 a0a703d97fe6 a0a703d97fe6 b8d455c6364b af9bde0c6a76 af9bde0c6a76 af9bde0c6a76 af9bde0c6a76 af9bde0c6a76 af9bde0c6a76 af9bde0c6a76 af9bde0c6a76 | ---
# 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
|