Merge branch 'file_fixes_clean' of https://github.com/bcoca/ansible into bcoca-file_fixes_clean

This commit is contained in:
James Cammarata 2014-03-17 14:03:26 -05:00
commit 5d8c9d3f0f
3 changed files with 112 additions and 115 deletions

View file

@ -164,5 +164,24 @@
that:
- "file11_result.uid == 1235"
- name: fail to create soft link to non existant file
file: src=/noneexistant dest={{output_dir}}/soft2.txt state=link force=no
register: file12_result
ignore_errors: true
- name: verify that link was not created
assert:
that:
- "file12_result.failed == true"
- name: force creation soft link to non existant
file: src=/noneexistant dest={{output_dir}}/soft2.txt state=link force=yes
register: file13_result
- name: verify that link was created
assert:
that:
- "file13_result.changed == true"
- name: remote directory foobar
file: path={{output_dir}}/foobar state=absent