remove action plugin only fields from 'file' calls (#31047)

* remove action plugin only fields from 'file' calls

fixes #30556

* Add a test for #30556
This commit is contained in:
Brian Coca 2017-09-29 20:13:32 -04:00 committed by Toshio Kuratomi
commit ac9278ff0f
2 changed files with 13 additions and 9 deletions

View file

@ -102,6 +102,7 @@
copy:
src: foo.txt
dest: "{{ remote_file }}"
decrypt: no
register: copy_result2
- name: Assert that the file was not changed
@ -113,6 +114,7 @@
copy:
content: "modified"
dest: "{{ remote_file }}"
decrypt: no
register: copy_result3
- name: Check the stat results of the file
@ -137,6 +139,7 @@
content: "modified"
dest: "{{ remote_file }}"
mode: 0700
decrypt: no
register: copy_result4
- name: Check the stat results of the file
@ -167,6 +170,7 @@
content: 'modified'
dest: '{{ remote_file }}'
mode: 0700
decrypt: no
register: copy_results
- name: Check the stat results of the file
@ -191,6 +195,7 @@
content: 'modified'
dest: '{{ remote_file }}'
mode: 0404
decrypt: no
register: copy_results
- name: Check the stat results of the file