2018-04-30 23:40:40 +02:00
|
|
|
---
|
|
|
|
- hosts: testhost
|
|
|
|
gather_facts: False
|
|
|
|
tasks:
|
2019-08-15 01:33:45 +02:00
|
|
|
- set_fact:
|
|
|
|
output_dir: "{{ lookup('env', 'OUTPUT_DIR') }}"
|
2018-04-30 23:40:40 +02:00
|
|
|
- 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'
|