2017-05-27 18:09:50 +00:00
|
|
|
# we need to install X11 and the xfce display manager
|
|
|
|
- name: Install xfce group of packages
|
|
|
|
shell: "yum groupinstall -y xfce"
|
2017-06-29 17:48:41 +00:00
|
|
|
when: xo_model == "none" and internet_available and ansible_distribution_version <= "20"
|
2017-05-27 18:09:50 +00:00
|
|
|
tags:
|
|
|
|
- download
|
|
|
|
|
|
|
|
- name: Install X11 group of packages
|
|
|
|
shell: "yum groupinstall -y 'X Window system'"
|
2017-06-29 17:48:41 +00:00
|
|
|
when: xo_model == "none" and internet_available and ansible_distribution_version <= "20"
|
2017-05-27 18:09:50 +00:00
|
|
|
tags:
|
|
|
|
- download
|
|
|
|
|
|
|
|
- name: Install xfce group of packages
|
|
|
|
shell: yum groupinstall -y "Xfce Desktop" --exclude fedora-release\*
|
2017-06-29 17:48:41 +00:00
|
|
|
when: xo_model == "none" and internet_available and ansible_distribution_version >= "21"
|
2017-05-27 18:09:50 +00:00
|
|
|
tags:
|
|
|
|
- download
|
|
|
|
|
|
|
|
- name: Install X Windows on CentOS
|
2017-10-19 06:33:02 +00:00
|
|
|
shell: yum groupinstall -y "Server with GUI"
|
2017-06-29 17:48:41 +00:00
|
|
|
when: internet_available and ansible_distribution == "CentOS"
|
2017-05-27 18:09:50 +00:00
|
|
|
tags:
|
|
|
|
- download
|
|
|
|
|
2017-10-19 06:33:02 +00:00
|
|
|
- name: Get the teamviewer software
|
2017-05-27 18:09:50 +00:00
|
|
|
get_url: url="{{ teamviewer_url }}/{{ teamviewer_rpm_file }}" dest="{{ yum_packages_dir }}/{{ teamviewer_rpm_file }}"
|
2017-10-19 06:33:02 +00:00
|
|
|
when: internet_available
|
2017-05-27 18:09:50 +00:00
|
|
|
tags:
|
|
|
|
- download
|
|
|
|
|
|
|
|
# F22 has issues with yum localinstall exclude for now
|
|
|
|
- name: Do the install of teamviewer, pulling in any required dependencies
|
|
|
|
shell: "yum localinstall -y {{ yum_packages_dir }}/{{ teamviewer_rpm_file }}"
|
2017-10-19 06:33:02 +00:00
|
|
|
when: teamviewer_install and internet_available
|
2017-05-27 18:09:50 +00:00
|
|
|
and xo_model == "none" and ansible_distribution_version <= "21"
|
|
|
|
|
|
|
|
- name: making local copy available
|
|
|
|
shell: createrepo {{ yum_packages_dir }}
|
|
|
|
when: teamviewer_install and xo_model == "none" and ansible_distribution_version >= "22"
|
|
|
|
|
|
|
|
- name: using local copy
|
|
|
|
package: name={{ item }}
|
|
|
|
state=present
|
|
|
|
with_items:
|
|
|
|
- teamviewer*
|
|
|
|
when: teamviewer_install and xo_model == "none" and ansible_distribution_version >= "22"
|