Skip to content

Commit

Permalink
Rename shell_aliases variable
Browse files Browse the repository at this point in the history
The ansible lint fix ended up renaming the `shell_aliases` variable.
  • Loading branch information
PauloPortugal committed Jul 8, 2022
1 parent a529a4f commit cf7c050
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion group_vars/all
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ multimedia:
- darktable
- gimp

ansible.builtin.shell_aliases:
shell_aliases:
- alias ll='ls -lrt'
- alias pull='hub pull-request --no-edit -o -p'
- alias rgrep='grep -r'
Expand Down
8 changes: 4 additions & 4 deletions roles/base/tasks/zsh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@
tags:
- zsh

- name: Create zsh ansible.builtin.shell aliases
- name: Create zsh shell aliases
ansible.builtin.lineinfile: dest=/home/{{ user_name }}/.zshrc regexp='{{ item }}' insertafter='EOF' line='{{ item }}' owner='{{ user_name }}' state=present
with_items: "{{ ansible.builtin.shell_aliases }}"
with_items: "{{ shell_aliases }}"
become_user: "{{ user_name }}"
become: true
tags:
Expand All @@ -54,7 +54,7 @@
tags:
- zsh

- name: Change zsh ansible.builtin.shell theme from 'robbyrussell' to 'agnoster'
- name: Change zsh shell theme from 'robbyrussell' to 'agnoster'
ansible.builtin.replace:
path: /home/{{ user_name }}/.zshrc
regexp: ZSH_THEME="robbyrussell"
Expand All @@ -65,7 +65,7 @@
tags:
- zsh

- name: Set zsh as default ansible.builtin.shell
- name: Set zsh as default shell
ansible.builtin.user:
name: "{{ user_name }}"
ansible.builtin.shell: /usr/bin/zsh
Expand Down

0 comments on commit cf7c050

Please sign in to comment.