mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
More file refactoring (#40114)
* Set src in the state functions rather than the toplevel A good API should only require passing one version of a piece of data around so do that for src * Move the rewriting of path into additional_parameter_handling When the path is a directory we can rewrite the path to be a file inside of the directory * Emit a warning when src is used with a state where it should be ignored
This commit is contained in:
@@ -134,7 +134,9 @@
|
||||
- "file6_result.changed == true"
|
||||
|
||||
- name: touch a hard link
|
||||
file: src={{output_file}} dest={{output_dir}}/hard.txt state=touch
|
||||
file:
|
||||
dest: '{{ output_dir }}/hard.txt'
|
||||
state: 'touch'
|
||||
register: file6_touch_result
|
||||
|
||||
- name: verify that the hard link was touched
|
||||
|
||||
Reference in New Issue
Block a user