kowabunga.cloud.kawaii_ipsec module – Manage Kowabunga IPsec connections
Note
This module is part of the kowabunga.cloud collection (version 0.1.0).
It is not included in ansible-core.
To check whether it is installed, run ansible-galaxy collection list.
To install it, use: ansible-galaxy collection install kowabunga.cloud.
You need further requirements to be able to use this module,
see Requirements for details.
To use it in a playbook, specify: kowabunga.cloud.kawaii_ipsec.
Synopsis
Create, update or delete a Kowabunga Kawaii IPsec connection.
Requirements
The below requirements are needed on the host that executes this module.
python >= 3.8
kowabunga >= 0.52.5
Parameters
Parameter |
Comments |
|---|---|
Private API key used to connect with specified Kowabunga Kahuna endpoint. Recommended to be encrypted using Ansible Vault or SOPS. |
|
Description for the IPsec connection. |
|
DPD timeout duration. |
|
Action to take when DPD timeout is reached. |
|
HTTPS(S) URI of the Kowabunga Kahuna endpoint. Should be formatted as https://kowabunga.acme.com for example. |
|
Name (or ID) of the kawaii gateway where the IPsec connection will be created. |
|
Name for the IPsec connection. This attribute cannot be updated. |
|
Phase 1 Diffie-Hellman group number. |
|
Phase 1 encryption algorithm. |
|
Phase 1 integrity algorithm. |
|
Phase 1 SA lifetime. |
|
Phase 2 Diffie-Hellman group number. |
|
Phase 2 encryption algorithm. |
|
Phase 2 integrity algorithm. |
|
Phase 2 SA lifetime. |
|
Pre-shared key for IKE authentication. |
|
Time interval before re-keying. |
|
Remote peer IP address. This attribute cannot be updated. |
|
Remote subnet in CIDR notation. This attribute cannot be updated. |
|
Action to take at connection start. |
|
Should the resource be present or absent. Choices:
|
Examples
- name: Create an IPsec connection
kowabunga.cloud.kawaii_ipsec:
endpoint: https://kowabunga.acme.com
api_key: API_KEY
name: ipsec-to-hq
remote_ip: 203.0.113.1
remote_subnet: 10.0.0.0/8
pre_shared_key: mysecretkey
phase1_dh_group_number: 14
phase1_integrity_algorithm: sha256
phase1_encryption_algorithm: aes256
phase2_dh_group_number: 14
phase2_integrity_algorithm: sha256
phase2_encryption_algorithm: aes256
kawaii: gw-01
- name: Delete an IPsec connection
kowabunga.cloud.kawaii_ipsec:
endpoint: https://kowabunga.acme.com
api_key: API_KEY
name: ipsec-to-hq
kawaii: gw-01
state: absent
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
|---|---|
Dictionary describing the IPsec connection. Returned: On success when state is |
|
IPsec connection ID Returned: success Sample: |
|
IPsec connection name Returned: success Sample: |
|
Remote peer IP Returned: success Sample: |
|
Remote subnet Returned: success Sample: |