Fix old substitutes, also how about we generate new fancy keys instead of old RSA ones
Also because this is clobbering my old keys help me
This commit is contained in:
parent
51869e069a
commit
47977063f4
@ -14,7 +14,7 @@
|
||||
- name: Generate keypair
|
||||
openssh_keypair:
|
||||
comment: "{{ user_username }}@{{ inventory_hostname }}"
|
||||
path: $HOME/.ssh/id_rsa
|
||||
path: $HOME/.ssh/id_ed25519
|
||||
mode: "0600"
|
||||
register: keypair
|
||||
- name: Register keypair with Gitea
|
||||
@ -28,7 +28,7 @@
|
||||
body:
|
||||
key: "{{ keypair.public_key }}"
|
||||
read_only: yes
|
||||
title: "{{ inventory_hostname }}"
|
||||
title: "{{ inventory_hostname }}-ed25519"
|
||||
status_code: 201
|
||||
when: keypair is changed
|
||||
- name: Configure authorized hosts
|
||||
@ -43,8 +43,6 @@
|
||||
- name: Check for dotfile initialization
|
||||
stat: path=$HOME/.dotfiles
|
||||
register: p
|
||||
- name: Initialize dotfiles
|
||||
block:
|
||||
- name: Configure git SSH substitute for GitHub
|
||||
git_config:
|
||||
name: url."https://github.com/".insteadOf
|
||||
@ -63,6 +61,8 @@
|
||||
value: "git@git.9iron.club:"
|
||||
scope: global
|
||||
state: absent
|
||||
- name: Initialize dotfiles
|
||||
block:
|
||||
- name: Clone bootstrap script
|
||||
git:
|
||||
accept_hostkey: yes
|
||||
|
Loading…
Reference in New Issue
Block a user