# HG changeset patch # User Meredith Howard # Date 1497493447 14400 # Node ID 6172fc31a08fb94988131b73d9e812174c10ce46 # Parent b5103023562e92ea8cd6859fbb4e2ddc22585b19 flatten diff --git a/group_vars/all.yml b/group_vars/all.yml --- 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" diff --git a/roles/devbox/tasks/dist-debian.yml b/roles/devbox/tasks/dist-debian.yml --- 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 diff --git a/roles/user/tasks/main.yml b/roles/user/tasks/main.yml --- 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: "~"