This repository has been archived on 2025-04-19. 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.
gitlab/tasks.yml
2023-03-04 17:38:17 +01:00

39 lines
797 B
YAML

- name: create gitlab home directory
file:
path: '{{ gitlab_home }}'
state: directory
mode: '0755'
- name: create gitlab app directory
become: true
file:
path: '{{ app_dir }}'
state: directory
mode: '0755'
owner: 'sonny'
group: 'sonny'
- name: copy docker-compose file
become: true
template:
src: 'templates/docker-compose.j2'
dest: '{{ app_dir }}/docker-compose.yml'
owner: 'sonny'
group: 'sonny'
mode: '0755'
- name: stop gitlab
docker_compose:
project_src: '{{ app_dir }}'
state: absent
environment:
GITLAB_HOME: '{{ gitlab_home }}'
- name: start gitlab
docker_compose:
pull: true
project_src: '{{ app_dir }}'
environment:
GITLAB_HOME: '{{ gitlab_home }}'
# TODO: update router config (for SSH)