Sha256: fd407a10219747b6bc7a1d48550395c844e2aa5d78d0265b6c63a1b290fe6185

Contents?: true

Size: 1.65 KB

Versions: 4

Compression:

Stored size: 1.65 KB

Contents

---
# tasks file for qb.project

# bin
# ===

- name: create /bin directory
  git_mkdir:
    path: "{{ dir }}/bin"
  when: project_bin

# dev
# ===

- name: create /dev and /dev/bin directories
  git_mkdir:
    path: "{{ dir }}/dev/bin"
  when: project_dev

# setup
# =====

- name: create /dev/setup.yml
  template:
    src: setup.yml.j2
    dest: "{{ dir }}/dev/setup.yml"
    force: false
  when: project_setup
  register: setup_yml

- command: git add dev/setup.yml
  args:
    chdir: "{{ dir }}"
  when: setup_yml.changed

- name: ignore /dev/repos in git
  lineinfile:
    line: /dev/repos
    dest: "{{ dir }}/.gitignore"
  register: ignore_dev_repos

- name: ignore /dev/ref/repos in git
  lineinfile:
    line: /dev/ref/repos
    dest: "{{ dir }}/.gitignore"
  register: ignore_dev_ref_repos

# scratch
# =======

- name: create scratch directory
  git_mkdir:
    path: "{{ dir }}/scratch"

# tmp
# ===

- name: create tmp directory
  git_mkdir:
    path: "{{ dir }}/tmp"
    
- name: ignore tmp dir in git
  lineinfile:
    line: /tmp
    dest: "{{ dir }}/.gitignore"
  register: ignore_tmp

# readme
# ======

- name: create readme
  template:
    src: README.md.j2
    dest: "{{ dir }}/README.md"
    force: false
  when: project_readme
  register: readme

- command: git add README.md
  args:
    chdir: "{{ dir }}"
  when: readme.changed

# hub
# ===

- name: run `hub create`
  command: "hub create{% if project_private %} -p{% endif %}"
  args:
    chdir: "{{ dir }}"
  when: project_hub

# postamble
# =========

- command: git add .gitignore
  args:
    chdir: "{{ dir }}"
  when: >
    ignore_dev_repos.changed or
    ignore_dev_ref_repos.changed or
    ignore_tmp.changed

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
qb-0.1.3 roles/qb.project/tasks/main.yml
qb-0.1.2 roles/qb.project/tasks/main.yml
qb-0.1.1 roles/qb.project/tasks/main.yml
qb-0.1.0 roles/qb.project/tasks/main.yml