flatten

Wed, 14 Jun 2017 22:24:07 -0400

author
Meredith Howard <mhoward@roomag.org>
date
Wed, 14 Jun 2017 22:24:07 -0400
changeset 57
6172fc31a08f
parent 56
b5103023562e
child 58
d03c346f71c2

flatten

group_vars/all.yml file | annotate | diff | comparison | revisions
roles/devbox/tasks/dist-debian.yml file | annotate | diff | comparison | revisions
roles/user/tasks/main.yml file | annotate | diff | comparison | revisions
--- a/group_vars/all.yml
+++ b/group_vars/all.yml
@@ -1,7 +1,6 @@
 ---
-user:
-  name:    mhoward
-  comment: Meredith Howard
+user_name:    mhoward
+user_comment: Meredith Howard
 
 gui_session: "i3"
 
--- a/roles/devbox/tasks/dist-debian.yml
+++ b/roles/devbox/tasks/dist-debian.yml
@@ -11,6 +11,7 @@
     - vim
     - silversearcher-ag
     - exuberant-ctags
+    - unattended-upgrades
   tags: packages, install
 
 - name: Install GUI packages
--- a/roles/user/tasks/main.yml
+++ b/roles/user/tasks/main.yml
@@ -2,8 +2,8 @@
 # Create/update my user, don't clobber my extra groups.
 - name: User setup
   user:
-    name: "{{user.name}}"
-    comment: "{{user.comment}}"
+    name: "{{user_name}}"
+    comment: "{{user_comment}}"
     shell: /bin/zsh
     groups: sudo
     append: true
@@ -13,14 +13,14 @@
 - name: "ssh : Pubkey for user"
   authorized_key:
     manage_dir: true
-    user: "{{user.name}}"
+    user: "{{user_name}}"
     key: "{{item}}"
   with_file:
-    - public_keys/{{user.name}}
+    - public_keys/{{user_name}}
   tags: user, ssh
 
 - name: Clone dotfiles
-  become: "{{user.name}}"
+  become: "{{user_name}}"
   shell: >
     hg clone -U {{dotfiles_default | quote}} _dotfiles_
     && mv _dotfiles_/.hg .
@@ -31,7 +31,7 @@
     creates: "~/.hg"
 
 - name: Assert hg sources
-  become: "{{user.name}}"
+  become: "{{user_name}}"
   ini_file:
     dest: "~/.hg/hgrc"
     section: paths
@@ -44,7 +44,7 @@
     - {name: 'default-push', url: "{{dotfiles_default_push}}"}
 
 - name: Update dotfiles
-  become: "{{user.name}}"
+  become: "{{user_name}}"
   command: hg pull -u
   args:
     chdir: "~"
@@ -53,7 +53,7 @@
   failed_when: update_dotfiles.rc > 1
 
 - name: Run bin/homedir-setup
-  become: "{{user.name}}"
+  become: "{{user_name}}"
   shell: bin/homedir-setup
   args:
     chdir: "~"

mercurial