Performs misc WP-CLI setup tasks for multiple installations on a host.
- Creates aliases on host and remote machines.
WP-CLI installed on remote machine.
wp_aliases_remote: True wp_aliases_local: True
wp_alias_prefix: "{{ inventory_hostname }}"
wp_sql_dump_dir: "/tmp"
None.
- hosts: servers
roles:
- { role: kentr.setup-wp-cli, installations: list_of_installations }
BSD 3-Clause
Kent Richards, https://kentrichards.net