Hi
Have you been aware that there is a built-in cloudstack integration in
Ansible?
https://docs.ansible.com/ansible/latest/collections/ngine_io/cloudstack/index.html
We are currently revising the user documentation to show how to use the
modules most productively which should be finish when releasing 3.0
Ansible CloudStack Integration, by the end of year.
Regards
René
On 2024/11/16 08:15:54 Jeroen Kleijer wrote:
Hi all,
We've been using ACS (4.19 series) in our test and development environment
for the last 6 months or so and written some ansible code to help with the
deployment. For some parts we can use the native ngine_io.cloudstack
modules, for others where we have to use the API calls made available to
us, we have to use the modules ansible.builtin.uri.
In order to use the uri module, we figured out that it needs a session_key
and jsession_id so we authenticate with ACS:
- name: Authenticate with Cloudstack
ansible.builtin.uri:
url: "{{ cloudstack_url }}"
method: POST
body_format: form-urlencoded
body:
command: "login"
username: "{{ admin_username }}"
password: "{{ vault_admin_password }}"
response: "json"
return_content: true
register: login_response