opsta.install_docker

Zainstaluj Docker

Rola Ansible do zainstalowania Dockera i wykonania wstępnej konfiguracji na hoście Ubuntu.

  • Zainstaluj Dockera
  • Dodaj użytkownika SSH do grupy docker
  • Skonfiguruj DOCKER_OPTS
  • Zaloguj się do prywatnego rejestru Dockera
  • Zainstaluj docker-py

Możesz zobaczyć przykłady, jak stworzyć playbook, konfigurację oraz przykładowe komendy tutaj: https://github.com/winggundamth/ansible-wing-playbook

Wymagania

Brak

Zmienna roli

# To są domyślne zmienne
install_docker_option: --storage-driver=overlay
install_docker_private_login: false
install_docker_py: false

# To są opcjonalne zmienne
# Użyj, gdy install_docker_private_login jest ustawione na true
install_docker_registry_username: registry
install_docker_registry_password: ZMIENHASLODOCKERA
install_docker_registry_email: docker@example.com
install_docker_registry_url: registry.example.com

# Używane dla RedHat/CentOS/Fedora.
install_docker_repo_url: https://download.docker.com/linux
install_docker_yum_repo_url: "{{ install_docker_repo_url }}/{{ (ansible_distribution == 'Fedora') | ternary('fedora','centos') }}/docker-ce.repo"
install_docker_yum_gpg_key: "{{ install_docker_repo_url }}/{{ (ansible_distribution == 'Fedora') | ternary('fedora','centos') }}/gpg"

Zależności

Brak

Przykładowy Playbook

- hosts: all
  gather_facts: no
  become: true
  roles:
    - winggundamth.install_docker
  vars_files:
    - "{{ install_docker_vars_file }}"

Lista przydatnych tagów

Są pewne przydatne tagi, które możesz użyć do zarządzania konfiguracją Dockera:

  • install-docker-private-login
  • install-docker-configure
  • install-docker
  • install-docker-py

Licencja

MIT

Informacje o autorze

Możesz zobaczyć moje prace na https://github.com/winggundamth

O projekcie

Ansible role to install Docker and do some initial configuration for Ubuntu host

Zainstaluj
ansible-galaxy install opsta.install_docker
Licencja
mit
Pobrania
834
Właściciel
We build scale