From d7fb136d7d752aef8a100854f265d984f79c2ff0 Mon Sep 17 00:00:00 2001 From: Christian Franke Date: Fri, 4 Sep 2015 02:07:14 +0200 Subject: Use s3 to backup/restore git --- roles/repo_service/tasks/as_repo_service.yaml | 5 +++++ roles/repo_service/tasks/main.yaml | 14 ++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 roles/repo_service/tasks/as_repo_service.yaml create mode 100644 roles/repo_service/tasks/main.yaml (limited to 'roles/repo_service/tasks') diff --git a/roles/repo_service/tasks/as_repo_service.yaml b/roles/repo_service/tasks/as_repo_service.yaml new file mode 100644 index 0000000..6b364d8 --- /dev/null +++ b/roles/repo_service/tasks/as_repo_service.yaml @@ -0,0 +1,5 @@ +--- +- name: Clone repo_service git + git: + repo=https://github.com/cfra/repo_service.git + dest=/var/lib/repo_service/src diff --git a/roles/repo_service/tasks/main.yaml b/roles/repo_service/tasks/main.yaml new file mode 100644 index 0000000..b17319c --- /dev/null +++ b/roles/repo_service/tasks/main.yaml @@ -0,0 +1,14 @@ +--- +- name: Create repo_service group + group: name=repo_service + +- name: Create repo_service user + user: + name=repo_service + group=repo_service + home=/var/lib/repo_service + +- include: as_repo_service.yaml + become: yes + become_user: repo_service + become_method: su -- cgit v1.2.1