Changeset - b8d455c6364b
[Not reviewed]
0 1 0
x - 17 months ago 2023-12-14 20:54:03
xbr@c3l.lu
fix: properly create api directory within /var/www/
1 file changed with 11 insertions and 8 deletions:
0 comments (0 inline, 0 general)
web/tasks/api.yml
Show inline comments
 
---
 
# Setup the API website
 
- name: "Clone website repo"
 
- name: "Make sure api directory exists"
 
  ansible.builtin.file:
 
    path: /var/www/api/""
 
    state: directory
 
    owner: fflux
 
    group: fflux
 
    mode: '1755'
 
  become: true
 
- name: "Clone api repo"
 
  ansible.builtin.git:
 
    accept_newhostkey: yes
 
    repo: "ssh://kallithea@projects.c3l.lu/freifunk/web/api"
 
    dest: "/var/www/api/"
 
    version: "main"
 
  become: true
 
- name: "Assign permissions to fflux"
 
  ansible.builtin.file:
 
    path: "/var/www/api/"
 
    owner: fflux
 
    group: fflux
 
    recurse: true
 
  become: true
 
  become_user: fflux
0 comments (0 inline, 0 general)