Skip to content

hxp-plus/LEMP-Ansible-CentOS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LEMP-Ansible-CentOS

Deploy Server with php h5ai cockpit and nginx with https Automatically

Requirements

  • CentOS 8.x

with_ssl version

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

without_ssl (Will not be updated)

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

TODO

  • Use git to install acme.sh in advanced mode and add email parameter.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages