22 lines
346 B
Markdown
22 lines
346 B
Markdown
# Ansible-Docker
|
|
|
|
Ansible playbook that provisions a server to run Docker.
|
|
|
|
## Example
|
|
|
|
Execute playbook with needed variables to setup a server to run Docker.
|
|
|
|
`ansible-playbook -i hosts site.yml`
|
|
|
|
```yml
|
|
---
|
|
# file: hosts
|
|
|
|
docker:
|
|
hosts:
|
|
doc01:
|
|
ansible_host: 10.10.10.14
|
|
|
|
vars:
|
|
ansible_user: ansible
|
|
```
|