-
Chris Hines authoredChris Hines authored
main.yml 745 B
---
- include_vars: "{{ ansible_distribution }}_{{ ansible_architecture }}.yml"
- include_vars: "CentOS_7_x86_64.yml"
when: ansible_distribution == "CentOS" and ansible_distribution_major_version == "7"
- name: install system packages apt
apt: name={{ system_packages }} state=present update_cache=true force=yes
become: true
register: apt_status
until: apt_status is success
delay: 6
retries: 10
when: ansible_os_family == 'Debian'
- name: force the use of KDE desktop
template: src=vncserver.centos dest=/bin/vncserver
become: true
when: ansible_os_family == 'RedHat'
- name: force the use of mate desktop
template: src=vncserver.ubuntu dest=/usr/bin/vncserver
become: true
when: ansible_os_family == 'Debian'