Added new ansible home directory, moving roles into its 'roles' subdirectory

This commit is contained in:
Alex Tavarez
2025-07-27 00:04:39 -04:00
parent 16430af533
commit bffe44b5a7
60 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
---
- name: Add authorized keys for SSH access to accounts
ansible.posix.authorized_keys:
user: "{{ item[0] }}"
key: "{{ item[1] }}"
state: present
validate_certs: no
loop: "{{ pubkeys }}"
register: pubkeys_assigned
tags: ['default', 'assign_pubkeys']
- name: Disable SSH password authentication
copy:
src: sshd/nopass.conf
dest: /etc/ssh/sshd_config.d/nopass.conf
owner: "{{ primary_root_acct }}"
group: "{{ primary_root_acct }}"
force: yes
register: ssh_passauth_disabled
tags: ['default', 'disable_ssh_passauth']