I am trying to find whether the host VM's are set with ssh connection is 36000. Below is my code..
tasks:
- name: To check SSH connection is set to 36000
lineinfile:
dest: /etc/ssh/sshd_config
line: "ClientAliveInterval 36000"
check_mode: yes
register: presence
failed_when: presence.changed
It actually works fine, but i would like to get the ClientAliveInterval value printed in the output. Can anyone help me with this?