mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
Move 19 roles into roles/0-DEPRECATED-ROLES
This commit is contained in:
parent
0e39c42bbd
commit
2218d2334b
124 changed files with 5 additions and 1 deletions
52
roles/0-DEPRECATED-ROLES/teamviewer/tasks/install.yml
Normal file
52
roles/0-DEPRECATED-ROLES/teamviewer/tasks/install.yml
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
# we need to install X11 and the Xfce display manager
|
||||
- name: Install Xfce group of packages
|
||||
shell: "yum groupinstall -y xfce"
|
||||
when: xo_model == "none" and internet_available and ansible_distribution_version <= "20"
|
||||
#tags: download
|
||||
|
||||
- name: Install X11 group of packages
|
||||
shell: "yum groupinstall -y 'X Window system'"
|
||||
when: xo_model == "none" and internet_available and ansible_distribution_version <= "20"
|
||||
#tags: download
|
||||
|
||||
- name: Install Xfce group of packages
|
||||
shell: yum groupinstall -y "Xfce Desktop" --exclude fedora-release\*
|
||||
when: xo_model == "none" and internet_available and ansible_distribution_version >= "21"
|
||||
#tags: download
|
||||
|
||||
- name: Install X Windows on CentOS
|
||||
shell: yum groupinstall -y "Server with GUI"
|
||||
when: internet_available and ansible_distribution == "CentOS"
|
||||
#tags: download
|
||||
|
||||
- name: Download TeamViewer software
|
||||
get_url:
|
||||
url: "{{ teamviewer_url }}/{{ teamviewer_rpm_file }}"
|
||||
dest: "{{ yum_packages_dir }}/{{ teamviewer_rpm_file }}"
|
||||
timeout: "{{ download_timeout }}"
|
||||
when: internet_available | bool
|
||||
#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 }}"
|
||||
when: teamviewer_install and internet_available
|
||||
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"
|
||||
|
||||
- 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'
|
||||
25
roles/0-DEPRECATED-ROLES/teamviewer/tasks/main.yml
Normal file
25
roles/0-DEPRECATED-ROLES/teamviewer/tasks/main.yml
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
- name: Teamviewer exclude ARM and debian family
|
||||
set_fact:
|
||||
teamviewer_install: False
|
||||
teamviewer_enabled: "unavailable"
|
||||
when: ansible_architecture == "armv7l" or not is_redhat
|
||||
|
||||
- name: Install Teamviewer if intel
|
||||
include_tasks: install.yml
|
||||
when: teamviewer_install | bool
|
||||
|
||||
- name: Add 'teamviewer' variable values to {{ iiab_ini_file }}
|
||||
ini_file:
|
||||
path: "{{ iiab_ini_file }}"
|
||||
section: teamviewer
|
||||
option: "{{ item.option }}"
|
||||
value: "{{ item.value | string }}"
|
||||
with_items:
|
||||
- option: name
|
||||
value: teamviewer
|
||||
- option: description
|
||||
value: '"TeamViewer - the All-In-One Software for Remote Support and Online Meetings"'
|
||||
- option: teamviewer_install
|
||||
value: "{{ teamviewer_install }}"
|
||||
- option: teamviewer_enabled
|
||||
value: "{{ teamviewer_enabled }}"
|
||||
Loading…
Add table
Add a link
Reference in a new issue