Change setup to my local centos7 VM
This commit is contained in:
@@ -8,41 +8,6 @@
|
||||
name: [ "docker-ce", "python-docker-py" ] # latter for ansible modules
|
||||
state: present
|
||||
|
||||
- name: "partition container image disk"
|
||||
parted:
|
||||
device: /dev/vdb
|
||||
number: 1
|
||||
state: present
|
||||
# fs_type: xfs
|
||||
|
||||
- filesystem:
|
||||
dev: /dev/vdb1
|
||||
fstype: xfs
|
||||
opts: "-L image-store"
|
||||
|
||||
- mount:
|
||||
path: "/container"
|
||||
src: "/dev/vdb1"
|
||||
fstype: xfs
|
||||
opts: "noatime"
|
||||
state: mounted
|
||||
|
||||
- file:
|
||||
path: "/container/docker"
|
||||
state: directory
|
||||
owner: root
|
||||
group: root
|
||||
mode: "u=rwx,g=x,o=x"
|
||||
|
||||
- name: "link docker configuration to new container partition"
|
||||
file:
|
||||
path: "/var/lib/docker"
|
||||
src: "/container/docker"
|
||||
state: link
|
||||
owner: root
|
||||
group: root
|
||||
mode: "u=rwx,g=x,o=x"
|
||||
|
||||
- name: "enable docker service in systemd"
|
||||
service:
|
||||
name: docker
|
||||
|
Reference in New Issue
Block a user