Sha256: e6e683fd311f670026e95656001a67157ee6b4f54ec8b499700d962102f9c8ab

Contents?: true

Size: 1003 Bytes

Versions: 41

Compression:

Stored size: 1003 Bytes

Contents

---
# tasks file for qb.gitignore

- debug: var=gitignore_name verbosity=1

- debug: var=gitignore_dest verbosity=1

- name: >-
    Create {{ gitignore_dest }} directory
  file:
    path: "{{ gitignore_dest }}"
    state: directory

- name: >-
    Create {{ gitignore_dest }}/.gitignore
  copy:
    content: ''
    dest: "{{ gitignore_dest }}/.gitignore"
    force: "{{ gitignore_force }}"
  
- name: >-
    Read {{ gitignore_name }}.gitignore
  when: gitignore_name is defined
  set_fact:
    gitignore_content: >-
      {{
        lookup(
          'file',
          role_path+'/files/gitignore/'+gitignore_name+'.gitignore'
        )
      }}

- debug: var=gitignore_content verbosity=1

- name: >-
    Modify {{ gitignore_dest }}/.gitignore
  blockinfile:
    content: "{{ gitignore_content }}"
    dest: "{{ gitignore_dest }}/.gitignore"
    beginmarker: |
      {{ '#' * 78 }}
      # BEGIN {{ gitignore_tag }}
      #
    endmarker: |
      #
      # END {{ gitignore_tag }}
      {{ '#' * 78 }}

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
qb-0.3.12 roles/qb.gitignore/tasks/main.yml
qb-0.3.11 roles/qb.gitignore/tasks/main.yml
qb-0.3.10 roles/qb.gitignore/tasks/main.yml
qb-0.3.9 roles/qb.gitignore/tasks/main.yml
qb-0.3.8 roles/qb.gitignore/tasks/main.yml
qb-0.3.7 roles/qb.gitignore/tasks/main.yml
qb-0.3.6 roles/qb.gitignore/tasks/main.yml
qb-0.3.5 roles/qb.gitignore/tasks/main.yml
qb-0.3.4 roles/qb.gitignore/tasks/main.yml
qb-0.3.3 roles/qb.gitignore/tasks/main.yml
qb-0.3.2 roles/qb.gitignore/tasks/main.yml
qb-0.3.1 roles/qb.gitignore/tasks/main.yml
qb-0.1.88 roles/qb.gitignore/tasks/main.yml
qb-0.1.87 roles/qb.gitignore/tasks/main.yml
qb-0.1.86 roles/qb.gitignore/tasks/main.yml
qb-0.1.85 roles/qb.gitignore/tasks/main.yml
qb-0.1.84 roles/qb.gitignore/tasks/main.yml
qb-0.1.83 roles/qb.gitignore/tasks/main.yml
qb-0.1.82 roles/qb.gitignore/tasks/main.yml
qb-0.1.81 roles/qb.gitignore/tasks/main.yml