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