https://github.com/quentg/ansible-wordpress
Install wordpress with ansible
https://github.com/quentg/ansible-wordpress
ansible ansible-playbook ansible-role wordpress
Last synced: 3 months ago
JSON representation
Install wordpress with ansible
- Host: GitHub
- URL: https://github.com/quentg/ansible-wordpress
- Owner: QuentG
- Created: 2020-05-19T11:44:12.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-19T11:44:35.000Z (about 6 years ago)
- Last Synced: 2025-05-18T19:09:03.377Z (about 1 year ago)
- Topics: ansible, ansible-playbook, ansible-role, wordpress
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ansible Wordpress
## Requirements
- [Install ansible](https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html)
- You need to have ```two server``` using ```linux on Ubuntu 18.04```.
- 1 server for your ```mysql database```
- 1 server for your ```webserver```
## Installation && Configuration
1 - ```git clone git@git.ynov-bordeaux.com:QuentG/ansible_wordpress.git```
2 - Replace with your variables in file ```ansible.cfg``` and files in ```group_vars/```
3 - Launch the playbook : ```ansible-playbook site.yml```
⚠️ The command fail in ```this first launch```... (error python mysql package missing). But if you re-launch the playbook does it work's ! ⚠️
4 - When the ansible task is finished, go to your web host ```http://my-web-ip``` 🔥
PS : To access to the back office the default password is ```admin```.
## Process
- First of all the ```role mysql``` execute.
- This role install ```mysql``` on server
- Create a user
- Create a database and import the dump
- In a second time the ```role apache-php-ftp``` execute.
- This role install and configure apache with new vhost
- Install php
- Install vsftpd and configure
- To finish the ```role wordpress``` execute.
- Download a wordpress instance.
- Extract and move in in the right place ```/var/www/wordpress```
- Configure connection with database in file ```wp-config.php``` and replace it with the current in ```/var/www/wordpress/wp-config.php```
- It work's ! 🔥