template config ssh
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
vincent 2022-07-26 19:50:17 +02:00
parent 39e8ef87bd
commit 9c083b8089
3 changed files with 12 additions and 1 deletions

View File

@ -120,3 +120,8 @@ hosts_entries: []
hosts_file_snippets: [] hosts_file_snippets: []
system_ipV6_disable: true system_ipV6_disable: true
system_ssh_custom_host:
# - host:
# user:
# keyfile:

View File

@ -1,6 +1,6 @@
- name: copy ssh config for user - name: copy ssh config for user
become: true become: true
copy: template:
dest: /home/{{ item }}/.ssh/ dest: /home/{{ item }}/.ssh/
src: "ssh/config" src: "ssh/config"
force: true force: true

View File

@ -48,3 +48,9 @@
Hostname git.ducamps.win Hostname git.ducamps.win
User git User git
IdentityFile ~/.ssh/id_gitea IdentityFile ~/.ssh/id_gitea
{% for host in system_ssh_custom_host %}
Host {{ host.host }}
Hostname: {{ host.host }}
User {{ host.user }}
IdentityFile {{ host.keyfile }}
{% endfor %}