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
|
- name: Generate keypair
|
||||||
openssh_keypair:
|
openssh_keypair:
|
||||||
comment: "{{ user_username }}@{{ inventory_hostname }}"
|
comment: "{{ user_username }}@{{ inventory_hostname }}"
|
||||||
path: $HOME/.ssh/id_rsa
|
path: $HOME/.ssh/id_ed25519
|
||||||
mode: "0600"
|
mode: "0600"
|
||||||
register: keypair
|
register: keypair
|
||||||
- name: Register keypair with Gitea
|
- name: Register keypair with Gitea
|
||||||
@ -28,7 +28,7 @@
|
|||||||
body:
|
body:
|
||||||
key: "{{ keypair.public_key }}"
|
key: "{{ keypair.public_key }}"
|
||||||
read_only: yes
|
read_only: yes
|
||||||
title: "{{ inventory_hostname }}"
|
title: "{{ inventory_hostname }}-ed25519"
|
||||||
status_code: 201
|
status_code: 201
|
||||||
when: keypair is changed
|
when: keypair is changed
|
||||||
- name: Configure authorized hosts
|
- name: Configure authorized hosts
|
||||||
@ -43,8 +43,6 @@
|
|||||||
- name: Check for dotfile initialization
|
- name: Check for dotfile initialization
|
||||||
stat: path=$HOME/.dotfiles
|
stat: path=$HOME/.dotfiles
|
||||||
register: p
|
register: p
|
||||||
- name: Initialize dotfiles
|
|
||||||
block:
|
|
||||||
- name: Configure git SSH substitute for GitHub
|
- name: Configure git SSH substitute for GitHub
|
||||||
git_config:
|
git_config:
|
||||||
name: url."https://github.com/".insteadOf
|
name: url."https://github.com/".insteadOf
|
||||||
@ -63,6 +61,8 @@
|
|||||||
value: "git@git.9iron.club:"
|
value: "git@git.9iron.club:"
|
||||||
scope: global
|
scope: global
|
||||||
state: absent
|
state: absent
|
||||||
|
- name: Initialize dotfiles
|
||||||
|
block:
|
||||||
- name: Clone bootstrap script
|
- name: Clone bootstrap script
|
||||||
git:
|
git:
|
||||||
accept_hostkey: yes
|
accept_hostkey: yes
|
||||||
|
Loading…
Reference in New Issue
Block a user