This repository has been archived on 2025-04-27. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
newsreader-ansible/tasks/setup.yml

24 lines
489 B
YAML

- 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