mirror of
https://github.com/thegeeklab/ansible-later.git
synced 2024-11-24 13:50:41 +00:00
allow different naming for the directory based config file
This commit is contained in:
parent
d7dac43a72
commit
3d88f0b8f8
@ -1,2 +1,3 @@
|
||||
* ENHANCEMENT
|
||||
* add custom modules auto-detection
|
||||
- ENHANCEMENT
|
||||
- add custom modules auto-detection
|
||||
- allow different naming for the directory based config file `.later|.later.yml|.later.yaml`
|
||||
|
@ -71,9 +71,9 @@ class Settings(object):
|
||||
defaults = self._get_defaults()
|
||||
source_files = []
|
||||
source_files.append(self.config_file)
|
||||
source_files.append(
|
||||
os.path.relpath(os.path.normpath(os.path.join(os.getcwd(), ".later.yml")))
|
||||
)
|
||||
source_files.append(os.path.join(os.getcwd(), ".later"))
|
||||
source_files.append(os.path.join(os.getcwd(), ".later.yml"))
|
||||
source_files.append(os.path.join(os.getcwd(), ".later.yaml"))
|
||||
cli_options = self.args
|
||||
|
||||
for config in source_files:
|
||||
|
@ -8,7 +8,7 @@ Changes can be made in a YAML configuration file or through CLI options which wi
|
||||
|
||||
- default configuration (build-in)
|
||||
- global configuration file (this will depend on your operating system)
|
||||
- directory based configuration file (`.later.yml` file in current working directory)
|
||||
- folder-based configuration file (.later.yml|.later.yaml|.later) in current working directory
|
||||
- CLI options
|
||||
|
||||
Be careful! YAML Attributes will be overwritten while lists in any configuration file will be merged.
|
||||
|
Loading…
Reference in New Issue
Block a user