terraform script add
This commit is contained in:
19
packer/ansible/roles/docker/tasks/01-ubuntu-os-docker.yml
Normal file
19
packer/ansible/roles/docker/tasks/01-ubuntu-os-docker.yml
Normal file
@@ -0,0 +1,19 @@
|
||||
---
|
||||
- name: Add docker script
|
||||
command: curl -fsSL https://get.docker.com -o /root/get-docker.sh
|
||||
|
||||
- name: install docker
|
||||
command: sh /root/get-docker.sh
|
||||
|
||||
- name: Create docker configuration directory
|
||||
file:
|
||||
path: /etc/docker
|
||||
state: directory
|
||||
|
||||
- name: Configure docker
|
||||
template:
|
||||
src: daemon.json.j2
|
||||
dest: /etc/docker/daemon.json
|
||||
notify:
|
||||
- Reload systemd configuration
|
||||
- Restart docker service
|
||||
Reference in New Issue
Block a user