Skip to content

Commit

Permalink
Mark shell actions in vm-clab-ssh-check.yml as "not changed" (#1483)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbemmel authored Nov 3, 2024
1 parent b82d82d commit 7fb94e8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions netsim/ansible/tasks/readiness-check/vm-clab-ssh-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
local_action:
module: shell
cmd: which sshpass
changed_when: False
run_once: True
any_errors_fatal: True

Expand All @@ -17,6 +18,7 @@
ssh -o StrictHostKeyChecking=no {{ netlab_ssh_args|default('') }} \
-o UserKnownHostsFile=/dev/null {{ ansible_user }}@{{ ansible_host }} \
'{{ netlab_check_command | default("show version") }}'
changed_when: False
register: command_out
until: command_out.rc == 0
retries: "{{ netlab_check_retries | default(20) }}"
Expand Down

0 comments on commit 7fb94e8

Please sign in to comment.