Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

Commit

Permalink
Solution #72 loop variables (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
MKletz authored Jun 14, 2023
1 parent c0d4493 commit 81f35e8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

- name: Copy logos over
ansible.builtin.copy:
src: "{{ item }}"
src: "{{ logo }}"
dest: "{{ file_path }}"
directory_mode: true
mode: "0644"
Expand All @@ -24,6 +24,8 @@
- "redhat-ansible-logo.svg"
- "server.png"
check_mode: false
loop_control:
loop_var: logo

- name: Display link to inventory report
ansible.builtin.debug:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,16 @@

- name: Copy logos over
ansible.windows.win_copy:
src: "{{ item }}"
src: "{{ logo }}"
dest: "{{ file_path }}"
directory_mode: true
loop:
- "webpage_logo.png"
- "redhat-ansible-logo.svg"
- "server.png"
check_mode: false
loop_control:
loop_var: logo

# - name: display link to inventory report
# ansible.builtin.debug:
Expand Down

0 comments on commit 81f35e8

Please sign in to comment.