mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
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:
parent
92f777e815
commit
ac9278ff0f
2 changed files with 13 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue