marvinpinto.docker
docker
Ta rola Ansible umożliwia zainstalowanie najnowszego Dockera na systemie podobnym do Ubuntu. Dostarcza również przydatną funkcję biblioteczną do weryfikacji, czy demon Dockera działa i jest funkcjonalny.
Wymagania
Ta rola będzie działać tylko na systemie podobnym do Ubuntu.
Zmienne roli
# Dodatkowe opcje usługi docker
# Przykład: '--dns 8.8.8.8 --dns 8.8.4.4 --userns-remap=default'
# docker_additional_service_opts: |
# {
# "userns-remap": "default",
# "dns": [
# "8.8.8.8",
# "8.8.4.4"
# ]
# }
docker_additional_service_opts: |
{}
Przykłady
Zainstaluj ten moduł z Ansible Galaxy do katalogu './roles':
ansible-galaxy install marvinpinto.docker -p ./roles
Użyj go w playbooku w następujący sposób:
- hosts: 'serwery'
roles:
- role: 'marvinpinto.docker'
become: true
tasks:
- name: 'Upewnij się, że demon dockera działa'
become: true
docker_ping:
retries: 5
delay: 10
until: result|success
- name: 'hello world'
docker:
name: 'helloworld'
image: 'hello-world'
state: 'started'
O projekcie
This Ansible role enables people to install the latest Docker on an Ubuntu-like system. It also provides a handy library function to validate that the Docker daemon is running and functional.
Zainstaluj
ansible-galaxy install marvinpinto.docker
Licencja
mit
Pobrania
187k
Właściciel
Computer nerd.