On 02. mars 2017 08:47, [email protected] wrote:
Hello, I am trying to deploying wordpress using Ansible for first time. I
installed LAMP on my remote server using Ansible but there was a syntax
error while I was trying to install wordpress. it shows--
The error appears to have been in
'/home/nxadmin/wordpress-ansible/roles/wordpress/tasks/main.yml': line 2,
column 36, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
---
- name: Download WordPress get_url:
^ here
My script for deploying Word Press in roles/wordpress/tasks/main.yml are-
---
- name: Download WordPress get_url:
url=https://wordpress.org/latest.tar.gz
dest=/tmp/wordpress.tar.gz
validate_certs=no
The module name, get_url, must be on the next line, and not on the same
line as - name:.
- name: Download WordPress
get_url:
url=https://wordpress.org/latest.tar.gz
dest=/tmp/wordpress.tar.gz
validate_certs=no
- name: Extract WordPress unarchive= src=/tmp/wordpress.tar.gz
dest=/var/www/ copy=no
sudo: yes
The same goes for this one, unarchive: must be on the next line.
And you need to use a colon and not a equal sign after the module name.
--
Kai Stian Olstad
--
You received this message because you are subscribed to the Google Groups "Ansible
Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/27d93f7e-89f7-d90e-659a-ea21ed0bb207%40olstad.com.
For more options, visit https://groups.google.com/d/optout.