I just think this way is reinstall docker-engie to latest when you ues name and state=lastest
it's different to upgrade this procedure 在 2016年7月21日星期四 UTC+8下午10:44:46,Kai Stian Olstad写道: > > On 21. juli 2016 03:44, [email protected] <javascript:> wrote: > > xx.xxx.xx.xxx | FAILED! => { > > "changed": false, > > "failed": true, > > "msg": "Boolean docker-engine not in either boolean list" > > } > > ``` > > > > In the document > > > > only_upgrade(added in 2.1) > > Only install/upgrade a package if it is already installed. > > The documentation also say the default value is false, so this option > can only be true or false. > > > > - name: upgrade docker-engine > > apt: > > only_upgrade: docker-engine > > This should be > - name: upgrade docker-engine > apt: > name: docker-engine > only_upgrade: true > > I also think you need to add state: latest to have it upgrade the package. > > -- > Kai Stian Olstad > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/c30b9614-0482-47ae-be12-f765d4a1f4b1%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
