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].

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

Reply via email to