Skip to content

Commit

Permalink
fix review comments
Browse files Browse the repository at this point in the history
Signed-off-by: kogeler <[email protected]>
  • Loading branch information
kogeler committed Aug 30, 2023
1 parent 12aee1a commit abf05c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions roles/node/tasks/400-binary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
mode: "0755"
owner: "{{ node_user }}"
group: "{{ node_user }}"
ignore_errors: "{{ _node_binary_path_stat.stat.exists and not _node_binary_path_stat.stat.isdir }}"
ignore_errors: "{{ ansible_check_mode and _node_binary_path_stat.stat.exists and not _node_binary_path_stat.stat.isdir }}"

- name: Binary | Create temp bin directory
ansible.builtin.file:
Expand Down Expand Up @@ -175,7 +175,7 @@
group: "{{ node_user }}"
loop: "{{ _node_binaries }}"
notify: restart service {{ node_handler_id }}
ignore_errors: "{{ not _node_binary_path_stat.stat.exists }}"
ignore_errors: "{{ ansible_check_mode and (not _node_binary_path_stat.stat.exists or (_node_binary_path_stat.stat.exists and not _node_binary_path_stat.stat.isdir)) }}"

- name: Binary | Block
block:
Expand Down

0 comments on commit abf05c7

Please sign in to comment.