Skip to content

Commit

Permalink
Merge pull request #7 from stafwag/6-execute-installation-tasks-only-…
Browse files Browse the repository at this point in the history
…once

6 execute installation tasks only once
  • Loading branch information
stafwag authored Jan 5, 2025
2 parents a3edcdc + 86c57af commit 4f83c52
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
- name: Install qemu img
ansible.builtin.include_tasks:
install.yml
#
# Set run_once to allow the role to be executed in parallel
# e.g. when delegate_to in used.
#
run_once: true
args:
apply:
tags:
Expand Down
4 changes: 2 additions & 2 deletions tasks/qemu_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
dest: "{{ _qemu_image.dest }}"
owner: "{{ _qemu_image.owner | default(0) }}"
group: "{{ _qemu_image.group | default(0) }}"
mode: "{{ _qemu_image.mode | default('0500') }}"
remote_src: "{{ _qemu_image.remote_src | default('false') }}"
mode: "{{ _qemu_image.mode | default('0500') }}"
remote_src: "{{ _qemu_image.remote_src | default('false') }}"

- name: Set _qemu_img_cmd to size the image
ansible.builtin.set_fact:
Expand Down

0 comments on commit 4f83c52

Please sign in to comment.