Sha256: cb828dfdf84daa1da610f409cb56ccb3595e8e574bb636e1a4c74ea201798d90

Contents?: true

Size: 585 Bytes

Versions: 90

Compression:

Stored size: 585 Bytes

Contents

- hosts: localhost
  vars:
    - testing_dir: "{{playbook_dir}}/testing"
  roles:
    - yaegashi.blockinfile
  tasks:
    - name: insert a newline after <body>
      replace:
        dest: "{{testing_dir}}/index.html"
        backup: yes
        regexp: (?i)(<body>)(?=.)
        replace: \1\n
    - name: insert a block after <body>
      blockinfile:
        dest: "{{testing_dir}}/index.html"
        backup: yes
        marker: "<!-- {mark} ANSIBLE MANAGED BLOCK -->"
        content: |
          <h2>aaa bbb ccc</h2>
          <h2>AAA BBB CCC</h2>
        insertafter: (?i)<body>

Version data entries

90 entries across 90 versions & 1 rubygems

Version Path
qb-0.1.20 roles/nrser.blockinfile/tests/test-replace.yml
qb-0.1.19 roles/nrser.blockinfile/tests/test-replace.yml
qb-0.1.18 roles/nrser.blockinfile/tests/test-replace.yml
qb-0.1.17 roles/nrser.blockinfile/tests/test-replace.yml
qb-0.1.16 roles/nrser.blockinfile/tests/test-replace.yml
qb-0.1.15 roles/nrser.blockinfile/tests/test-replace.yml
qb-0.1.14 roles/nrser.blockinfile/tests/test-replace.yml
qb-0.1.13 roles/nrser.blockinfile/tests/test-replace.yml
qb-0.1.12 roles/nrser.blockinfile/tests/test-replace.yml
qb-0.1.11 roles/nrser.blockinfile/tests/test-replace.yml