mirror of https://github.com/ansible/ansible.git
Fix when template paths contain non-ascii chars and using the path in ansible_managed
Fixes #27262pull/39540/head
parent
cca96b8c9d
commit
81b2529159
@ -0,0 +1,5 @@
|
||||
---
|
||||
bugfixes:
|
||||
- template - Fix for encoding issues when a template path contains non-ascii
|
||||
characters and using the template path in ansible_managed
|
||||
(https://github.com/ansible/ansible/issues/27262)
|
@ -0,0 +1,2 @@
|
||||
[defaults]
|
||||
ansible_managed=ansible_managed = Ansible managed: {file} modified on %Y-%m-%d %H:%M:%S by {uid} on {host}
|
@ -0,0 +1,12 @@
|
||||
---
|
||||
- hosts: testhost
|
||||
gather_facts: False
|
||||
tasks:
|
||||
- file:
|
||||
path: '{{ output_dir }}/café.txt'
|
||||
state: 'absent'
|
||||
# Smoketest that ansible_managed with non-ascii chars works:
|
||||
# https://github.com/ansible/ansible/issues/27262
|
||||
- template:
|
||||
src: 'templates/café.j2'
|
||||
dest: '{{ output_dir }}/café.txt'
|
Loading…
Reference in New Issue