Move to simpler file structure

This commit is contained in:
Sonny Bakker 2021-01-28 21:32:10 +01:00
parent fe72523a5a
commit d71a28e1c8
33 changed files with 374 additions and 406 deletions

24
tasks/setup.yml Normal file
View file

@ -0,0 +1,24 @@
- name: create sites dir
file:
path: '/srv/sites'
state: directory
owner: root
group: root
mode: 0755
- name: create project dir
file:
path: '{{ app_dir }}'
state: directory
owner: '{{ app_user }}'
group: '{{ app_user }}'
mode: 0755
- name: clone project
become_user: '{{ app_user }}'
git:
repo: 'https://git.fudiggity.nl/sonny/newsreader.git'
dest: '{{ app_dir }}'
version: '{{ app_branch }}'
update: true
force: true