Skip to content

Ansible playbook to update wordpress (major, themes and plugins)

Notifications You must be signed in to change notification settings

thetorminal/ansible-wordpress-updates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

ansible-wordpress-updates

Ansible playbook to update wordpress (major, themes and plugins).

Description

This playbook allows you to update multiple wordpress installations - it automatically scans for all wordpress installations at /var/www.
Befor the update, it will write a backup of the Database to /var/www/update-backups.
For each step (major, plugin and theme updates) it will print the available updates and ask you, if you really want to run the update.
WP-CLI is used to run the updates.

Example:
ansible-wordpress

Tested with:

  • Debian 12 Server
  • various Wordpress installations

Getting Started

Dependencies

Installing

Wordpress-Hosts:

  • Install WP-CLI: (Installation Guide from WP_CLI):
    curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
    php wp-cli.phar --info
    chmod +x wp-cli.phar
    sudo mv wp-cli.phar /usr/local/bin/wp
    Test, if it was successfull:
    wp --info

Ansible server:

  • add the role wordpress-updates.yml to your ansible-directory.
  • add the server(s) with the wordpress installation(s) in a ansible host-group named [webserver]
  • run the playbook

Version History

  • 1.0
    • Initial Release

Acknowledgments

About

Ansible playbook to update wordpress (major, themes and plugins)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published