Please help in resolving the errors for the below playbook. There are few other playbooks and all that's for setting up Drupal.
The below playbook is part of that setup which is throwing error.
---
- name: Clone Drupal
git: >
repo=http://git.drupal.org/project/drupal.git
dest=/var/www/html/drupal/
update=no
- name: download the code from repository
get_url url:http://ftp.drupal.org/files/projects/drupal-7.37.zip dest: /tmp
- name: Create Dir
command: mkdir -p /var/www/html/
- name: Copy the code from repository
unarchive: src=/tmp/drupal-7.37.zip dest=/var/www/html/ copy=no
- name: Create settings.php
command: cp /var/www/html/drupal/sites/default/default.settings.php /var/www/html/drupal/sites/default/settings.php
- name: services.yml
template: src=services.yml.j2 dest=/var/www/html/drupal/sites/default/service.yml
- name: Update permissions of settings.php
file: path=/var/www/html/drupal/sites/default/settings.php mode=777
- name: Update permissions of service.yml
file: path=/var/www/html/drupal/sites/default/service.yml mode=777
- name: Update permissions of files directory
file: >
path=/var/www/html/drupal/sites/default/files
mode=777
state=directory
recurse=yes
The errors are as shown below:
ERROR! no action detected in task. This often indicates a misspelled module name, or incorrect module path.
The error appears to have been in '/opt/playbooks/drupal_set/roles/drupal/tasks/main.yml': line 7, column 4, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
update=no
- name: download the code from repository
^ here
Please help in correcting the playbook with any other errors if any which are not displayed yet.