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