mirror of
https://github.com/ansible-collections/hetzner.hcloud.git
synced 2026-02-03 23:51:48 +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:
parent
7c9fbf85a7
commit
6581ed50db
5 changed files with 88 additions and 0 deletions
|
|
@ -21,3 +21,6 @@ exclude_paths:
|
|||
- tests/integration/targets/volume
|
||||
- tests/integration/targets/setup_selfsigned_certificate
|
||||
- tests/integration/targets/setup_ssh_keypair
|
||||
|
||||
warn_list:
|
||||
- internal-error
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue