diff options
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 |