-
Notifications
You must be signed in to change notification settings - Fork 24k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
copy with backup=yes fails if file is unchanged #2380
Comments
This is the same as #2365. File module is unaware of the option |
ok, this comes from recent development work to add 'argument checking' to Thanks! On Tue, Mar 12, 2013 at 8:47 PM, Patrick Pelletier <[email protected]
|
Confirmed it fixes the issue; I was in the right area to supply a patch until @dhozac pointed out (rightfully) that 'file' doesn't take 'backup', etc. Glad I wasn't completely off the mark. /me delays actually contributing any bugfixes yet again |
* Fix syntax for exception catching * Friendlier error message as per suggestion by @bcoca
~/github/ansible> git pull
Already up-to-date.
~/github/ansible> ansible --version
ansible 1.1 (devel e307658) last updated 2013/03/12 16:01:30 (GMT -400)
Steps to reproduce:
First run is fine
PLAY [nagios] *********************
TASK: [test copy module] *********************
changed: [prod-nagios-app01.xxx]
PLAY RECAP *********************
prod-nagios-app01.xxx : ok=1 changed=1 unreachable=0 failed=0
subsequent runs fail
PLAY [nagios] *********************
TASK: [test copy module] *********************
failed: [prod-nagios-app01.xxx] => {"failed": true}
msg: unsupported parameter for module: backup
FATAL: all hosts have already failed -- aborting
PLAY RECAP *********************
prod-nagios-app01.xxxm : ok=0 changed=0 unreachable=0 failed=1
I made a brief attempt at debugging, but nothing jumped out.
please let me know if you need more info.
The text was updated successfully, but these errors were encountered: