forked from shumbashi/cpanel-ansible
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.yml
29 lines (27 loc) · 1.79 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
---
- name: cPanel Server Setup Playbook
hosts: all
become: true
pre_tasks:
- name: Sanity Check | Fail if the Operating System is not supported
fail:
msg: "cPanel installation is supported only on CentOS 6/7"
when: ansible_os_family != 'RedHat'
roles:
- { role: install-cpanel, tags: [cpanel] }
- { role: install-cloudlinux, tags: [cloudlinux], when: install_cloudlinux == 'true' }
- { role: install-cloudlinux-cagefs, tags: [cloudlinux], when: install_cloudlinux == 'true' and install_cloudlinux_cagefs == 'true' }
- { role: install-cloudlinux-alt-packages, tags: [cloudlinux], when: install_cloudlinux == 'true' and install_cloudlinux_alt == 'true' }
- { role: install-kernelcare, tags: [kernelcare], when: install_kernelcare == 'true' }
- { role: install-configserver-csf, tags: [csf], when: install_csf == 'true' }
- { role: install-configserver-cmc, tags: [cmc], when: install_cmc == 'true' }
- { role: install-configserver-cmm, tags: [cmm], when: install_cmm == 'true' }
- { role: install-configserver-cmq, tags: [cmq], when: install_cmq == 'true' }
- { role: install-configserver-cse, tags: [cse], when: install_cse == 'true' }
- { role: install-configserver-cxs, tags: [cxs], when: install_cxs == 'true' }
- { role: install-softaculous, tags: [softaculous], when: install_softaculous == 'true' }
- { role: install-cloudflare, tags: [cloudflare], when: install_cloudflare == 'true' }
- { role: install-letsencrypt, tags: [letsencrypt], when: install_letsencrypt == 'true' }
- { role: install-spamexperts, tags: [spamexperts], when: install_spamexperts == 'true' }
- { role: install-imunify, tags: [imunify], when: install_imunify == 'true' }
- { role: install-sitepad, tags: [sitepad], when: install_sitepad == 'true' }