Skip to content

This an Ansible playbook for installing LAMP and WordPress on Ubuntu

Notifications You must be signed in to change notification settings

Pawa-IT-Solutions/Ansible-Wordpress-LAMP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Ansible Automated Deployment for Wordpress on Ubuntu 20.04 LAMP

This playbook will install a WordPress website on top of a LAMP environment (Linux, Apache, MySQL and PHP) on an Ubuntu 20.04 machine. A virtualhost will be created with the options specified in the vars/default.yml variable file.

Settings

  • php_modules: An array containing PHP extensions that should be installed to support your WordPress setup. You don't need to change this variable, but you might want to include new extensions to the list if your specific setup requires it.
  • mysql_root_password: The desired password for the root MySQL account.
  • mysql_db: The name of the MySQL database that should be created for WordPress.
  • mysql_user: The name of the MySQL user that should be created for WordPress.
  • mysql_password: The password for the new MySQL user.
  • http_host: Your domain name.
  • http_conf: The name of the configuration file that will be created within Apache.
  • http_port: HTTP port for this virtual host, where 80 is the default.

Running this Playbook

Quickstart guide for those already familiar with Ansible:

1. Obtain the playbook

git clone /~https://github.com/Pawa-IT-Solutions/Ansible-Wordpress-LAMP.git
cd  Ansible-Wordpress-LAMP

2. Customize Options

You can change MySQL and HTTP settings by editing vars/default.yml file. Please edit the file in order to meet the standard of and secure your workload.

-------------------------------
#System Settings
php_modules: [ 'php-curl', 'php-gd', 'php-mbstring', 'php-xml', 'php-xmlrpc', 'php-soap', 'php-intl', 'php-zip' ]

#MySQL Settings
mysql_root_password: "mysql_root_password"
mysql_db: "wordpress"
mysql_user: "sammy"
mysql_password: "password"

#HTTP Settings
http_host: "your_domain"
http_conf: "your_domain.conf"
http_port: "80"

3. Run the Playbook

To deploy the wordpress site run the following command:

ansible-playbook playbook.yml  -u [remote_user] 

For more information on how to run this Ansible setup, please check this guide: How to Use Ansible to Install and Set Up WordPress with LAMP on Ubuntu 20.04.

About

This an Ansible playbook for installing LAMP and WordPress on Ubuntu

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages