2017-12-08 06:47:49 +00:00
|
|
|
# we need to install X11 and the Xfce display manager
|
|
|
|
- name: Install Xfce group of packages
|
2017-05-27 18:09:50 +00:00
|
|
|
shell: "yum groupinstall -y xfce"
|
2017-12-08 06:37:27 +00:00
|
|
|
when: xo_model == "none" and internet_available and ansible_distribution_version <= "20"
|
2020-01-14 01:41:03 +00:00
|
|
|
#tags: download
|
2017-05-27 18:09:50 +00:00
|
|
|
|
|
|
|
- name: Install X11 group of packages
|
|
|
|
shell: "yum groupinstall -y 'X Window system'"
|
2017-12-08 06:37:27 +00:00
|
|
|
when: xo_model == "none" and internet_available and ansible_distribution_version <= "20"
|
2020-01-14 01:41:03 +00:00
|
|
|
#tags: download
|
2017-05-27 18:09:50 +00:00
|
|
|
|
2017-12-08 06:47:49 +00:00
|
|
|
- name: Install Xfce group of packages
|
2017-05-27 18:09:50 +00:00
|
|
|
shell: yum groupinstall -y "Xfce Desktop" --exclude fedora-release\*
|
2017-12-08 06:37:27 +00:00
|
|
|
when: xo_model == "none" and internet_available and ansible_distribution_version >= "21"
|
2020-01-14 01:41:03 +00:00
|
|
|
#tags: download
|
2017-05-27 18:09:50 +00:00
|
|
|
|
|
|
|
- name: Install X Windows on CentOS
|
2017-10-19 06:33:02 +00:00
|
|
|
shell: yum groupinstall -y "Server with GUI"
|
2017-12-08 06:37:27 +00:00
|
|
|
when: internet_available and ansible_distribution == "CentOS"
|
2020-01-14 01:41:03 +00:00
|
|
|
#tags: download
|
2017-05-27 18:09:50 +00:00
|
|
|
|
2017-12-08 06:47:49 +00:00
|
|
|
- name: Download TeamViewer software
|
2017-12-08 06:37:27 +00:00
|
|
|
get_url:
|
|
|
|
url: "{{ teamviewer_url }}/{{ teamviewer_rpm_file }}"
|
|
|
|
dest: "{{ yum_packages_dir }}/{{ teamviewer_rpm_file }}"
|
|
|
|
timeout: "{{ download_timeout }}"
|
2019-05-24 22:33:10 +00:00
|
|
|
when: internet_available | bool
|
2020-01-14 01:41:03 +00:00
|
|
|
#tags: download
|
2017-05-27 18:09:50 +00:00
|
|
|
|
|
|
|
# F22 has issues with yum localinstall exclude for now
|
2017-12-08 06:47:49 +00:00
|
|
|
- name: Do the install of TeamViewer, pulling in any required dependencies
|
2017-05-27 18:09:50 +00:00
|
|
|
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"
|
|
|
|
|
2017-12-08 06:47:49 +00:00
|
|
|
- name: Making local copy available
|
2017-05-27 18:09:50 +00:00
|
|
|
shell: createrepo {{ yum_packages_dir }}
|
|
|
|
when: teamviewer_install and xo_model == "none" and ansible_distribution_version >= "22"
|
|
|
|
|
2017-12-08 06:47:49 +00:00
|
|
|
- name: Using local copy
|
2017-12-08 06:37:27 +00:00
|
|
|
package:
|
|
|
|
name: "{{ item }}"
|
|
|
|
state: present
|
2017-05-27 18:09:50 +00:00
|
|
|
with_items:
|
2017-12-08 06:37:27 +00:00
|
|
|
- teamviewer*
|
2017-05-27 18:09:50 +00:00
|
|
|
when: teamviewer_install and xo_model == "none" and ansible_distribution_version >= "22"
|
2020-01-12 22:06:24 +00:00
|
|
|
|
2020-01-12 23:15:33 +00:00
|
|
|
- name: "Add 'teamviewer_installed: True' to {{ iiab_state_file }}"
|
2020-01-12 22:06:24 +00:00
|
|
|
lineinfile:
|
2020-01-12 23:15:33 +00:00
|
|
|
dest: "{{ iiab_state_file }}" # /etc/iiab/iiab_state.yml
|
2020-01-12 22:06:24 +00:00
|
|
|
regexp: '^teamviewer_installed'
|
|
|
|
line: 'teamviewer_installed: True'
|