- name: Setup user zsh config when: "'zsh' in setup" tags: [user,zsh] block: - name: Add .zshrc template: src=zshrc.zsh.j2 dest=/home/{{ name }}/.zshrc owner={{ name }} group={{ group }} mode=0644 - name: Add zsh zstyles config copy: src=zstyles.zsh dest=/home/{{ name }}/.zstyles owner={{ name }} group={{ group }} mode=0644 - name: Setup user bash config when: "'bash' in setup" tags: [user,bash] block: - name: Add .bashrc template: src=bashrc.sh.j2 dest=/home/{{ name }}/.bashrc owner={{ name }} group={{ group }} mode=0644 - name: Setup user extra config when: "'extra' in setup" tags: [user,extra] block: - import_tasks: extra.yml - name: Add .env file when: not revert copy: src=env.sh dest=/home/{{ name }}/.env owner={{ name }} group={{ group }} mode=0644 - name: Revert ansible shell setup when: revert block: - import_tasks: revert.yml