--- - hosts: localhost #become: yes tasks: - name: Show contents of known_hosts file shell: | echo '@cert-authority * ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHKIoXTMdFFpDfJOt7HUQxFOJv+2Di2qzwseBkclxoZ4 CA key for CIT HPC clusters' > /var/lib/awx/.ssh/known_hosts ignore_errors: yes delegate_to: 127.0.0.1