Skip to content

Latest commit

 

History

History
 
 

os_knownhosts

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

os_knownhosts Ansible Role

Ansible role for updating known hosts file /.ssh/known_hosts. This is usually used on the Ansible control / central node.

Overview

Input and Execution

Just execute the role, no need to set vafriable inputs. Put the target host(s) in the inventory -i argument

  • Sample execution:

    ansible-playbook -i "host_you_want_to_update," sap-knownhosts-update.yml"
  • Sample playbook

    ---
    
    - name: Store known hosts of 'all' the hosts in the inventory file
      hosts: localhost
      connection: local
      roles:
        - { role: community.sap_operations.os_knownhosts }