mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
648 B
YAML
28 lines
648 B
YAML
8 years ago
|
---
|
||
|
|
||
|
- name: Clean up the directories
|
||
|
file:
|
||
|
state: absent
|
||
|
path: "{{ item }}"
|
||
|
with_items:
|
||
|
- "{{ repo_dir }}/origin"
|
||
|
- "{{ checkout_dir }}"
|
||
|
|
||
|
- name: Create a directory
|
||
|
file:
|
||
|
name: "{{ repo_dir }}/origin"
|
||
|
state: directory
|
||
|
|
||
|
- name: Initialise the repo with a file named origin,see github.com/ansible/ansible/pull/22502
|
||
|
shell: git init; echo "PR 22502" > origin; git add origin; git commit -m "PR 22502"
|
||
|
args:
|
||
|
chdir: "{{ repo_dir }}/origin"
|
||
|
|
||
|
- name: Clone a git repo with file named origin
|
||
|
git:
|
||
|
repo: "{{ repo_dir }}/origin"
|
||
|
dest: "{{ checkout_dir }}"
|
||
|
remote: origin
|
||
|
update: no
|
||
|
register: status
|