From 7fb94e86cac09c6e359cd3196bf734714d517c19 Mon Sep 17 00:00:00 2001 From: J vanBemmel Date: Sun, 3 Nov 2024 06:51:46 -0600 Subject: [PATCH] Mark shell actions in vm-clab-ssh-check.yml as "not changed" (#1483) --- netsim/ansible/tasks/readiness-check/vm-clab-ssh-check.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/netsim/ansible/tasks/readiness-check/vm-clab-ssh-check.yml b/netsim/ansible/tasks/readiness-check/vm-clab-ssh-check.yml index 4fffe801c..cd997318c 100644 --- a/netsim/ansible/tasks/readiness-check/vm-clab-ssh-check.yml +++ b/netsim/ansible/tasks/readiness-check/vm-clab-ssh-check.yml @@ -6,6 +6,7 @@ local_action: module: shell cmd: which sshpass + changed_when: False run_once: True any_errors_fatal: True @@ -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) }}"