zuul-jobs/roles/remove-sshkey/tasks/main.yaml
Andreas Jaeger 7e04128a8b Capitalize task names
We capitalize the first word in task names in general - and when you
follow a log and suddenly see a single lower-case one flying along...

Fix those names that I could find and that are not variables etc.

Change-Id: I9ccde577413270d49fd790c41767b859366dc2f6
2020-05-16 17:46:17 +02:00

10 lines
286 B
YAML

- name: Remove ssh key
command: "shred ~/.ssh/id_rsa"
- name: Remove host key information from known hosts
known_hosts:
name: "{{ ssh_key.fqdn }}"
key: "{{ ssh_key.ssh_known_hosts }}"
state: absent
when: ssh_key.ssh_known_hosts is defined and ssh_key.fqdn is defined