aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Isom <kyle@imap.cc>2017-09-11 18:26:41 -0700
committerKyle Isom <kyle@imap.cc>2017-09-11 18:26:41 -0700
commit5e51847304cef54edd10ce3408470e89c040ea01 (patch)
tree3612f615386c46074a894c252782f072de1f42b5
parentdfc46208c33219ffcaebf3779405d8e3b0c69d26 (diff)
downloadansible-5e51847304cef54edd10ce3408470e89c040ea01.tar.gz
ansible-5e51847304cef54edd10ce3408470e89c040ea01.tar.bz2
ansible-5e51847304cef54edd10ce3408470e89c040ea01.zip
Install chromium on both Debian and Ubuntu.
-rw-r--r--roles/xtools/tasks/main.yaml20
1 files changed, 19 insertions, 1 deletions
diff --git a/roles/xtools/tasks/main.yaml b/roles/xtools/tasks/main.yaml
index 33ea6b3..297f8ae 100644
--- a/roles/xtools/tasks/main.yaml
+++ b/roles/xtools/tasks/main.yaml
@@ -6,7 +6,6 @@
state: present
with_items:
- arandr
- - chromium
- emacs25-lucid
- firefox
- netsurf
@@ -16,3 +15,22 @@
- xfce4-terminal
- xterm
- zathura
+
+- name: install X utils (Debian-specific)
+ become: true
+ when: ansible_distribution == 'Debian'
+ apt:
+ name: "{{item}}"
+ state: present
+ with_items:
+ - chromium
+
+- name: install X utils (Ubuntu-specific)
+ become: true
+ when: ansible_distribution == 'Ubuntu'
+ apt:
+ name: "{{item}}"
+ state: present
+ with_items:
+ - chromium-browser
+