1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 19:52:06 +00:00
iiab/roles/teamviewer/tasks/install.yml

53 lines
2 KiB
YAML
Raw Normal View History

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"
#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"
#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"
#tags: download
2017-05-27 18:09:50 +00:00
- name: Install X Windows on CentOS
shell: yum groupinstall -y "Server with GUI"
2017-12-08 06:37:27 +00:00
when: internet_available and ansible_distribution == "CentOS"
#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 }}"
when: internet_available | bool
#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 }}"
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"
- name: "Add 'teamviewer_installed: True' to {{ iiab_state_file }}"
lineinfile:
dest: "{{ iiab_state_file }}" # /etc/iiab/iiab_state.yml
regexp: '^teamviewer_installed'
line: 'teamviewer_installed: True'