Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
123 lines (121 sloc) 3.06 KB
#######################
# apnscp Bootstrapper #
#######################
#
# A utility for apnscp to provision a CentOS/RHEL 7.4+ platform
# for use with apnscp
#
# Part of apnscp core playbooks
# https://github.com/apisnetworks/apnscp-playbooks
#
---
- hosts: localhost
become: yes
connection: local
gather_facts: yes
vars:
apnscp_user_defaults: /root/apnscp-vars.yml
vars_files:
- 'apnscp-vars.yml'
- 'roles/common/vars/apnscp-internals.yml'
- ['{{ apnscp_user_defaults }}', '/dev/null']
- ['{{ apnscp_last_run_vars }}', '/dev/null']
roles:
# Hook: before running playbooks
- common/acquire-lock
- custom/preflight
- check-requirements
- common/update-config
- packages/configure-rhel
- filesystem/make-mounts
- system/selinux
- epel
- systemd/mask-services
- packages/install
- apnscp/testing
- pgsql/install
- mysql/install
- system/rsyslog
- vsftpd/configure
- browscap
- php/install
- php/install-pecl-module
- php/create-configuration
- java/tomcat
- apnscp/install-services
- apnscp/bootstrap
#- apache/fcgid
- apnscp/build-php
- apnscp/install-extensions
- apnscp/install-vendor-library
- apnscp/initialize-db
# Checkpoint: admin should work fine at this point
- apnscp/create-admin
- apnscp/assert-admin-works
# Hook: apnscp is minimally viable
- custom/apnscp-bootstrapped
# Onto provisioning a test account
- network/hostname
- apache/configure
- apache/modpagespeed
- apnscp/link-bins
- apnscp/initialize-filesystem-template
- mail/configure-dovecot
- mail/configure-postfix
- mail/configure-courier-authlib
- apnscp/service-template
- apnscp/php-filesystem-template
- apnscp/bandwidth-log
- apnscp/admin-helper
- apnscp/dev
- system/nscd
- system/nss
- system/pam
- system/limits
- system/cgroup
- system/sysctl
- system/tuned
- system/sshd
- network/setup-firewall
- fail2ban/whitelist-self
- fail2ban/configure-jails
- mail/maildir
- mail/spamassassin
- mail/rspamd
- apnscp/register-ssl
- network/optimizations
# Odds and ends
- apnscp/crons
- system/yum
- mysql/phpmyadmin
- pgsql/phppgadmin
- mail/webmail-squirrelmail
- mail/webmail-roundcube
- mail/webmail-horde
- software/nvm
- software/pyenv
- software/rbenv
- software/goenv
- software/passenger
- software/etckeeper
- software/tmpfiles
- software/watchdog
- system/logs
- clamav/setup
- apache/modsecurity
- system/misc-logrotate
- software/argos
# Hook: before creating account (AddDomain)
# Perform additional unit tests
- custom/apnscp-validate-account
# Last checkpoint, validate a mock account
- apnscp/assert-account-works
- apnscp/notify-installed
####################################
# Add post-provisioning roles here #
####################################
- custom/installed
#
# Thanks for playing!
#
# (c) 2018 Apis Networks