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.1.40 roles/nrser.blockinfile/tests/test-state.yml
qb-0.1.39 roles/nrser.blockinfile/tests/test-state.yml
qb-0.1.38 roles/nrser.blockinfile/tests/test-state.yml
qb-0.1.37 roles/nrser.blockinfile/tests/test-state.yml
qb-0.1.36 roles/nrser.blockinfile/tests/test-state.yml
qb-0.1.35 roles/nrser.blockinfile/tests/test-state.yml
qb-0.1.34 roles/nrser.blockinfile/tests/test-state.yml
qb-0.1.33 roles/nrser.blockinfile/tests/test-state.yml
qb-0.1.32 roles/nrser.blockinfile/tests/test-state.yml
qb-0.1.31 roles/nrser.blockinfile/tests/test-state.yml
qb-0.1.30 roles/nrser.blockinfile/tests/test-state.yml
qb-0.1.29 roles/nrser.blockinfile/tests/test-state.yml
qb-0.1.28 roles/nrser.blockinfile/tests/test-state.yml
qb-0.1.27 roles/nrser.blockinfile/tests/test-state.yml
qb-0.1.26 roles/nrser.blockinfile/tests/test-state.yml
qb-0.1.25 roles/nrser.blockinfile/tests/test-state.yml
qb-0.1.24 roles/nrser.blockinfile/tests/test-state.yml
qb-0.1.23 roles/nrser.blockinfile/tests/test-state.yml
qb-0.1.22 roles/nrser.blockinfile/tests/test-state.yml
qb-0.1.21 roles/nrser.blockinfile/tests/test-state.yml