add notes

Wed, 13 Apr 2016 13:13:07 -0400

author
Meredith Howard <mhoward@roomag.org>
date
Wed, 13 Apr 2016 13:13:07 -0400
changeset 43
31d5f9b7cff2
parent 42
e7b5a22ee347
child 44
bb6b3457957b

add notes

dotfiles.yml file | annotate | diff | comparison | revisions
--- a/dotfiles.yml
+++ b/dotfiles.yml
@@ -1,9 +1,11 @@
 ---
+# This is a playbook to run as myself, with agent forwarding, to pull down my
+# private dotfiles and set up.
+
 - hosts: devbox
   gather_facts: false
   tasks:
     - name: Clone dotfiles
-      become_user: "{{user.name}}"
       shell: >
         hg clone -U {{dotfiles_repository | quote}} _dotfiles_
         && mv _dotfiles_/.hg .
@@ -14,7 +16,6 @@
         creates: "~/.hg"
 
     - name: Update dotfiles
-      become_user: "{{user.name}}"
       command: hg pull -u
       args:
         chdir: "~"
@@ -22,9 +23,8 @@
       changed_when: update_dotfiles.stdout | match("added|updated")
       failed_when: update_dotfiles.rc > 1
 
-    - name: Run homedir-setup
-      become_user: "{{user.name}}"
-      shell: bin/homedir-setup
+    - name: Run bin/homedir-setup
+    - shell: bin/homedir-setup
       args:
         chdir: "~"
       register: homedir_setup

mercurial