summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/template/ansible_managed.yml
blob: 2bd7c2c4f7d8343c94099f71f07e6062faa64247 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
---
- hosts: testhost
  gather_facts: False
  tasks:
  - set_fact:
      output_dir: "{{ lookup('env', 'OUTPUT_DIR') }}"
  - 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'