ansible-infra/ansible_collections/debops/debops/roles/sshd/tasks/main_env.yml
Stefan Bethke 2aed20393f
Some checks failed
/ Ansible Lint (push) Failing after 5m45s
/ Ansible Lint (pull_request) Failing after 4m59s
Vendor Galaxy Roles and Collections
2026-02-06 22:07:16 +01:00

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' ]