[ansible] Split out tasks that need sudo

pull/28/head
Alpha Chen 10 years ago
parent d01c77c4dc
commit 98f38358a6

@ -0,0 +1,6 @@
- hosts: all
sudo: yes
tasks:
- name: set zsh as default shell
# user: name=alpha shell=zsh
command: chsh -s zsh alpha

@ -5,9 +5,6 @@
- include: config.yml - include: config.yml
- hosts: all - hosts: all
tasks: tasks:
- name: set zsh as default shell
user: name=alpha shell=zsh
sudo: yes
- name: symlink zprezto - name: symlink zprezto
file: src={{ ansible_env.HOME }}/Dropbox/dotfiles/src/prezto dest={{ ansible_env.HOME}}/.zprezto state=link file: src={{ ansible_env.HOME }}/Dropbox/dotfiles/src/prezto dest={{ ansible_env.HOME}}/.zprezto state=link
- name: symlink zsh runcoms - name: symlink zsh runcoms

Loading…
Cancel
Save