Compare commits

..

1 Commits

Author SHA1 Message Date
c0360147ef Start using Ansible for config management 2021-10-24 22:48:03 +01:00

View File

@ -3,15 +3,11 @@
- hosts: localhost - hosts: localhost
tasks: tasks:
- name: Install Zsh packages - name: Install Zsh packages
package: package: {name: zsh, state: present}
name: zsh
state: present
- name: Install Zsh Debian packages - name: Install Zsh Debian packages
when: ansible_os_family == "Debian" when: ansible_os_family == "Debian"
apt: apt: {name: '{{item}}', state: present}
name: '{{item}}'
state: present
become: true become: true
with_items: with_items:
- zsh-doc - zsh-doc
@ -38,7 +34,7 @@
cmd: ~/.config/zsh/fzf/install --bin cmd: ~/.config/zsh/fzf/install --bin
creates: ~/.config/zsh/fzf/bin/fzf creates: ~/.config/zsh/fzf/bin/fzf
- name: Create Zsh symboic links - name: Create zsh symboic links
file: file:
state: link state: link
src: '{{item.src}}' src: '{{item.src}}'
@ -76,8 +72,8 @@
register: zsh register: zsh
changed_when: false changed_when: false
- name: Set default shell to Zsh - name: Set users default shell to Zsh
user: user:
name: '{{lookup("env", "USER")}}' name: benie
shell: '{{zsh.stdout}}' shell: '{{zsh.stdout}}'
become: true become: true