1
0
Fork 0
mirror of https://github.com/ansible-collections/hetzner.hcloud.git synced 2026-02-04 08:01:49 +00:00

feat: add hetzner.hcloud.all action group (#396)

##### SUMMARY

This allows to use `module_defaults` against all the modules at once
using the new `hetzner.hcloud.all` `action_group`.

You can now pass the `api_token` argument using module_defaults:

```yaml
- name: Demonstrate the usage of the 'hetzner.hcloud.all' module_defaults group
  hosts: localhost
  connection: local

  module_defaults:
    group/hetzner.hcloud.all:
      api_token: "{{ _vault_hcloud_api_token }}"

  tasks:
    - name: Create a volume
      hetzner.hcloud.volume:
        name: my-volume
        location: fsn1
        size: 100
        state: present
      register: volume
```   

See the documentation and examples for more details.

##### ISSUE TYPE

- Feature Pull Request
This commit is contained in:
Jonas L 2023-11-23 14:16:05 +01:00 committed by GitHub
parent 7c9fbf85a7
commit 6581ed50db
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 88 additions and 0 deletions

View file

@ -1,5 +1,39 @@
requires_ansible: ">=2.13.0"
action_groups:
all:
- certificate
- certificate_info
- datacenter_info
- firewall
- floating_ip
- floating_ip_info
- image_info
- iso_info
- load_balancer
- load_balancer_info
- load_balancer_network
- load_balancer_service
- load_balancer_target
- load_balancer_type_info
- location_info
- network
- network_info
- placement_group
- primary_ip
- primary_ip_info
- rdns
- route
- server
- server_info
- server_network
- server_type_info
- ssh_key
- ssh_key_info
- subnetwork
- volume
- volume_info
plugin_routing:
modules:
hcloud_certificate_info: