Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update the DigitalOcean dynamic inventory script from Ansible upstream.
- Loading branch information
1 parent
69f1a44
commit 7e650d1
Showing
3 changed files
with
224 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Ansible DigitalOcean external inventory script settings | ||
# | ||
|
||
[digital_ocean] | ||
|
||
# The module needs your DigitalOcean API Token. | ||
# It may also be specified on the command line via --api-token | ||
# or via the environment variables DO_API_TOKEN or DO_API_KEY | ||
# | ||
#api_token = 123456abcdefg | ||
|
||
|
||
# API calls to DigitalOcean may be slow. For this reason, we cache the results | ||
# of an API call. Set this to the path you want cache files to be written to. | ||
# One file will be written to this directory: | ||
# - ansible-digital_ocean.cache | ||
# | ||
cache_path = /tmp | ||
|
||
|
||
# The number of seconds a cache file is considered valid. After this many | ||
# seconds, a new API call will be made, and the cache file will be updated. | ||
# | ||
cache_max_age = 300 | ||
|
||
# Use the private network IP address instead of the public when available. | ||
# | ||
use_private_network = False | ||
|
||
# Pass variables to every group, e.g.: | ||
# | ||
# group_variables = { 'ansible_user': 'root' } | ||
# | ||
group_variables = {} |
Oops, something went wrong.