This commit is contained in:
@@ -21,13 +21,29 @@
|
||||
copy:
|
||||
dest: /etc/containers/containers.conf
|
||||
src: containers.conf
|
||||
|
||||
|
||||
- name: Configure cr.wks registry
|
||||
copy:
|
||||
dest: /etc/containers/registries.conf.d/cr.wks.conf
|
||||
src: cr.wks.conf
|
||||
|
||||
- name: Configure docker-mirror registro
|
||||
- name: Configure docker-mirror registry
|
||||
copy:
|
||||
dest: /etc/contaners/registries.conf.d/dr-mirror.wks.conf
|
||||
src: dr-mirror.wks.conf
|
||||
dest: /etc/containers/registries.conf.d/dr-mirror.wks.conf
|
||||
src: dr-mirror.wks.conf
|
||||
|
||||
- name: Remote NFS volumes
|
||||
block:
|
||||
- name: Create mount Point
|
||||
file:
|
||||
path: /var/lib/containers/storage/volumes
|
||||
state: directory
|
||||
owner: root
|
||||
group: root
|
||||
- name: Mount containers from NFS
|
||||
ansible.posix.mount:
|
||||
src: ebin01.wks:/data/raid1-ssd/node-data/{{ ansible_nodename }}-podman-volumes
|
||||
path: /var/lib/containers/storage/volumes
|
||||
opts: auto,_netdev,defaults,x-systemd.wanted-by=podman.service,x-systemd.wanted-by=nomad.service
|
||||
state: mounted
|
||||
fstype: nfs
|
||||
Reference in New Issue
Block a user