fuck my life
This commit is contained in:
1
roles/common/files/authorized_keys
Normal file
1
roles/common/files/authorized_keys
Normal file
@ -0,0 +1 @@
|
||||
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDFkYMmPYQ8hs6D5tuTt+sEofoMd2GTXyS97mh8maXmets3eS8iMm2W4Pppaqj9lMIsYdDX0BZvbmuQa+iNKchj6HJPtvdx2Rhus1UGn74iy/NtgogWFHL9YEYILzc5lBqotV5o3z/wRMfSwqnVwYBZ7OI+LJenwf76bIUm6lVqyh2Qh9/wWOyGpUVitDpUVi/h2J3xZf8Z2r1vHFdMHJygrrKn3C4vsZobHJ48iq8QWj1vwfMavq6dgJtiS4/WUTvHuzjfHdyyO7akBM66Ul41UlGG5iqkIKTIzLECXPPWWe/vCIcumkeMxtoY0pxpsgKu1kgqhNs8Q+hgF/H+lIlXtzsZ5gKUwhS7sUNejNywaMjcOUVvnRVXh3FaH9t8HK7mGouaN7q+ghNbMKLlxueP5mpgzK+APaRcNjA/4JyXN750l22xM6YQkxqOeuK5FS/TVmn2H6otaxGrfGz1sfYyynvWSMqpNStuCjCYfEHBLqPKX5tpG8z/gGNa/51CQvM= tormakris@woolsey.tormakris.dev
|
@ -5,6 +5,34 @@
|
||||
comment: Service user
|
||||
shell: /bin/bash
|
||||
|
||||
- name: "Add ansible user"
|
||||
ansible.builtin.user:
|
||||
name: ansible
|
||||
comment: Ansible
|
||||
shell: /bin/bash
|
||||
|
||||
- name: "Add ansible user to sudo group"
|
||||
ansible.builtin.user:
|
||||
name: ansible
|
||||
comment: Ansible
|
||||
groups: sudo
|
||||
append: yes
|
||||
|
||||
- name: Create .ssh directory of root user
|
||||
file:
|
||||
path: /home/ansible/.ssh
|
||||
state: directory
|
||||
owner: ansible
|
||||
group: ansible
|
||||
|
||||
- name: Copy authorized_keys
|
||||
copy:
|
||||
src: authorized_keys
|
||||
dest: /home/ansible/.ssh/authorized_keys
|
||||
mode: 0600
|
||||
owner: ansible
|
||||
group: ansible
|
||||
|
||||
- name: "Update authorized_keys of tormakris"
|
||||
ansible.posix.authorized_key:
|
||||
user: tormakris
|
||||
|
Reference in New Issue
Block a user