Skip to content

Commit f3a3a6b

Browse files
preussalfpytloun
authored andcommitted
Add file.managed replace Funktion. (#206)
* Update file.sls add replace * Update file.sls update replace
1 parent 127680a commit f3a3a6b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

linux/system/file.sls

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ linux_file_{{ file_name }}:
3939
- name: {{ file_name }}
4040
{%- endif %}
4141
- makedirs: {{ file.get('makedirs', 'True') }}
42+
- replace: {{ file.get('replace', 'True') }}
4243
- user: {{ file.get('user', 'root') }}
4344
- group: {{ file.get('group', 'root') }}
4445
{%- if file.mode is defined %}
@@ -50,7 +51,7 @@ linux_file_{{ file_name }}:
5051
{%- if file.encoding is defined %}
5152
- encoding: {{ file.encoding }}
5253
{%- endif %}
53-
54+
5455
{%- endfor %}
5556
5657
{%- endif %}

0 commit comments

Comments
 (0)