Convert Bash script to Ansible Playbook

A simple bash script to provision a virtual host for a wordpress site, called within a Vagrant build. #!/bin/bash # Install 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 wp –info # Setup Apache to properly rewrite the WordPress www subdomain sudo cp /var/www/myapp/provisioning/myapp.conf.vagrant Read more…