|
|
|
@ -46,7 +46,7 @@
|
|
|
|
|
|
|
|
|
|
- name: Create directory for host keys locally
|
|
|
|
|
file:
|
|
|
|
|
path: "{{ global_ssh_host_key_directory }}/{{ ansible_fqdn }}"
|
|
|
|
|
path: "{{ global_ssh_host_key_directory }}/{{ inventory_hostname }}"
|
|
|
|
|
state: directory
|
|
|
|
|
owner: "{{ global_local_user }}"
|
|
|
|
|
group: "{{ global_local_user }}"
|
|
|
|
@ -56,7 +56,7 @@
|
|
|
|
|
- name: Store ssh host keys locally
|
|
|
|
|
copy:
|
|
|
|
|
content: "{{ item.stdout }}\n"
|
|
|
|
|
dest: "{{ global_ssh_host_key_directory }}/{{ ansible_fqdn }}/{{ item.item }}"
|
|
|
|
|
dest: "{{ global_ssh_host_key_directory }}/{{ inventory_hostname }}/{{ item.item }}"
|
|
|
|
|
owner: "{{ global_local_user }}"
|
|
|
|
|
group: "{{ global_local_user }}"
|
|
|
|
|
mode: "u=rw,g=r,o=r"
|
|
|
|
@ -67,7 +67,7 @@
|
|
|
|
|
|
|
|
|
|
- name: Generate ssh host key dns fingerprints locally
|
|
|
|
|
make:
|
|
|
|
|
chdir: "{{ global_ssh_host_key_directory }}/{{ ansible_fqdn }}"
|
|
|
|
|
chdir: "{{ global_ssh_host_key_directory }}/{{ inventory_hostname }}"
|
|
|
|
|
file: "{{ playbook_dir }}/helpers/ssh_dns_fingerprints.makefile"
|
|
|
|
|
target: dns
|
|
|
|
|
delegate_to: localhost
|
|
|
|
|