From d556f7a71d6f17cce197cb867b34981b1dd1cd97 Mon Sep 17 00:00:00 2001 From: "B.E. Droge" Date: Mon, 13 Jun 2022 17:04:21 +0200 Subject: [PATCH] Update 'clean_known_hosts.yml' --- clean_known_hosts.yml | 9 +++++++++ hello.yml | 8 -------- 2 files changed, 9 insertions(+), 8 deletions(-) create mode 100644 clean_known_hosts.yml delete mode 100644 hello.yml diff --git a/clean_known_hosts.yml b/clean_known_hosts.yml new file mode 100644 index 0000000..edc7bb5 --- /dev/null +++ b/clean_known_hosts.yml @@ -0,0 +1,9 @@ +--- +- hosts: localhost + become: yes + tasks: + - name: Show contents of known_hosts file + shell: | + cat /var/lib/awx/.ssh/known_hosts + ignore_errors: yes + delegate_to: 127.0.0.1 \ No newline at end of file diff --git a/hello.yml b/hello.yml deleted file mode 100644 index 7d0b803..0000000 --- a/hello.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- name: Echo - hosts: all - - tasks: - - name: Print hello - debug: - msg: Hello, world!