Sha256: f88cb9957b51945424f29906b85302a4eae7011ae44cdc40a82b1a846b4fc97b
Contents?: true
Size: 994 Bytes
Versions: 1
Compression:
Stored size: 994 Bytes
Contents
--- # tasks file for qb.gitignore - name: check out nrser/gitignore git: repo: git@github.com:nrser/gitignore.git dest: ./tmp/gitignore version: master depth: 1 update: "{{ gitignore_update }}" - name: create .gitignore copy: content: '' dest: "{{ dir }}/.gitignore" force: false register: gitignore_created - name: add the gitignore blockinfile: # content: "{{ ('#' * 78) + '\n' + lookup('file', './tmp/gitignore/' + gitignore_name + '.gitignore') + '\n' + ('#' * 78) }}" content: "{{ lookup('file', './tmp/gitignore/' + gitignore_name + '.gitignore') }}" dest: "{{ dir }}/.gitignore" beginmarker: | {{ '#' * 78 }} # BEGIN {{ gitignore_name }}.gitignore # endmarker: | # # END {{ gitignore_name }}.gitignore {{ '#' * 78 }} register: gitignore_added - command: git add -f .gitignore args: chdir: "{{ dir }}" when: > gitignore_created.changed or gitignore_added.changed
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
qb-0.1.3 | roles/qb.gitignore/tasks/main.yml |