mirror of
https://github.com/CPunch/openpunk-ansible.git
synced 2024-11-22 07:20:05 +00:00
Fixed git setup
This commit is contained in:
parent
3654d1dd9c
commit
ac827f8507
@ -6,26 +6,24 @@
|
|||||||
owner: root
|
owner: root
|
||||||
mode: u=rw,g=,o=
|
mode: u=rw,g=,o=
|
||||||
|
|
||||||
- name: Scan for SSH host keys.
|
- name: Scan for SSH host keys
|
||||||
local_action:
|
command: ssh-keyscan github.com 2>/dev/null
|
||||||
module: shell
|
|
||||||
cmd: ssh-keyscan git.{{ domain }} 2>/dev/null
|
|
||||||
changed_when: False
|
|
||||||
register: ssh_scan
|
register: ssh_scan
|
||||||
|
|
||||||
- name: Update known_hosts.
|
- name: Update known_hosts
|
||||||
local_action:
|
copy:
|
||||||
module: known_hosts
|
content: "{{ ssh_scan.stdout_lines|join('\n') }}"
|
||||||
key: "{{ item }}"
|
dest: /root/.ssh/known_hosts
|
||||||
name: git.{{ domain }}
|
owner: root
|
||||||
with_items: "{{ ssh_scan.stdout_lines }}"
|
mode: u=rw,g=,o=
|
||||||
|
|
||||||
- name: Install ssh keys
|
- name: Install ssh priv key
|
||||||
clone:
|
copy:
|
||||||
src: secrets/id_ed25519
|
src: secrets/id_ed25519
|
||||||
dest: /root/.ssh/id_ed25519
|
dest: /root/.ssh/id_ed25519
|
||||||
|
mode: u=rw,g=,o=
|
||||||
|
|
||||||
- name: Install ssh keys
|
- name: Install ssh pub key
|
||||||
clone:
|
copy:
|
||||||
src: secrets/id_ed25519.pub
|
src: secrets/id_ed25519.pub
|
||||||
dest: /root/.ssh/id_ed25519.pub
|
dest: /root/.ssh/id_ed25519.pub
|
Loading…
Reference in New Issue
Block a user