merge

Sat, 22 Jun 2019 04:26:10 -0400

author
Meredith Howard <mhoward@roomag.org>
date
Sat, 22 Jun 2019 04:26:10 -0400
changeset 86
939e12400bd5
parent 81
47d7ef3be553 (diff)
parent 85
25111b904b2c (current diff)
child 87
13c6ba506f26

merge

--- a/local.yml
+++ b/local.yml
@@ -2,6 +2,8 @@
 - name: Devbox Setup
   hosts: all
   roles:
+    - role: bootstrap
+      tags: bootstrap
     - devbox
     - user
 
--- a/roles/devbox/meta/main.yml
+++ b/roles/devbox/meta/main.yml
@@ -1,5 +1,4 @@
 ---
 dependencies:
-  - bootstrap
   - repositories
   - sudo
--- a/roles/devbox/tasks/dist-debian.yml
+++ b/roles/devbox/tasks/dist-debian.yml
@@ -1,40 +1,42 @@
 ---
 
 - name: Install base packages
-  apt: name={{item}} state=installed
-  with_items:
-    - build-essential
-    - git
-    - mercurial
-    - zsh
-    - tmux
-    - vim
-    - silversearcher-ag
-    - exuberant-ctags
-    - unattended-upgrades
   tags: packages, install
+  apt:
+    state: installed
+    name:
+      - build-essential
+      - git
+      - mercurial
+      - zsh
+      - tmux
+      - vim
+      - silversearcher-ag
+      - exuberant-ctags
+      - unattended-upgrades
 
 - name: Install GUI packages
+  tags: packages, install
   when: gui_enabled
-  apt: name={{item}} state=installed
-  with_items:
-    - lightdm
-    - rxvt-unicode-256color
-    - i3
-    - xautolock
-    - fonts-dejavu-extra
-    - fonts-opensymbol
-    - scrot
-    - vim-gtk
-    - firefox-esr
-  tags: packages, install
+  apt:
+    state: installed
+    name:
+      - lightdm
+      - rxvt-unicode-256color
+      - i3
+      - xautolock
+      - fonts-dejavu-extra
+      - fonts-opensymbol
+      - scrot
+      - vim-gtk
 
 - name: Install non-gui packages
+  tags: packages, install
   when: not gui_enabled
-  apt: name={{item}} state=installed
-  with_items:
-    - vim-nox
-  tags: packages, install
+  apt:
+    state: installed
+    name:
+      - vim-nox
 
 - name: Set default X session in lightdm
   when: gui_enabled and gui_session
@@ -44,10 +46,3 @@
     option: user-session
     value: "{{gui_session}}"
     backup: true
-
-- name: Enable and start lightdm
-  when: gui_enabled
-  service:
-    name: lightdm
-    enabled: yes
-    state: started

mercurial