websoft9/apps/roles/os/tasks/main.yml

23 lines
712 B
YAML
Raw Normal View History

2022-11-16 09:02:29 +08:00
- name: Select desktop at pre.yml
include: "pre.yml"
2022-11-16 08:34:24 +08:00
- name: Install Desktop on {{ansible_os_family}}
include: "{{ansible_os_family}}.yml"
- name: Disable firewalld(some cloud has no firewalld)
shell: |
systemctl stop firewalld
systemctl disable firewalld
ignore_errors: true
- name: Install Desktop and VNC
include: desktop.yml
when: os_desktop is defined and os_desktop is not none and os_desktop !="" and (os_image =="" or os_image is undefined)
- name: Make a private image with some cloud platform
include: image.yml
when: os_cloudplatform is defined and os_cloudplatform is not none and os_cloudplatform !=""
- name: Check chrony status
shell: systemctl restart chronyd