From fdf88eb2db5e08721de62499878c552e47b692ed Mon Sep 17 00:00:00 2001 From: Egon Rijpkema Date: Fri, 8 Jul 2022 15:04:12 +0200 Subject: [PATCH] Another dirty playbook. --- clean_known_hosts.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/clean_known_hosts.yml b/clean_known_hosts.yml index cae4959..1b9f9a4 100644 --- a/clean_known_hosts.yml +++ b/clean_known_hosts.yml @@ -1,9 +1,9 @@ --- - 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 + - name: Add hugin to /etc/hosts + ansible.builtin.lineinfile: + line: '195.169.22.139 hugin' + path: /etc/hosts + state: present delegate_to: 127.0.0.1