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