diff --git a/local.yml b/local.yml index 4c7b0fe..d76f51c 100644 --- a/local.yml +++ b/local.yml @@ -1,4 +1,6 @@ - hosts: localhost + vars_files: + - vars/vault.yml connection: local become: yes diff --git a/tasks/command-picker.yml b/tasks/command-picker.yml index edae745..0d9795c 100644 --- a/tasks/command-picker.yml +++ b/tasks/command-picker.yml @@ -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 diff --git a/tasks/files/aliases.sh b/tasks/files/aliases.sh new file mode 100644 index 0000000..bdf711e --- /dev/null +++ b/tasks/files/aliases.sh @@ -0,0 +1,2 @@ +# Robert's alias commands +alias ip='ip -br -c a' # display ip addresses diff --git a/tasks/users.yml b/tasks/users.yml index 78c8f06..9006215 100644 --- a/tasks/users.yml +++ b/tasks/users.yml @@ -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 diff --git a/vars/vault.yml b/vars/vault.yml new file mode 100644 index 0000000..4d8c8e2 --- /dev/null +++ b/vars/vault.yml @@ -0,0 +1,12 @@ +$ANSIBLE_VAULT;1.1;AES256 +39663438393132343661623263633631373433323231306433623636346263346432656430636236 +6662363130316138346166353231303834616335373961320a336439363961613864643835386464 +39636232303438353639383335643530383239646634333635633339383438393833336334373730 +3638663034393830630a653764363135306464643539306662366561366164316430383234383337 +34353166636261636437356537653064313230633733353336323337383464376161656332376265 +39633330646365633733646432346236656237336638623933343239353132373431653463653563 +34303866353135643561633735313361653630396635393533616664663936303564636464373937 +63613336666236313930633439663961356235623161383530663033303237346638663964336563 +66616163396363666532326437393932323236373530336333653134616332653531303737623630 +37633737313835616566653037303634353761313632366133346436333038353431363331383662 +363361343166636333313065383162376135