On Dec 19, 2014, at 3:32 AM, Rene Moser <m...@renemoser.net> wrote: > Hi Sebastien > > On 18.12.2014 15:44, Sebastien Goasguen wrote: > >> Thanks for Sharing René, I tested the VM one couple days ago and it works >> perfect. >> I'd love to see one for key paris and secruitygroups. > > There is actually already a module for managing ssh keypairs [1]. >
of course, my bad :) just security groups then ... > Example: > > # Upload your SSH public key > - local_action: > module: cloudstack_sshkey > name: j...@example.com > public_key: '{{ lookup('file', '~./ssh/id_rsa.pub') }}' > > [1] > https://github.com/resmo/ansible-cloudstack/blob/master/cloudstack_sshkey.py