This commit is contained in:
parent
39e8ef87bd
commit
9c083b8089
@ -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:
|
||||||
|
@ -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
|
||||||
|
@ -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 %}
|
Loading…
Reference in New Issue
Block a user