|
|
@ -129,7 +129,7 @@ EXAMPLES = r'''
|
|
|
|
path: /var/www/html/index.html
|
|
|
|
path: /var/www/html/index.html
|
|
|
|
marker: "<!-- {mark} ANSIBLE MANAGED BLOCK -->"
|
|
|
|
marker: "<!-- {mark} ANSIBLE MANAGED BLOCK -->"
|
|
|
|
insertafter: "<body>"
|
|
|
|
insertafter: "<body>"
|
|
|
|
content: |
|
|
|
|
block: |
|
|
|
|
<h1>Welcome to {{ ansible_hostname }}</h1>
|
|
|
|
<h1>Welcome to {{ ansible_hostname }}</h1>
|
|
|
|
<p>Last updated on {{ ansible_date_time.iso8601 }}</p>
|
|
|
|
<p>Last updated on {{ ansible_date_time.iso8601 }}</p>
|
|
|
|
|
|
|
|
|
|
|
@ -137,7 +137,7 @@ EXAMPLES = r'''
|
|
|
|
blockinfile:
|
|
|
|
blockinfile:
|
|
|
|
path: /var/www/html/index.html
|
|
|
|
path: /var/www/html/index.html
|
|
|
|
marker: "<!-- {mark} ANSIBLE MANAGED BLOCK -->"
|
|
|
|
marker: "<!-- {mark} ANSIBLE MANAGED BLOCK -->"
|
|
|
|
content: ""
|
|
|
|
block: ""
|
|
|
|
|
|
|
|
|
|
|
|
- name: Add mappings to /etc/hosts
|
|
|
|
- name: Add mappings to /etc/hosts
|
|
|
|
blockinfile:
|
|
|
|
blockinfile:
|
|
|
|