Add managed user and aliases
This commit is contained in:
@@ -1,4 +1,6 @@
|
|||||||
- hosts: localhost
|
- hosts: localhost
|
||||||
|
vars_files:
|
||||||
|
- vars/vault.yml
|
||||||
connection: local
|
connection: local
|
||||||
become: yes
|
become: yes
|
||||||
|
|
||||||
|
|||||||
@@ -14,6 +14,14 @@
|
|||||||
group: robert
|
group: robert
|
||||||
mode: '0644'
|
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
|
- name: Create commands directory
|
||||||
file:
|
file:
|
||||||
path: /home/robert/.config/commands
|
path: /home/robert/.config/commands
|
||||||
|
|||||||
@@ -0,0 +1,2 @@
|
|||||||
|
# Robert's alias commands
|
||||||
|
alias ip='ip -br -c a' # display ip addresses
|
||||||
@@ -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
|
- name: create ansible user
|
||||||
user:
|
user:
|
||||||
name: ansible
|
name: ansible
|
||||||
|
|||||||
@@ -0,0 +1,12 @@
|
|||||||
|
$ANSIBLE_VAULT;1.1;AES256
|
||||||
|
39663438393132343661623263633631373433323231306433623636346263346432656430636236
|
||||||
|
6662363130316138346166353231303834616335373961320a336439363961613864643835386464
|
||||||
|
39636232303438353639383335643530383239646634333635633339383438393833336334373730
|
||||||
|
3638663034393830630a653764363135306464643539306662366561366164316430383234383337
|
||||||
|
34353166636261636437356537653064313230633733353336323337383464376161656332376265
|
||||||
|
39633330646365633733646432346236656237336638623933343239353132373431653463653563
|
||||||
|
34303866353135643561633735313361653630396635393533616664663936303564636464373937
|
||||||
|
63613336666236313930633439663961356235623161383530663033303237346638663964336563
|
||||||
|
66616163396363666532326437393932323236373530336333653134616332653531303737623630
|
||||||
|
37633737313835616566653037303634353761313632366133346436333038353431363331383662
|
||||||
|
363361343166636333313065383162376135
|
||||||
Reference in New Issue
Block a user