I have this in my drupal roles to download drupal git
---
- name: Install git
yum: name=git state=latest
- name: Clone Drupal
git: repo=http://git.drupal.org/project/drupal.git
dest=/var/www/html/drupal/
update=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: Create services.yml
command: cp /var/www/html/drupal/sites/default/default.services.yml /var/www/html/drupal/sites/default/services.yml
- name: Update permissions of settings.php
file: path=/var/www/html/drupal/sites/default/settings.php mode=777
- name: Update permissions of services.yml
file: path=/var/www/html/drupal/sites/default/services.yml mode=777
- name: Update permissions of files directory
file: >
path=/var/www/html/drupal/sites/default/files
mode=777
state=directory
recurse=yes
and when i run ansible here is the error i get
TASK: [drupal | Clone Drupal] *************************************************
changed: [ansiblev1]
TASK: [drupal | Create settings.php] ******************************************
failed: [ansiblev1] => {"changed": true, "cmd": ["cp", "/var/www/html/drupal/sites/default/default.settings.php", "/var/www/html/drupal/sites/default/settings.php"], "delta": "0:00:00.004656", "end": "2015-02-04 23:27:12.815990", "rc": 1, "start": "2015-02-04 23:27:12.811334", "warnings": []}
stderr: cp: cannot stat '/var/www/html/drupal/sites/default/default.settings.php': No such file or directory
FATAL: all hosts have already failed -- aborting
PLAY RECAP ********************************************************************
to retry, use: --limit @/home/bbusari/site.retry
ansiblev1 : ok=22 changed=1 unreachable=0 failed=1
when i checked the server to see if drupal git was donwloaded, there was nothing there.
How do i use the git module to download on centos 7? Thanks