diff options
author | Christian Franke <nobody@nowhere.ws> | 2015-09-04 02:07:14 +0200 |
---|---|---|
committer | Christian Franke <nobody@nowhere.ws> | 2015-09-04 02:07:14 +0200 |
commit | d7fb136d7d752aef8a100854f265d984f79c2ff0 (patch) | |
tree | 4e7479537888a5c3ebae398bb5a106c9b47877e9 /roles/repo_service/tasks | |
parent | dd37acbfbd5a0c8db622a9ffae7c81e96b6b036a (diff) |
Use s3 to backup/restore git
Diffstat (limited to 'roles/repo_service/tasks')
-rw-r--r-- | roles/repo_service/tasks/as_repo_service.yaml | 5 | ||||
-rw-r--r-- | roles/repo_service/tasks/main.yaml | 14 |
2 files changed, 19 insertions, 0 deletions
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 |