Compare commits
1 Commits
3d27565ddb
...
c0360147ef
Author | SHA1 | Date | |
---|---|---|---|
c0360147ef |
14
main.yaml
14
main.yaml
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user