You can disable this behavior using the INJECT_FACTS_AS_VARS setting. By default, you can also access some Ansible facts as top-level variables with the ansible_ prefix. You can access this data in the ansible_facts variable. Information about Ansible: magic variablesĪnsible facts are data related to your remote systems, including operating systems, IP addresses, attached filesystems, and more. Variables related to Ansible are called magic variables. For example, you can use the IP address of one system as a configuration value on another system. If you have a networksniffer/protocol analyzer like wireshark, it can not see these shortcutted packets. With facts, you can use the behavior or state of one system as configuration on other systems. When sending messages to 127.0.0.1 (or the localhost) the internal network driver typically handles this by shortcutting a few steps. Variables related to remote systems are called facts. With Ansible you can retrieve or discover certain variables containing information about your remote systems or about Ansible itself. Controlling how Ansible behaves: precedence rulesĭiscovering variables: facts and magic variables .Virtualization and Containerization Guides.Protecting sensitive data with Ansible vault.Playbook Example: Continuous Delivery and Rolling Upgrades.Information about Ansible: magic variables. Discovering variables: facts and magic variables.Working with language-specific version managers.Controlling where tasks run: delegation and local actions.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |