Feat: custom promp
This commit is contained in:
@@ -12,7 +12,6 @@
|
||||
- sudo
|
||||
- wget
|
||||
- cronie
|
||||
- zsh
|
||||
- vim
|
||||
- tmux
|
||||
- ruby
|
||||
|
@@ -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
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 }}"
|
||||
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:
|
||||
|
Reference in New Issue
Block a user