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:
Sam Doran
2019-02-22 16:44:32 -05:00
committed by GitHub
parent 1f06b3ca7d
commit f52a088862
7 changed files with 49 additions and 8 deletions

View File

@@ -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