Giter Site home page Giter Site logo

jemalcloud / ansible-role-wordpress Goto Github PK

View Code? Open in Web Editor NEW

This project forked from makarenalabs/ansible-role-wordpress

0.0 0.0 0.0 52 KB

Ansible Role WordPress - Role for Ansible in Ansible Galaxy to install WordPress with a webserver (Nginx or Apache2)

License: MIT License

Python 12.19% HTML 87.81%

ansible-role-wordpress's Introduction

Ansible Role: WordPress

Build Status License Ansible Version Ansible Role Ansible Quality Ansible Downloads

Ansible role that installs and configures WordPress with Nginx or Apache2.

Features include:

Installation

Using ansible-galaxy:

$ ansible-galaxy install makarenalabs.wordpress

Using arm (Ansible Role Manager):

$ arm install makarenalabs.wordpress

Using git:

$ git clone https://github.com/MakarenaLabs/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: 5.0.3
wp_install_dir: '/var/www/html'
wp_db_name: "{{ wp_mysql_db }}"
wp_db_user: "{{ wp_mysql_user }}"
wp_db_password: "{{ wp_mysql_password }}"
wp_db_host: 'localhost'
wp_db_charset: 'utf8'
wp_db_collate: ''
wp_table_prefix: 'wp_'
wp_debug: false
wp_admin_email: '[email protected]'
wp_webserver: nginx
site_name: "{{ wp_sitename }}"
  • wp_mysql_db
  • wp_mysql_user
  • wp_mysql_password
  • wp_sitename

These variables are required!

Default webserver selected is nginx. If you want to use apache2 you have to set wp_webserver variable as follow:

wp_webserver: apache

Example playbook

---
- hosts: all
  vars:
    wp_version: 5.0.3
    wp_mysql_db: 'database_name_here'
    wp_mysql_user: 'username_here'
    wp_mysql_password: 'password_here'
    wp_webserver: nginx
    wp_sitename: example.com
    wp_admin_email: '[email protected]'
    wp_install_dir: "/var/www/{{ wp_sitename }}"
  roles:
    - makarenalabs.wordpress

Testing

$ git clone https://github.com/MakarenaLabs/ansible-role-wordpress.git
$ cd ansible-role-wordpress
$ vagrant up

License

Licensed under the MIT License. See the LICENSE file for details.

Copyright © 2019 MakarenaLabs

ansible-role-wordpress's People

Contributors

matteocastagnaro avatar dpendolino avatar colorchestra avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.