marvinpinto.docker
docker
このAnsibleロールは、Ubuntuのようなシステムに最新のDockerをインストールすることを可能にします。また、Dockerデーモンが実行中で機能していることを確認する便利なライブラリ関数も提供します。
要件
このロールは、Ubuntuのようなシステムでのみ機能します。
ロール変数
# 追加のDockerサービスオプション
# 例: '--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: |
{}
例
このモジュールをAnsible Galaxyから './roles' ディレクトリにインストールします:
ansible-galaxy install marvinpinto.docker -p ./roles
playbookで以下のように使用します:
- hosts: 'servers'
roles:
- role: 'marvinpinto.docker'
become: true
tasks:
- name: 'Dockerデーモンが機能していることを確認'
become: true
docker_ping:
retries: 5
delay: 10
until: result|success
- name: 'こんにちは、世界'
docker:
name: 'helloworld'
image: 'hello-world'
state: 'started'
プロジェクトについて
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.
インストール
ansible-galaxy install marvinpinto.docker
ライセンス
mit
ダウンロード
187k
所有者
Computer nerd.