new keys, cleaning up inventory

This commit is contained in:
dan
2024-09-16 19:48:11 +00:00
parent 216dff0cde
commit b57180da63
3 changed files with 5 additions and 12 deletions

View File

@@ -1,4 +1,4 @@
[defaults] [defaults]
privatekeyfile = /home/dan/.ssh/id_rsa.pub privatekeyfile = /home/dan/.ssh/id_ed25519.pub
inventory = inventory inventory = inventory
become_password_file = pass become_password_file = pass

View File

@@ -1,10 +1,3 @@
[hosts] [hosts]
192.168.86.202 10.0.0.227
192.168.86.213 10.0.0.12
192.168.86.234
192.168.86.226
192.168.86.10
192.168.86.223
192.168.86.12
192.168.86.134

View File

@@ -7,10 +7,10 @@
ansible.posix.authorized_key: ansible.posix.authorized_key:
user: dan user: dan
state: present state: present
key: "{{ lookup('file', '/home/dan/.ssh/id_rsa.pub') }}" key: "{{ lookup('file', '/home/dan/.ssh/id_ed25519.pub') }}"
- name: Push laptop key - name: Push laptop key
ansible.posix.authorized_key: ansible.posix.authorized_key:
user: dan user: dan
state: present state: present
key: "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQJAVWcuwdF0vzqAWsZdzHxDrnsGUgrdwk54UYeb1sMe6nwbo7A3N+9knjS0QymFau2rzfUgh1ErsEM+qz2nbdtslkOlEFY1edkNRhGnVgCeKCqCdJ+MKuywK/4iazbZCezTchIZbX8Olft0Qig7TP9RlCWBzBffQgaJSxMjc0fe+dV+O2uTFjxD9KeRhlSf4DMon27b4D9eBb5aCnFMufPV1Tpu0xBygfENzxPV3I20ge41Kfms4UGradkaaz+uARwdi9eiAD+wutGDzf1ha+upqS6I0ji6VHziebAaPTuNXtykJFiXYTQnITswMotlT+vApf1REAfgS94E5zS7IBYGeDNks4xAArpO/I1G0Z5lbzim/t4q6ckOSjaGS1v6YTmiUulbkhS/u5wchMR/jzj2sRwKFgPOMyvBdNf1hYyUKgdRnzhyTuKRdwWW4WYQbeSvSt/Kgljt9l3ogP87dtrp7aEat+JOKgEbjACpV0XHxh/hwZ5m+6Ss8hkLmyYS9F9NGooA5V25Hl3MqDWLFuyxwg8Tj5dLreuiCbb/4yK087QUU+46xvU6yhxTdZdyh8xUXTRV94o9ZcKCfeyzoYuNu5U9wlz+GlDxiTENE21zotfzMzMEvwyUUGFnbjr1K7RZiYrgu6DGFI0hknh+68V3SkMXLSHCUv/mKfPXTfqpBw== rsa-key-20240305" key: "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDBTniEGOsRiG81z6DWhEWxjZUXdQU144W46bm1Q0lIE eddsa-key-20240916"