diff options
author | Brian Coca <bcoca@users.noreply.github.com> | 2024-12-10 16:07:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-10 16:07:12 +0100 |
commit | 3c91eab0d8f05de39648a8bbe1149a8c4c591fb9 (patch) | |
tree | 64b3de663e6b07bb7dd0d70e3c58d063d507b95e /test/integration/targets/copy/tasks/main.yml | |
parent | simplify copy module (#84313) (diff) | |
download | ansible-3c91eab0d8f05de39648a8bbe1149a8c4c591fb9.tar.xz ansible-3c91eab0d8f05de39648a8bbe1149a8c4c591fb9.zip |
copy, prevent internal options in task (#84422)
* copy, prevent internal options in task
fixes #84367
Diffstat (limited to '')
-rw-r--r-- | test/integration/targets/copy/tasks/main.yml | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/integration/targets/copy/tasks/main.yml b/test/integration/targets/copy/tasks/main.yml index d46b783d74..eba932f819 100644 --- a/test/integration/targets/copy/tasks/main.yml +++ b/test/integration/targets/copy/tasks/main.yml @@ -109,6 +109,20 @@ - name: tests with remote_src and non files import_tasks: src_remote_file_is_not_file.yml + - name: Test internal options + copy: + content: 'irrelevant' + dest: '{{ local_temp_dir}}/file.txt' + _diff_peek: true + register: peek + ignore_errors: true + + - name: Test internal options + assert: + that: + - peek is failed + - "'_diff_peek' in peek['msg']" + always: - name: Cleaning file: |