summaryrefslogtreecommitdiffstats
path: root/roles/desktop/tasks
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2018-07-05 17:54:46 +0200
committerSuren A. Chilingaryan <csa@suren.me>2018-07-05 17:54:46 +0200
commit650d022653e778face2bad7527a137ad9127c236 (patch)
tree6e64502e6b1843a14ee9d2d51adc856b8413bef2 /roles/desktop/tasks
parent2262fee263d21214db911c8ee7c6b218ba18f3bd (diff)
parentae011f18e8693037da2ccdfb71d5e3c44bc3fbdf (diff)
downloaditm-650d022653e778face2bad7527a137ad9127c236.tar.gz
itm-650d022653e778face2bad7527a137ad9127c236.tar.bz2
itm-650d022653e778face2bad7527a137ad9127c236.tar.xz
itm-650d022653e778face2bad7527a137ad9127c236.zip
Merge commit 'ae011f18e8693037da2ccdfb71d5e3c44bc3fbdf' as 'roles/desktop'
Diffstat (limited to 'roles/desktop/tasks')
-rw-r--r--roles/desktop/tasks/Debian.yml7
-rw-r--r--roles/desktop/tasks/RedHat.yml29
-rw-r--r--roles/desktop/tasks/main.yml5
3 files changed, 41 insertions, 0 deletions
diff --git a/roles/desktop/tasks/Debian.yml b/roles/desktop/tasks/Debian.yml
new file mode 100644
index 0000000..2a6bc5c
--- /dev/null
+++ b/roles/desktop/tasks/Debian.yml
@@ -0,0 +1,7 @@
+---
+
+- name: Install Debian Gnome desktop
+ apt: name="@^gnome-desktop-environment" state=present
+ when: debian_desktop == 'gnome'
+
+
diff --git a/roles/desktop/tasks/RedHat.yml b/roles/desktop/tasks/RedHat.yml
new file mode 100644
index 0000000..eaa92ff
--- /dev/null
+++ b/roles/desktop/tasks/RedHat.yml
@@ -0,0 +1,29 @@
+---
+
+- debug: var=redhat_desktop
+
+- name: Install RedHat Gnome desktop
+ yum: name="@^gnome-desktop-environment" state=present
+ when: redhat_desktop == 'gnome' or redhat_desktop == 'gnome_shell'
+
+- name: Install RedHat KDE desktop
+ yum: name="@^kde-desktop-environment" state=present
+ when: redhat_desktop == 'kde'
+
+- name: Install RedHat Cinnamon desktop
+ #shell: yum --enablerepo=epel -y install cinnamon* x11
+ yum: enablerepo=epel name="@^cinnamon*" state=present
+ when: redhat_desktop == 'cinnamon'
+
+- name: Install RedHat MATE desktop
+ #shell: yum --enablerepo=epel -y groupinstall mate-desktop-environment x11
+ yum: enablerepo=epel name="@^mate-desktop-environment" state=present
+ when: redhat_desktop == 'mate'
+
+- name: Install RedHat Xfce desktop
+ #shell: yum --enablerepo=epel -y groupinstall xfce-desktop x11
+ yum: enablerepo=epel name="@^xfce-desktop" state=present
+ when: redhat_desktop == 'xfce'
+
+- name: Install RedHat X11
+ yum: name="@x11" state=present
diff --git a/roles/desktop/tasks/main.yml b/roles/desktop/tasks/main.yml
new file mode 100644
index 0000000..fca07c5
--- /dev/null
+++ b/roles/desktop/tasks/main.yml
@@ -0,0 +1,5 @@
+---
+- include: Debian.yml
+ when: ansible_os_family == 'Debian'
+- include: RedHat.yml
+ when: ansible_os_family == 'RedHat'