feat: configure local user

main
Winston Smith 2022-12-08 10:37:30 +01:00
parent 6262344743
commit d6a7e5024b
No known key found for this signature in database
GPG Key ID: DFD784DB2A6F7A07
1 changed files with 7 additions and 0 deletions

View File

@ -1,6 +1,7 @@
- hosts: debian_servers
become: true
tasks:
- name: Update and upgrade apt packages
apt:
@ -56,3 +57,9 @@
lineinfile:
path: "/home/{{ ansible_user }}/.ssh/authorized_keys"
line: "{{ ssh_pubkey }}"
- name: Configure user
ansible.builtin.user:
name: "{{ ansible_user }}"
shell: /usr/bin/fish
groups: docker