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