Sivert V. Sæther
fc8fc4e9c8
Added home variable for the home folder, defaults to username. Edited neofetch config so it runs faster. Added mukti and ctrl-c.club variables.
31 lines
879 B
YAML
31 lines
879 B
YAML
- name: Setup user zsh config
|
|
when: "'zsh' in setup"
|
|
tags: [user,zsh]
|
|
block:
|
|
- name: Add .zshrc
|
|
template: src=zshrc.zsh.j2 dest={{ home }}/.zshrc owner={{ name }} group={{ group }} mode=0644
|
|
- name: Add zsh zstyles config
|
|
copy: src=zstyles.zsh dest={{ home }}/.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 }}/.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 }}/.env owner={{ name }} group={{ group }} mode=0644
|
|
|
|
- name: Revert ansible shell setup
|
|
when: revert
|
|
block:
|
|
- import_tasks: revert.yml
|