fix variable issues
This commit is contained in:
parent
86fc679a6e
commit
68163176a7
@ -24,6 +24,5 @@
|
|||||||
line: '[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh'
|
line: '[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh'
|
||||||
- name: copy config to skel
|
- name: copy config to skel
|
||||||
copy:
|
copy:
|
||||||
remote_src: yes
|
|
||||||
src: "{{ role_path }}/files/.p10k.zsh"
|
src: "{{ role_path }}/files/.p10k.zsh"
|
||||||
dest: "/etc/skel/.p10k.zsh"
|
dest: "/etc/skel/.p10k.zsh"
|
@ -7,7 +7,7 @@
|
|||||||
- git
|
- git
|
||||||
- name: install powerlevel10k
|
- name: install powerlevel10k
|
||||||
import_tasks: install-powerlevel10k.yml
|
import_tasks: install-powerlevel10k.yml
|
||||||
when: template is defined and "powerlevel10k" == template
|
when: vars["zsh-template"] is defined and "powerlevel10k" == vars["zsh-template"]
|
||||||
- name: include tasks
|
- name: include tasks
|
||||||
import_tasks: install-zsh-plugins.yml
|
import_tasks: install-zsh-plugins.yml
|
||||||
- name: enable plugins
|
- name: enable plugins
|
||||||
@ -16,22 +16,24 @@
|
|||||||
user:
|
user:
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
shell: /bin/zsh
|
shell: /bin/zsh
|
||||||
with_items: "{{ oh-my-zsh-users }}"
|
with_items: "{{ vars[\"oh-my-zsh-users\"] }}"
|
||||||
register: user
|
register: user
|
||||||
- name: copy .zsh template to userhome .zshrc"
|
- name: copy .zsh zsh-template to userhome .zshrc"
|
||||||
copy:
|
copy:
|
||||||
src: "/etc/skel/.zshrc"
|
src: "/etc/skel/.zshrc"
|
||||||
dest: "{{ item.home }}/.zshrc"
|
dest: "{{ item.home }}/.zshrc"
|
||||||
|
remote_src: yes
|
||||||
with_items: "{{user.results}}"
|
with_items: "{{user.results}}"
|
||||||
- name: copy .zsh template to userhome .zshrc"
|
- name: copy .zsh zsh-template to userhome .zshrc"
|
||||||
copy:
|
copy:
|
||||||
src: "/etc/skel/.p10k.zsh"
|
src: "/etc/skel/.p10k.zsh"
|
||||||
dest: "{{ item.home }}/.p10k.zsh"
|
dest: "{{ item.home }}/.p10k.zsh"
|
||||||
|
remote_src: yes
|
||||||
with_items: "{{user.results}}"
|
with_items: "{{user.results}}"
|
||||||
when: template is defined and "powerlevel10k" == template
|
when: vars["zsh-template"] is defined and "powerlevel10k" == vars["zsh-template"]
|
||||||
- name: copy config to skel
|
- name: copy config to skel
|
||||||
copy:
|
copy:
|
||||||
src: "{{ role_path }}/files/.p10k.zsh"
|
src: "files/.p10k.zsh"
|
||||||
dest: "/etc/skel/.p10k.zsh"
|
dest: "/etc/skel/.p10k.zsh"
|
||||||
with_items: "{{user.results}}"
|
with_items: "{{user.results}}"
|
||||||
when: template is defined and "powerlevel10k" == template
|
when: vars["zsh-template"] is defined and "powerlevel10k" == vars["zsh-template"]
|
Loading…
Reference in New Issue
Block a user