--- - name: clone powerlevel10k git: repo: "{{ template_powerlevel10k_repo }}" dest: "{{ oh_my_zsh_install_folder }}/custom/themes/powerlevel10k" depth: 1 - name: enable powerlevel in template lineinfile: path: "{{ oh_my_zsh_install_folder }}/.zshrc" regex: "^ZSH_THEME=" line: 'ZSH_THEME="powerlevel10k/powerlevel10k"' - name: enable powerlevel in template lineinfile: path: "{{ oh_my_zsh_install_folder }}/.zshrc" line: '[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh' - name: enable powerlevel in skel lineinfile: path: "/etc/skel/.zshrc" regex: "^ZSH_THEME=" line: 'ZSH_THEME="powerlevel10k/powerlevel10k"' - name: enable powerlevel in template lineinfile: path: "/etc/skel/.zshrc" 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"