Feat: custom promp

This commit is contained in:
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: