add an initial ssh config file to ignore known hosts
diff --git a/ansible/roles/common/files/ssh-config b/ansible/roles/common/files/ssh-config
new file mode 100644
index 0000000..df88259
--- /dev/null
+++ b/ansible/roles/common/files/ssh-config
@@ -0,0 +1,3 @@
+Host *
+ StrictHostKeyChecking no
+ UserKnownHostsFile=/dev/null
diff --git a/ansible/roles/common/tasks/main.yml b/ansible/roles/common/tasks/main.yml
index 32b60e8..13d39fe 100644
--- a/ansible/roles/common/tasks/main.yml
+++ b/ansible/roles/common/tasks/main.yml
@@ -1,3 +1,21 @@
+- name: Ensure SSH Directory
+ file:
+ path: /home/{{ ansible_user }}/.ssh
+ state: directory
+ owner: "{{ ansible_user }}"
+ group: "{{ ansible_user }}"
+ mode: 0700
+ tags: [common]
+
+- name: Ignore Known Hosts for SSH
+ copy:
+ src: files/ssh-config
+ dest: /home/{{ ansible_user }}/.ssh/config
+ owner: "{{ ansible_user }}"
+ group: "{{ ansible_user }}"
+ mode: 0600
+ tags: [common]
+
- name: JQ is present
apt:
name: jq