Feat: custom promp

This commit is contained in:
Bertrand Benjamin 2019-02-08 08:17:42 +01:00
parent 2d0456636b
commit fb587ea7ae
6 changed files with 28 additions and 5 deletions

View File

@ -12,7 +12,6 @@
- sudo
- wget
- cronie
- zsh
- vim
- tmux
- ruby

View File

@ -58,6 +58,7 @@
owner: "{{ item.username }}"
group: "{{ item.username }}"
with_items: "{{ me }}"
when: prompt == 'zsh'
- name: Copy local zshrc.local
template:
@ -66,6 +67,7 @@
owner: "{{ item.username }}"
group: "{{ item.username }}"
with_items: "{{ me }}"
when: prompt == 'zsh'
- name: Copy local zsh_plugins.txt
template:
@ -74,6 +76,7 @@
owner: "{{ item.username }}"
group: "{{ item.username }}"
with_items: "{{ me }}"
when: prompt == 'zsh'
- name: Copy .vim/
copy:

13
tasks/prompt.yml Normal file
View File

@ -0,0 +1,13 @@
---
- name: Install prompt
pacman:
name: {{ prompt }}
state: present
- name: Set shell for root
user:
name: root
shell: /bin/{{ prompt }}
tags:
- first_deployement

View File

@ -4,7 +4,7 @@
name: "{{ item.username }}"
password: "{{ item.password }}"
uid: "{{ item.uid }}"
shell: /bin/zsh
shell: /bin/{{ prompt }}
with_items: "{{ deploy_users }}"
tags:
- first_deployement
@ -14,7 +14,7 @@
name: "{{ item.username }}"
password: "{{ item.password }}"
uid: "{{ item.uid }}"
shell: /bin/zsh
shell: /bin/{{ prompt }}
with_items: "{{ me }}"
when: not minimal or not server
tags:

View File

@ -1,10 +1,16 @@
---
me:
- { username: 'lafrite', password: '$6$OnPrZgotbSWZlh0T$VSyF8lUhD/N881d1GsggE7jDFt0uAzls2r.pqgDV6XQKbTqZWfv0X4QWd/3wivUDyzaSjP4LQWVfne7KYR6Vv1', uid: '1000'}
- username: 'lafrite'
password: '$6$OnPrZgotbSWZlh0T$VSyF8lUhD/N881d1GsggE7jDFt0uAzls2r.pqgDV6XQKbTqZWfv0X4QWd/3wivUDyzaSjP4LQWVfne7KYR6Vv1'
uid: '1000'
deploy_users:
- { username: 'waha', password: '$6$tQLlZ3lI/NDcT3.C$VCBzrpNxDgOK7b2que2/BnAYWl.zKVugZrQEPxtsq3iWcskEzQ1NvytZRXkB4GCDa/xEohxiodyCaZyFnhxby1', uid: '999'}
- username: 'waha'
password: '$6$tQLlZ3lI/NDcT3.C$VCBzrpNxDgOK7b2que2/BnAYWl.zKVugZrQEPxtsq3iWcskEzQ1NvytZRXkB4GCDa/xEohxiodyCaZyFnhxby1'
uid: '999'
prompt: 'zsh'
minimal: false
server: false

View File

@ -1,2 +1,4 @@
---
deploy_public_key: id_rsa_rpi3.pub
prompt: fish