feat(ssh): known hosts from profile
refactored to use enabled_profiles var
This commit is contained in:
parent
f09b114cfe
commit
9dc0dbc514
3 changed files with 38 additions and 18 deletions
6
ansible/templates/ssh/known_hosts
Normal file
6
ansible/templates/ssh/known_hosts
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
# Auto-generated known hosts file, try to **not** edit this file
|
||||
{% for enabled_profile in enabled_profiles %}
|
||||
# {{ enabled_profile.name }}
|
||||
{{ lookup('file', tempdir_known_hosts.path + '/' + enabled_profile.name) }}
|
||||
|
||||
{% endfor %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue