I have a playbook that installs oh-my-zsh:

---

- name: install zsh
  apt: pkg=zsh update_cache=yes

- name: install oh-my-zsh
  git: repo=git://github.com/robbyrussell/oh-my-zsh.git
       dest=/home/{{ username }}/.oh-my-zsh
       depth=1

- name: copy zshrc
  template: src=zshrc.j2 dest=/home/{{ username }}/.zshrc owner={{ username 
}}

- name: setting zsh as default shell
  user: name={{ username }} shell=/bin/zsh


Ideally I wouldn't have a username variable, since I simply want to add 
everything to the remote_user's home directory. Is there a way to do this?

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/6cdae568-f651-438c-8469-c3fa7a72128c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to