1
0
Fork 0
myserver-configuration/roles/volume_restore/tasks/base.yml

18 lines
No EOL
333 B
YAML

---
- name: Copy conf
ansible.builtin.copy:
backup: true
src: .
dest: volume_restore/
register: volume_restore_copy
- name: Build image
community.docker.docker_image:
name: volume_restore
tag: latest
build:
path: volume_restore
source: build
become: yes
when: volume_restore_copy.changed