diff --git a/install_files/ansible-base/tasks/reboot.yml b/install_files/ansible-base/tasks/reboot.yml index d239d309ffd..31d02db82b6 100644 --- a/install_files/ansible-base/tasks/reboot.yml +++ b/install_files/ansible-base/tasks/reboot.yml @@ -17,6 +17,15 @@ tags: - reboot +- name: Clear out SSH sessions, to prevent reuse of stale ControlPersist file. + local_action: + module: file + args: + path: /home/amnesia/.ansible/cp + state: absent + run_once: yes + become: no + - name: Wait for server to come back. local_action: wait_for args: