summaryrefslogtreecommitdiffstats
path: root/roles/desktop/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'roles/desktop/tasks')
-rw-r--r--roles/desktop/tasks/Fedora.yml4
-rw-r--r--roles/desktop/tasks/main.yml12
2 files changed, 12 insertions, 4 deletions
diff --git a/roles/desktop/tasks/Fedora.yml b/roles/desktop/tasks/Fedora.yml
new file mode 100644
index 0000000..862514f
--- /dev/null
+++ b/roles/desktop/tasks/Fedora.yml
@@ -0,0 +1,4 @@
+---
+- name: Install Fedora Gnome desktop
+ package: name="@gnome" state=present
+ when: redhat_desktop == 'gnome' or redhat_desktop == 'gnome_shell'
diff --git a/roles/desktop/tasks/main.yml b/roles/desktop/tasks/main.yml
index fca07c5..ba2750a 100644
--- a/roles/desktop/tasks/main.yml
+++ b/roles/desktop/tasks/main.yml
@@ -1,5 +1,9 @@
---
-- include: Debian.yml
- when: ansible_os_family == 'Debian'
-- include: RedHat.yml
- when: ansible_os_family == 'RedHat'
+- include_tasks: Debian.yml
+ when: ansible_os_family | lower == 'debian'
+
+- include_tasks: Fedora.yml
+ when: ansible_distribution | lower == 'fedora'
+
+- include_tasks: RedHat.yml
+ when: (ansible_os_family | lower == 'redhat') and (ansible_distribution | lower != 'fedora')