Feat: custom promp
This commit is contained in:
parent
2d0456636b
commit
fb587ea7ae
@ -12,7 +12,6 @@
|
|||||||
- sudo
|
- sudo
|
||||||
- wget
|
- wget
|
||||||
- cronie
|
- cronie
|
||||||
- zsh
|
|
||||||
- vim
|
- vim
|
||||||
- tmux
|
- tmux
|
||||||
- ruby
|
- ruby
|
||||||
|
@ -58,6 +58,7 @@
|
|||||||
owner: "{{ item.username }}"
|
owner: "{{ item.username }}"
|
||||||
group: "{{ item.username }}"
|
group: "{{ item.username }}"
|
||||||
with_items: "{{ me }}"
|
with_items: "{{ me }}"
|
||||||
|
when: prompt == 'zsh'
|
||||||
|
|
||||||
- name: Copy local zshrc.local
|
- name: Copy local zshrc.local
|
||||||
template:
|
template:
|
||||||
@ -66,6 +67,7 @@
|
|||||||
owner: "{{ item.username }}"
|
owner: "{{ item.username }}"
|
||||||
group: "{{ item.username }}"
|
group: "{{ item.username }}"
|
||||||
with_items: "{{ me }}"
|
with_items: "{{ me }}"
|
||||||
|
when: prompt == 'zsh'
|
||||||
|
|
||||||
- name: Copy local zsh_plugins.txt
|
- name: Copy local zsh_plugins.txt
|
||||||
template:
|
template:
|
||||||
@ -74,6 +76,7 @@
|
|||||||
owner: "{{ item.username }}"
|
owner: "{{ item.username }}"
|
||||||
group: "{{ item.username }}"
|
group: "{{ item.username }}"
|
||||||
with_items: "{{ me }}"
|
with_items: "{{ me }}"
|
||||||
|
when: prompt == 'zsh'
|
||||||
|
|
||||||
- name: Copy .vim/
|
- name: Copy .vim/
|
||||||
copy:
|
copy:
|
||||||
|
13
tasks/prompt.yml
Normal file
13
tasks/prompt.yml
Normal 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
|
||||||
|
|
@ -4,7 +4,7 @@
|
|||||||
name: "{{ item.username }}"
|
name: "{{ item.username }}"
|
||||||
password: "{{ item.password }}"
|
password: "{{ item.password }}"
|
||||||
uid: "{{ item.uid }}"
|
uid: "{{ item.uid }}"
|
||||||
shell: /bin/zsh
|
shell: /bin/{{ prompt }}
|
||||||
with_items: "{{ deploy_users }}"
|
with_items: "{{ deploy_users }}"
|
||||||
tags:
|
tags:
|
||||||
- first_deployement
|
- first_deployement
|
||||||
@ -14,7 +14,7 @@
|
|||||||
name: "{{ item.username }}"
|
name: "{{ item.username }}"
|
||||||
password: "{{ item.password }}"
|
password: "{{ item.password }}"
|
||||||
uid: "{{ item.uid }}"
|
uid: "{{ item.uid }}"
|
||||||
shell: /bin/zsh
|
shell: /bin/{{ prompt }}
|
||||||
with_items: "{{ me }}"
|
with_items: "{{ me }}"
|
||||||
when: not minimal or not server
|
when: not minimal or not server
|
||||||
tags:
|
tags:
|
||||||
|
@ -1,10 +1,16 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
me:
|
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:
|
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
|
minimal: false
|
||||||
server: false
|
server: false
|
||||||
|
@ -1,2 +1,4 @@
|
|||||||
---
|
---
|
||||||
deploy_public_key: id_rsa_rpi3.pub
|
deploy_public_key: id_rsa_rpi3.pub
|
||||||
|
|
||||||
|
prompt: fish
|
||||||
|
Loading…
Reference in New Issue
Block a user