Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0
Ce dépôt a été archivé le 2022-05-07. Vous pouvez voir ses fichiers ou le cloner, mais pas ouvrir de ticket ou de demandes d'ajout, ni soumettre de changements.
nyaa-pantsu/deploy/ansible/roles/docker/tasks/main.yml
tomleb 55c7252327 Automate postgresql setup
Creates the user and the database provided by the environment variable.
These are currently duplicated in postgres.env so we might want to find
a way to have them in only one place.

I tried my best at keeping the pg_hba.conf file secure for the server,
but I am no expert so it'd be great if someone could check it out.
2017-05-08 23:42:04 -04:00

32 lignes
903 o
YAML

# TODO Get from https://download.docker.com/linux/centos/docker-ce.repo instead
# of hardcoding information here
- name: Add Docker CE repository
yum_repository:
name: docker-ce-edge
enabled: yes
description: Docker CE Edge - $basearch
baseurl: https://download.docker.com/linux/centos/7/$basearch/edge
gpgcheck: 1
gpgkey: https://download.docker.com/linux/centos/gpg
become: true
- name: Install Docker CE
yum:
name: docker-ce
state: present
become: true
# TODO Make version a variable
- name: Install docker-compose
get_url:
url: "https://github.com/docker/compose/releases/download/{{ release_version }}/docker-compose-{{ ansible_system }}-{{ ansible_architecture }}"
dest: /usr/bin/docker-compose
mode: 0755
become: true
- name: Start docker and enable at boot
systemd:
enabled: yes
name: docker
state: started
become: true