Skip to content

About

Manage Better Stack with Ansible: the betterstack.betterstack collection.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

betterstack.betterstack

Manage Better Stack with Ansible.

ansible-galaxy collection install https://betterstack.sh/releases/latest/betterstack-betterstack.tar.gz

Guide and example playbook: https://betterstack.com/docs/cloud/getting-started/ansible/

Cloud

  • betterstack.betterstack.firewall: Create, update and delete firewalls in Cloud.
  • betterstack.betterstack.server: Create, update and delete servers in Cloud.
  • betterstack.betterstack.ssh_key: Create, update and delete SSH keys in Cloud.
  • betterstack.betterstack.volume: Create, update and delete volumes in Cloud.
  • betterstack.betterstack.servers (inventory): Lists the servers of every zone as hosts, grouped by their tags and zone.

The modules read the API token from api_token, or from BETTERSTACK_API_TOKEN. Set it to a global API token, which works for every product and Cloud, or to a team API token, which works only for its own product. The modules read availability_zone from the option or from BETTERSTACK_AVAILABILITY_ZONE. Use the zone your resources are in, such as us-west-2a. Each zone is separate. Set the token and availability zone once per play with module_defaults group group/betterstack.betterstack.cloud. The servers inventory accepts the token as api_token or from BETTERSTACK_API_TOKEN, and reads every availability zone unless its file lists availability_zones.

Check mode and diff

Every module supports --check and --diff. A module finds the object by its unique field, changes only what differs, and reports changed only when it sent a change.

About

Manage Better Stack with Ansible: the betterstack.betterstack collection.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages