- CentOS 8.x
include
- nginx
- acme.sh
- cockpit
- php
- h5ai
- mariadb
will install the stuffs above and issue cert according to your domain with acme.sh, install cert to nginx automatically, and configure cockpit reverse proxy.
will install mariadb and create a non-root user to access it.
Visit https://yourdomain.com/panel/ to enter cockpit panel, a user admin with password admin will be created without root access. You may change it in group_vars/webservers
Edit hosts
and variables in group_vars/webservers
in hosts
Change the ip to your server ip
in group_vars/webservers
Change domain_name
to your server's domain name.
Change cockpit_username
and cockpit_pwd
Change mariadb_username
and mariadb_pwd
Then, fire:
cd with_ssl
ansible-playbook site.yml -i hosts
include
- nginx
- cockpit
- php
- mariadb
will install the stuffs above and configure cockpit reverse proxy.
will install mariadb and create a non-root user to access it.
Visit https://yourip/panel/ to enter cockpit panel, a user admin with password admin will be created without root access. You may change it in group_vars/webservers
Edit hosts
and variables in group_vars/webservers
in hosts
Change the ip to your server ip
in group_vars/webservers
Change domain_name
to your server's ip.
Change cockpit_username
and cockpit_pwd
Change mariadb_username
and mariadb_pwd
You may generate password with
</dev/urandom tr -dc 'A-Za-z0-9@#$%&_+=' | head -c16;echo
Then, fire:
cd without_ssl
ansible-playbook site.yml -i hosts
- Use git to install acme.sh in advanced mode and add email parameter.