Many updates over time

This commit is contained in:
2026-02-24 17:57:35 -07:00
parent 6b36273324
commit 0132ed6a8f
68 changed files with 1409 additions and 197 deletions

View File

@@ -15,19 +15,18 @@
user: '{{ user }}'
key: '{{ item }}'
with_file:
- '{{ user_path }}/keys/{{ user }}.key.pub'
when: ssh_authorize|default(true)|bool
- '../roles/user/keys/{{ user }}.key.pub'
when: ssh_authorize == true
# Create users public key
- name: Copying {{ user }} SSH public key
copy:
src: '{{ user_path }}/keys/{{ user }}.key.pub'
#dest: '{{ user_home }}/.ssh/id_rsa.pub'
src: '../roles/user/keys/{{ user }}.key.pub'
dest: '{{ "~" + user | expanduser }}/.ssh/id_rsa.pub'
owner: '{{ user }}'
group: '{{ user }}'
mode: '0644'
when: ssh_keys|default(false)|bool
when: ssh_keys == true
# Create users private key
- name: Copying {{ user }} SSH private key
@@ -37,4 +36,4 @@
owner: '{{ user }}'
group: '{{ user }}'
mode: '0600'
when: ssh_keys|default(false)|bool
when: ssh_keys == true