module Ansible::Config
Ansible
configuration
Constants
- DefaultConfig
Default configuration options
- PATH
- SKIP_HOSTVARS
IP_OR_HOSTNAME = /((25|2[0-9]|?[0-9]?)(.(25|2[0-9]|?[0-9]?)){3})$|^((([a-zA-Z0-9]|[a-zA-Z0-9-]*).)*([A-Za-z0-9]|[A-Za-z0-9-]*))n/
- VERSION
Public Instance Methods
config()
click to toggle source
accessor for config @return [DefaultConfig] the configuration
# File lib/ansible/config.rb, line 68 def config @config || configure end
configure() { |config| ... }
click to toggle source
Create and yield configuration @return [Config, DefaultConfig] the configuration
# File lib/ansible/config.rb, line 58 def configure @config ||= DefaultConfig.new yield(@config) if block_given? # allow chaining if block given block_given? ? self : @config end