This playbook also active the plugin after install it.
Copy the plugin zip file in /roles/install-wp-plugin/files/
folder.
Sample command
ansible-playbook playbooks/install-wp-plugin.yml -e "plugin_zip=intercept-carshield.zip plugin_name=intercept-cardshield" -i inventories/wordpress.ini
Copy the plugin zip file in /roles/update-wp-plugin/files/
folder.
Sample command
ansible-playbook playbooks/update-wp-plugin.yml -e "plugin_zip=intercept-cardshield.zip plugin_name=intercept-cardshield" -i inventories/wordpress.ini"
Example
ansible-playbook playbooks/lunar-artisan.yml -e "command='php artisan inspire'" -i inventories/lunar.ini
Remember change the inventory file to new server
Migrate lunar to v2 server
ansible-playbook playbooks/lunar2-migrate.yml -i lunar.ini
Setup the hub on new server, remember to point domain for each server, this can only run once.
export BUNNY_API_KEY=your_bunny_api_key
ansible-playbook playbooks/lunar2-createhub-hub.yml -i lunar.ini -e "domain=s322.tdalunar.com"