ayltai.wp_cli

wp-cli role for Ansible

GitHub workflow status Ansible quality score Ansible role Maintenance Release License

Install or update wp-cli on RHEL- and Debian-based systems

Buy me a coffee

Quick start

Installation

ansible-galaxy install ayltai.wp-cli

Dependency

This role requires PHP.

Usage

---
- hosts: all
  roles:
    - ayltai.wp-cli

Variables

Name Default Description
wp_cli_path /usr/bin/wp The path where wp-cli should be installed to.
wp_cli_url https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar The URL where wp-cli should be downloaded from.

Development

This project uses Docker to create an unified environment for development.

Install Docker

Download and install Docker from here.

Start the development environment in a Docker container

./dev.sh

Now you have a shell running on a system with all the necessary tools installed.

Install dependencies

In the Docker container, run:

python3 -m pip install -r requirements.txt
ansible-galaxy install -r requirements.yml

Unit testing

In the Docker container, run:

molecule test

License

MIT

References

About

Install and configure WP CLI on RHEL- and Debian-based systems

Install
ansible-galaxy install ayltai.wp_cli
GitHub repository
License
mit
Downloads
357
Owner
Principal Software Architect