From e146245a0dd0832e0c42859d75406e4d349f0f2f Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Wed, 25 Feb 2015 11:16:34 -0800 Subject: [PATCH] Integration test for #10300 --- test/integration/roles/test_template/tasks/main.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/integration/roles/test_template/tasks/main.yml b/test/integration/roles/test_template/tasks/main.yml index 65064012a2..8ab6d4ac19 100644 --- a/test/integration/roles/test_template/tasks/main.yml +++ b/test/integration/roles/test_template/tasks/main.yml @@ -97,6 +97,9 @@ - "dir_attrs.stat.pw_name == 'nobody'" - "dir_attrs.stat.mode == '0755'" +- name: Check that template to a dirctory where the directory does not end with a / is allowed + template: src=foo.j2 dest={{output_dir | expanduser}}/template-dir mode=0600 owner=root group=root + - name: make a symlink to the templated file file: path: '{{ output_dir }}/foo.symlink'