GithubHelp home page GithubHelp logo

iamgini / ansible-collection-wordpress Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 1.0 77 KB

Ansible playbooks and roles for managing WordPress sites

Home Page: https://galaxy.ansible.com/iamgini/wordpress

Jinja 100.00%

ansible-collection-wordpress's Introduction

Ansible Collection - iamgini.wordpress

Collection Name: iamgini.wordpress

Install this collection:

$ ansible-galaxy collection install iamgini.wordpress

Install WordPress

Configure variables in playbooks/vars/wp_install.yaml (Encrypt the sensitive content as required)

web_projects_dir: /var/www/demosite
wordpress_site_name: demosite
wordpress_domain_name: beta.iamgini.com

wordpress_database_server: your-database-host
wordpress_database_port: 3306
wordpress_database_name: wp_demosite
wordpress_database_username: dbuser
wordpress_database_password: password

wordpress_version: 6.4
$ ansible-playbook playbooks/wordpress_install.yaml \
    -i hosts-vagrant \
    -e "wp_debug=true"

Passing variables from external file. (For example, using managed database and details are coming from ~/.config/wp-demosite.yaml)

$ ansible-playbook playbooks/wordpress_install.yaml \
    -i hosts-upcloud \
    -e @wp-demosite.yaml \
    -e "wp_debug=true"

# or customize the variables
$ ansible-playbook playbooks/wordpress_install.yaml \
    -i hosts-upcloud  \
    -e "wp_debug=true" \
    -e "wordpress_database_server=10.1.10.3" \
    -e "wordpress_domain_name=beta.iamgini.com" \
    -e "wordpress_http_method=https"

Backup WordPress

$ ansible-playbook playbooks/wordpress_backup.yaml \
    -i hosts-upcloud \
    -e @~/.config/wp-demosite.yaml

Restore WordPress

$ ansible-playbook playbooks/wordpress_restore.yaml \
    -i hosts-upcloud \
    -e @wp-demosite.yaml

ansible-collection-wordpress's People

Contributors

iamgini avatar

Watchers

 avatar

Forkers

ashokrock

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.