Our great sponsors
-
ansible-examples
A few starter examples of ansible playbooks, to show features and how they work together. See http://galaxy.ansible.com for example roles from the Ansible community for deploying many popular applications.
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
- name: Drupal git project test install become: yes hosts: all tasks: - name: Ensure directory exists file: group: root owner: root path: "{{ service_directory.drupal_directory }}" state: directory - name: Clone the sample project become: yes ansible.builtin.git: repo: https://github.com/geerlingguy/drupal-container.git dest: " {{ service_directory.drupal_directory }} " clone: yes recursive: yes
Im not sure exactly what is going on. The path var is correct since the folder is created. If i replace the git repo with the ansible example one ( https://github.com/ansible/ansible-examples ), then it works. If i manually clone the drupal repo ( with sudo ), it works fine. What am i missing?