update
This commit is contained in:
@@ -13,17 +13,20 @@
|
|||||||
with_items: "{{ dconf }}"
|
with_items: "{{ dconf }}"
|
||||||
|
|
||||||
- name: Check that Oh My ZSH is installed
|
- name: Check that Oh My ZSH is installed
|
||||||
|
become_user: user
|
||||||
stat:
|
stat:
|
||||||
path: "~/.oh-my-zsh"
|
path: "~/.oh-my-zsh"
|
||||||
register: ohmyzsh_result
|
register: ohmyzsh_result
|
||||||
|
|
||||||
- name: Install Oh My ZSH
|
- name: Install Oh My ZSH
|
||||||
|
become_user: user
|
||||||
shell: sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
|
shell: sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
|
||||||
args:
|
args:
|
||||||
creates: "~/.oh-my-zsh"
|
creates: "~/.oh-my-zsh"
|
||||||
when: not ohmyzsh_result.stat.exists
|
when: not ohmyzsh_result.stat.exists
|
||||||
|
|
||||||
- name: "Create a default ZSH configuration"
|
- name: "Create a default ZSH configuration"
|
||||||
|
become_user: user
|
||||||
template:
|
template:
|
||||||
src: templates/.zshrc
|
src: templates/.zshrc
|
||||||
dest: "~/.zshrc"
|
dest: "~/.zshrc"
|
||||||
@@ -31,11 +34,13 @@
|
|||||||
force: yes
|
force: yes
|
||||||
|
|
||||||
- name: Check that Auto Suggestions is installed
|
- name: Check that Auto Suggestions is installed
|
||||||
|
become_user: user
|
||||||
stat:
|
stat:
|
||||||
path: ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
|
path: ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
|
||||||
register: auto_suggestions_result
|
register: auto_suggestions_result
|
||||||
|
|
||||||
- name: Install Auto Suggestions
|
- name: Install Auto Suggestions
|
||||||
|
become_user: user
|
||||||
shell: git clone https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
|
shell: git clone https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
|
||||||
when: not auto_suggestions_result.stat.exists
|
when: not auto_suggestions_result.stat.exists
|
||||||
|
|
||||||
@@ -44,6 +49,7 @@
|
|||||||
shell: /bin/zsh
|
shell: /bin/zsh
|
||||||
|
|
||||||
- name: Create bin folder
|
- name: Create bin folder
|
||||||
|
become_user: user
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: ~/.local/bin
|
path: ~/.local/bin
|
||||||
owner: "user"
|
owner: "user"
|
||||||
|
|||||||
Reference in New Issue
Block a user