I'm trying to get WordPress downloaded and installed via Ansible and I can't seem to figure out what I'm doing wrong here. First I download via the get_url module then I attempt to use the unarchive module to move the source to my synced folder.roles/wordpress/defaultwp_debug: truewp_version: 4.2.1auto_up_disable: falsecore_update_level: falseroles/wordpress/tasks/main.yml- name: Download WordPress  get_url: url=http://wordpress.org/wordpress-{{ wp_version }}.tar.gz dest=/var/www/wordpress-{{ wp_version }}.tar.gz- name: Extract archive  unarchive: src=/var/www/wordpress-{{wp_version}}.tar.gz dest={{site.www_root}}Error MessageThen when I ssh into the vagrant box...Specs: Ubuntu 14.04, Ansible 1.9.1, Vagrant 1.7.2, OSX YosemiteNotes: site.www_root is set to /var/www/wordpress
Unarchiving a downloaded tarball with Ansible
ubuntu;tar;ansible
It seems like copy parameter for unarchive module is what tripped you up. http://docs.ansible.com/unarchive_module.html states:-If copy=yes (default), local path to archive file to copy to the target server; can be absolute or relative.-If copy=no, path on the target server to existing archive file to unpack.In essence get_url downloaded your file to your remote server, but unarchive tried to extract it from your local machine.Your 2nd task should be updated as such:- name: Extract archive  unarchive: src=/var/www/wordpress-{{wp_version}}.tar.gz             dest={{site.www_root}}             copy=no