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

32 lignes
872 o
YAML
Brut Vue normale Historique

# 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
- 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