srv-stage/main.yml
2025-01-19 20:23:14 +01:00

99 lines
2.3 KiB
YAML

---
- hosts: localhost
handlers:
- name: restart_httpd
systemd_service: name=httpd state=restarted
- name: restart_postfix
systemd_service: name=postfix state=restarted
- name: restart_php-fpm
systemd_service: name=php-fpm state=restarted
- name: restart_slapd
systemd_service: name=slapd state=restarted
- name: restart_vsftpd
systemd_service: name=vsftpd state=restarted
- name: restart_NetworkManager
systemd_service: name=NetworkManager state=restarted
- name: restart_named_chroot
systemd_service: name=Nnamed-chroot state=restarted
tasks:
- name: include defaults/main.yml file vars
include_vars: defaults/main.yml
- name: include assert-vars file tasks
include_tasks: assert-vars.yml
- name: include miscs file tasks
include_tasks: misc.yml
- name: include dns file tasks
include_tasks: dns.yml
- name: include proxy file tasks
include_tasks: proxy.yml
- name: include user file tasks
include_tasks: user.yml
- name: include certificate file tasks
include_tasks: certificate.yml
- name: include apache file tasks
include_tasks: apache.yml
- name: include php82 file tasks
include_tasks: php82.yml
- name: include mariadb file tasks
include_tasks: mariadb.yml
- name: include phpmyadmin file tasks
include_tasks: phpmyadmin.yml
- name: include ldap file tasks
include_tasks: ldap.yml
- name: include lam file tasks
include_tasks: lam.yml
- name: include postfix file tasks
include_tasks: postfix.yml
- name: include saslauthd file tasks
include_tasks: saslauthd.yml
- name: include cyrus file tasks
include_tasks: cyrus.yml
- name: include webmail file tasks
include_tasks: webmail.yml
#- name: include apache file tasks
# include_tasks: pure-ftpd.yml
- name: include vsftpd file tasks
include_tasks: vsftpd.yml
- name: include nagios file tasks
include_tasks: nagios.yml
- name: include docker file tasks
include_tasks: docker.yml
- name: include build-image file tasks
include_tasks: build-image.yml
when: arch == "arm64"
#
- name: include chat-box file tasks
include_tasks: chat-box.yml
- name: include restart service
include_tasks: restart-services.yml