mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
Add option to ignore, warn, or error when a module parameter is converted to a string (#51404)
* Add new module property to Windows modules * Add brief pause to file tests to ensure the stat times are not equal, which was happening sometimes. * Raise TypeError on error rather than fail_json() * Rework error message to be less verbose * Add porting guide entry
This commit is contained in:
@@ -493,6 +493,10 @@
|
||||
- name: create file as root with all write permissions
|
||||
file: dest=/tmp/write_utime state=touch mode=0666 owner={{ansible_user}}
|
||||
|
||||
- name: Pause to ensure stat times are not the exact same
|
||||
pause:
|
||||
seconds: 1
|
||||
|
||||
- block:
|
||||
- name: get previous time
|
||||
stat: path=/tmp/write_utime
|
||||
|
||||
Reference in New Issue
Block a user