amazon web services - Error when taking snapshot of volume -
I want to create a sanpshot of a volumne, but get an error
Error:
: - Local_Action: Module: ec2_snapshot volume_id: vol-3bca8f4d Description: Volume snapshotI execute it as executable-playbook Am
My responsive version 1.6.5
What's wrong with this yml file ??
When you use local_action: , you can modify the module name The first parameter is called (without "module") and continue with each parameter as if you were writing it in the normal way.
- local_action: module param1 = first param2 = second
in your case:
- local_profile: ec2_snapshot Volume_id = vol-3bca8f4d descript ion = "snapshot of volume"
Or, if you prefer multi-level:
- local_action: ec2_snapshot volume_id = Vol-3bca8f4d Description = "Snapshot of Volume"
If you do not want to remember the difference between the syntax, you can do this:
- ec2_snapshot: volume_id = vol-3bca8f4d description = "snapshot of volume" copy Idi_ to: 127.0.0.1
Comments
Post a Comment