chusiang.wordpress
Ansible Role: WordPress
[
](https://flattr.com/submit/auto?user_id=darthwade&url=https://github.com/darthwade/ansible-role-wordpress&title=Ansible Role: WordPress&language=&tags=github&category=software)
Ansible role that installs and configures WordPress.
Features include:
- Installation of any WordPress version to specified directory
- Configuration of wp-config.php
- Fetch random salts for wp-config.php (https://api.wordpress.org/secret-key/1.1/salt/)
Installation
Using ansible-galaxy:
$ ansible-galaxy install darthwade.wordpress
Using arm (Ansible Role Manager):
$ arm install darthwade.wordpress
Using git:
$ git clone https://github.com/darthwade/ansible-role-wordpress.git
Requirements & Dependencies
- Ansible 1.4 or higher
- Curl
Variables
Here is a list of all the default variables for this role, which are also available in defaults/main.yml.
wp_version: 4.0
wp_install_dir: '/var/sites/awesome_wordpress_site'
wp_db_name: 'database_name_here'
wp_db_user: 'username_here'
wp_db_password: 'password_here'
wp_db_host: 'localhost'
wp_db_charset: 'utf8'
wp_db_collate: ''
wp_table_prefix: 'wp_'
wp_debug: false
wp_fs_method: 'direct'
wp_lang: ''
Example playbook
- hosts: all
vars:
wp_version: 4.0
wp_install_dir: '/var/sites/awesome_wordpress_site'
wp_db_name: 'database_name_here'
wp_db_user: 'username_here'
wp_db_password: 'password_here'
wp_db_host: 'localhost'
roles:
- darthwade.wordpress
Testing
$ git clone https://github.com/darthwade/ansible-role-wordpress.git
$ cd ansible-role-wordpress
$ vagrant up
Contributing
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests and examples for any new or changed functionality.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request
License
Licensed under the MIT License. See the LICENSE file for details.
Copyright (c) 2014 Vadym Petrychenko
About
Deploy WordPress for Ubuntu and CentOS. (fork from https://galaxy.ansible.com/darthwade/WordPress)
Install
ansible-galaxy install chusiang.wordpressLicense
mit
Downloads
132
Owner
A system engineer, like @DevOpsTW, @ansible-tw, @vim-tw, docker and @linux-taiwan. Hope one day can build a "🦄 Unicorn company" like《The Phoenix Project》.
