cloudstack-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rene Moser <m...@renemoser.net>
Subject Re: Ansible CloudStack modules
Date Fri, 19 Dec 2014 08:32:57 GMT
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: john@example.com
    public_key: '{{ lookup('file', '~./ssh/id_rsa.pub') }}'

[1]
https://github.com/resmo/ansible-cloudstack/blob/master/cloudstack_sshkey.py

Mime
View raw message