diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2018-07-05 17:54:46 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2018-07-05 17:54:46 +0200 |
commit | ae011f18e8693037da2ccdfb71d5e3c44bc3fbdf (patch) | |
tree | 61e9a852b4827252c6328d0bd7e531a75f9b9435 /tasks | |
download | itm-ae011f18e8693037da2ccdfb71d5e3c44bc3fbdf.tar.gz itm-ae011f18e8693037da2ccdfb71d5e3c44bc3fbdf.tar.bz2 itm-ae011f18e8693037da2ccdfb71d5e3c44bc3fbdf.tar.xz itm-ae011f18e8693037da2ccdfb71d5e3c44bc3fbdf.zip |
Squashed 'roles/desktop/' content from commit c2182ac
git-subtree-dir: roles/desktop
git-subtree-split: c2182aceefe0e1a5d9abc50be59c596def2fa5d2
Diffstat (limited to 'tasks')
-rw-r--r-- | tasks/Debian.yml | 7 | ||||
-rw-r--r-- | tasks/RedHat.yml | 29 | ||||
-rw-r--r-- | tasks/main.yml | 5 |
3 files changed, 41 insertions, 0 deletions
diff --git a/tasks/Debian.yml b/tasks/Debian.yml new file mode 100644 index 0000000..2a6bc5c --- /dev/null +++ b/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/tasks/RedHat.yml b/tasks/RedHat.yml new file mode 100644 index 0000000..eaa92ff --- /dev/null +++ b/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/tasks/main.yml b/tasks/main.yml new file mode 100644 index 0000000..fca07c5 --- /dev/null +++ b/tasks/main.yml @@ -0,0 +1,5 @@ +--- +- include: Debian.yml + when: ansible_os_family == 'Debian' +- include: RedHat.yml + when: ansible_os_family == 'RedHat' |