17 lines
658 B
YAML
17 lines
658 B
YAML
---
|
|
# Copyright (C) 2013-2016 Maciej Delmanowski <drybjed@gmail.com>
|
|
# Copyright (C) 2015-2017 Robin Schneider <ypid@riseup.net>
|
|
# Copyright (C) 2014-2017 DebOps <https://debops.org/>
|
|
# SPDX-License-Identifier: GPL-3.0-only
|
|
|
|
# The SSH host keys gathered by Ansible facts don't contain the full
|
|
# information, therefore we should grab them by ourselves
|
|
- name: Gather SSH host public keys
|
|
ansible.builtin.shell: 'set -o nounset -o pipefail -o errexit &&
|
|
cat /etc/ssh/ssh_host_*_key.pub || true'
|
|
args:
|
|
executable: '/bin/bash'
|
|
register: sshd__env_register_host_public_keys
|
|
changed_when: False
|
|
check_mode: False
|
|
tags: [ 'meta::facts' ]
|