blockinfile.py (ansible-2.14.0) | : | blockinfile.py (ansible-2.14.1rc1) | ||
---|---|---|---|---|
skipping to change at line 38 | skipping to change at line 38 | |||
description: | description: | |||
- Whether the block should be there or not. | - Whether the block should be there or not. | |||
type: str | type: str | |||
choices: [ absent, present ] | choices: [ absent, present ] | |||
default: present | default: present | |||
marker: | marker: | |||
description: | description: | |||
- The marker line template. | - The marker line template. | |||
- C({mark}) will be replaced with the values in C(marker_begin) (default="BE GIN") and C(marker_end) (default="END"). | - C({mark}) will be replaced with the values in C(marker_begin) (default="BE GIN") and C(marker_end) (default="END"). | |||
- Using a custom marker without the C({mark}) variable may result in the blo ck being repeatedly inserted on subsequent playbook runs. | - Using a custom marker without the C({mark}) variable may result in the blo ck being repeatedly inserted on subsequent playbook runs. | |||
- Multi-line markers are not supported and will result in the block being re | ||||
peatedly inserted on subsequent playbook runs. | ||||
- A newline is automatically appended by the module to C(marker_begin) and C | ||||
(marker_end). | ||||
type: str | type: str | |||
default: '# {mark} ANSIBLE MANAGED BLOCK' | default: '# {mark} ANSIBLE MANAGED BLOCK' | |||
block: | block: | |||
description: | description: | |||
- The text to insert inside the marker lines. | - The text to insert inside the marker lines. | |||
- If it is missing or an empty string, the block will be removed as if C(sta te) were specified to C(absent). | - If it is missing or an empty string, the block will be removed as if C(sta te) were specified to C(absent). | |||
type: str | type: str | |||
default: '' | default: '' | |||
aliases: [ content ] | aliases: [ content ] | |||
insertafter: | insertafter: | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 4 lines changed or added |