瀏覽代碼

Use a more suitable Docker image for running Ansible

Inspired by #128 (Github Issue), we've created a new Docker image
to replace https://hub.docker.com/r/qmxme/ansible

Adding dnspython or dig to `qmxme/ansible` doesn't seem like a good
idea (that might be accepted by them), given that it's specific to our
use case. That's why we'll be maintaining our own image from now on.
pull/132/head
Slavi Pantaleev 7 年之前
父節點
當前提交
82b4640072
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      docs/ansible.md

+ 2
- 2
docs/ansible.md 查看文件

@@ -40,7 +40,7 @@ If you find yourself needing to resort to such hacks, please consider reporting

## Using Ansible via Docker

Alternatively, you can run Ansible itself from a Docker container on your computer.
Alternatively, you can run Ansible on your computer from inside a Docker container (powered by the [devture/ansible](https://hub.docker.com/r/devture/ansible/) Docker image).

Here's a sample command to get you started (run this from the playbook's directory):

@@ -50,7 +50,7 @@ docker run -it --rm \
-v `pwd`:/work \
-v $HOME/.ssh/id_rsa:/root/.ssh/id_rsa:ro \
--entrypoint=/bin/sh \
qmxme/ansible
devture/ansible:2.7.0-r1
```

The above command tries to mount an SSH key (`$HOME/.ssh/id_rsa`) into the container (at `/root/.ssh/id_rsa`).


Loading…
取消
儲存