Sha256: da18c5789d7fd14e53023f8038793fe69aa339fba63e8626f0fa8f0647c40482

Contents?: true

Size: 909 Bytes

Versions: 90

Compression:

Stored size: 909 Bytes

Contents

- hosts: localhost
  vars:
    - testing_dir: "{{playbook_dir}}/testing"
  roles:
    - yaegashi.blockinfile
  tasks:
    - name: insert block without state
      blockinfile:
        dest: "{{testing_dir}}/insert.txt"
        backup: yes
        block: aaa bbb ccc
    - name: remove block without state
      blockinfile:
        dest: "{{testing_dir}}/remove.txt"
        backup: yes
    - name: insert block with state=present
      blockinfile:
        dest: "{{testing_dir}}/insert-present.txt"
        backup: yes
        block: aaa bbb ccc
        state: present
    - name: remove block with state=present
      blockinfile:
        dest: "{{testing_dir}}/remove-present.txt"
        backup: yes
        state: present
    - name: remove block with state=absent
      blockinfile:
        dest: "{{testing_dir}}/remove-absent.txt"
        backup: yes
        block: aaa bbb ccc
        state: absent

Version data entries

90 entries across 90 versions & 1 rubygems

Version Path
qb-0.3.12 roles/nrser.blockinfile/tests/test-state.yml
qb-0.3.11 roles/nrser.blockinfile/tests/test-state.yml
qb-0.3.10 roles/nrser.blockinfile/tests/test-state.yml
qb-0.3.9 roles/nrser.blockinfile/tests/test-state.yml
qb-0.3.8 roles/nrser.blockinfile/tests/test-state.yml
qb-0.3.7 roles/nrser.blockinfile/tests/test-state.yml
qb-0.3.6 roles/nrser.blockinfile/tests/test-state.yml
qb-0.3.5 roles/nrser.blockinfile/tests/test-state.yml
qb-0.3.4 roles/nrser.blockinfile/tests/test-state.yml
qb-0.3.3 roles/nrser.blockinfile/tests/test-state.yml
qb-0.3.2 roles/nrser.blockinfile/tests/test-state.yml
qb-0.3.1 roles/nrser.blockinfile/tests/test-state.yml
qb-0.1.88 roles/nrser.blockinfile/tests/test-state.yml
qb-0.1.87 roles/nrser.blockinfile/tests/test-state.yml
qb-0.1.86 roles/nrser.blockinfile/tests/test-state.yml
qb-0.1.85 roles/nrser.blockinfile/tests/test-state.yml
qb-0.1.84 roles/nrser.blockinfile/tests/test-state.yml
qb-0.1.83 roles/nrser.blockinfile/tests/test-state.yml
qb-0.1.82 roles/nrser.blockinfile/tests/test-state.yml
qb-0.1.81 roles/nrser.blockinfile/tests/test-state.yml