neuro_ansible/install_semaphore.yaml

42 lines
1 KiB
YAML
Raw Normal View History

2024-03-29 20:39:15 +01:00
---
- name: install ansible semaphore
hosts: all
become: true
tasks:
- name: remove other files
include_tasks: yaml_sub/install_docker.yaml
- name: Create volume semaphore_etc
community.docker.docker_volume:
name: semaphore_etc
state: present
- name: Create volume semaphore_lib
community.docker.docker_volume:
name: semaphore_lib
state: present
2024-04-04 13:53:58 +02:00
- name: Create semaphore container
2024-03-29 20:39:15 +01:00
community.docker.docker_container:
name: semaphore
image: semaphoreui/semaphore
state: started
recreate: yes
restart_policy: always
published_ports:
- "3000:3000/tcp"
volumes:
- semaphore_etc:/etc/semaphore
- semaphore_lib:/var/lib/semaphore
env:
SEMAPHORE_DB_DIALECT: bolt
SEMAPHORE_ADMIN_PASSWORD: changeme
SEMAPHORE_ADMIN_NAME: admin
SEMAPHORE_ADMIN_EMAIL: davrot@uni-bremen.de
SEMAPHORE_ADMIN: admin
TZ: Europe/Berlin