fix variable issues

This commit is contained in:
Haug, Christoph 2022-05-05 09:10:20 +02:00
parent 86fc679a6e
commit 68163176a7
2 changed files with 9 additions and 8 deletions

View File

@ -24,6 +24,5 @@
line: '[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh'
- name: copy config to skel
copy:
remote_src: yes
src: "{{ role_path }}/files/.p10k.zsh"
dest: "/etc/skel/.p10k.zsh"

View File

@ -7,7 +7,7 @@
- git
- name: install powerlevel10k
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
import_tasks: install-zsh-plugins.yml
- name: enable plugins
@ -16,22 +16,24 @@
user:
name: "{{ item }}"
shell: /bin/zsh
with_items: "{{ oh-my-zsh-users }}"
with_items: "{{ vars[\"oh-my-zsh-users\"] }}"
register: user
- name: copy .zsh template to userhome .zshrc"
- name: copy .zsh zsh-template to userhome .zshrc"
copy:
src: "/etc/skel/.zshrc"
dest: "{{ item.home }}/.zshrc"
remote_src: yes
with_items: "{{user.results}}"
- name: copy .zsh template to userhome .zshrc"
- name: copy .zsh zsh-template to userhome .zshrc"
copy:
src: "/etc/skel/.p10k.zsh"
dest: "{{ item.home }}/.p10k.zsh"
remote_src: yes
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
copy:
src: "{{ role_path }}/files/.p10k.zsh"
src: "files/.p10k.zsh"
dest: "/etc/skel/.p10k.zsh"
with_items: "{{user.results}}"
when: template is defined and "powerlevel10k" == template
when: vars["zsh-template"] is defined and "powerlevel10k" == vars["zsh-template"]