blob: 2640b628539ce6f46502ef76f6984393da4b73f8 [file] [log] [blame]
---
- hosts: localhost
connection: local
vars_files:
- workspace-github-repos.yml
- workspace-folders.yml
tasks:
- name: Create ansible configuration folders
file:
path: '{{ item }}'
state: directory
with_items: '{{ configuration_folders }}'
- name: Git checkout of sample configurations
become: false
ignore_errors: yes
git:
repo: '{{ host_repo }}/apigee-opdk-ansible-configuration-samples.git'
dest: "{{ ansible_config }}/configurations"
accept_hostkey: yes
- name: Git checkout of sample inventories
become: false
ignore_errors: yes
git:
repo: '{{ host_repo }}/apigee-opdk-ansible-inventory-samples.git'
dest: "{{ ansible_config }}/inventory"
accept_hostkey: yes
- name: Git checkout of sample playbooks
become: false
ignore_errors: yes
git:
repo: '{{ host_repo }}/{{ item.repo_name }}.git'
dest: "{{ item.workspace }}/{{ item.repo_name }}"
accept_hostkey: yes
with_items: "{{ repo_names }}"
- name: Add empty credentials.yml file to .apigee
copy:
src: resources/credentials.yml
dest: '{{ apigee_config }}/credentials.yml'
force: no