ansible/roles/re2o-service/tasks/main.yml
2019-05-03 22:42:55 +02:00

24 lines
592 B
YAML

---
# Create service user
- include_tasks: service_user.yml
- name: "Clone re2o {{ service_name }} project"
git:
repo: "{{ service_repo }}"
dest: "{{ service_homedir }}/{{ service_name }}"
version: master
become: true
become_user: "{{ service_user }}"
- name: Indicate in motd service location
template:
src: update-motd.d/05-service.j2
dest: "/etc/update-motd.d/05-re2o-{{ service_name }}"
mode: 0755
- name: Indicate in motd service user
template:
src: update-motd.d/06-service-user.j2
dest: "/etc/update-motd.d/06-service-user"
mode: 0755