Add managed user and aliases

This commit is contained in:
2026-10-03 22:06:02 -06:00
parent 71a0da3398
commit 25f538d239
5 changed files with 33 additions and 0 deletions
+8
View File
@@ -14,6 +14,14 @@
group: robert
mode: '0644'
- name: Install aliases
copy:
src: files/aliases.sh
dest: /home/robert/.bashrc.d/aliases.sh
owner: robert
group: robert
mode: '0644'
- name: Create commands directory
file:
path: /home/robert/.config/commands
+2
View File
@@ -0,0 +1,2 @@
# Robert's alias commands
alias ip='ip -br -c a' # display ip addresses
+9
View File
@@ -1,3 +1,12 @@
- name: Create robert user
user:
name: robert
groups: sudo
append: yes
shell: /bin/bash
create_home: yes
password: "{{ robert_password_hash }}"
- name: create ansible user
user:
name: ansible