Ansible god!
Big rework! Control stuffs with variables! We still should do some movei'n around of roles before extending features.
This commit is contained in:
27
roles/shell/tasks/revert.yml
Normal file
27
roles/shell/tasks/revert.yml
Normal file
@@ -0,0 +1,27 @@
|
||||
- name: Remove user zsh config
|
||||
tags: [zsh]
|
||||
block:
|
||||
- name: Remove .zshrc
|
||||
file: state=absent path=/home/{{ name }}/.zshrc
|
||||
- name: Remove zsh zstyles config
|
||||
file: state=absent path=/home/{{ name }}/.zstyles
|
||||
- name: Remove .zshrc.d folder/link
|
||||
file: state=absent path=/home/{{ name }}/.zshrc.d
|
||||
|
||||
- name: Remove zsh syntax highlighting
|
||||
file: state=absent path=/home/{{ name }}/.zshrc.d/zsh-syntax-highlighting
|
||||
when: not zsh_opt_config
|
||||
- name: Remove zsh syntax highlighting (/opt/zsh)
|
||||
file: state=absent path=/opt/zsh/zsh-syntax-highlighting
|
||||
when: zsh_opt_config
|
||||
|
||||
- name: Remove extra user config
|
||||
when: "'extra' in setup"
|
||||
tags: [extra]
|
||||
block:
|
||||
- name: Remove .aliases
|
||||
file: state=absent path=/home/{{ name }}/.aliases
|
||||
- name: Remove .bat.conf
|
||||
file: state=absent path=/home/{{ name }}/.bat.conf
|
||||
- name: Remove .env file
|
||||
file: state=absent path=/home/{{ name }}/.env
|
Reference in New Issue
Block a user