Use this tag for questions regarding Ansible facts - values discovered by the setup module of Ansible or pulled from ohai/facter.
How do you get the current host's IP address in a role? I know you can get the list of …
ansible ansible-facts ansible-templateI see that Ansible provide some pre-defined variables that we can use in playbooks and template files. For example, the …
ansible ansible-factsI can do that with shell using combination of getent and awk like this: getent passwd $user | awk -F: '{ …
ansible ansible-factsI have the following code - set_fact: MY_HOSTNAME: "SOME VALUE" MY_SERVER: "00.00.00.00" - name: Get MY server set_…
ansible ansible-factsI'm working on a role that only needs to gather a single fact. Performance it's a concern and I know …
ansible ansible-factsI received the following data from the setup module: "ansible_nodename": "3d734bc2a391", "ansible_os_family": "RedHat", "ansible_pkg_…
ansible jinja2 ansible-facts ansible-templateWhen we check hostvars with: - name: Display all variables/facts known for a host debug: var=hostvars[inventory_hostname] …
ansible yaml ansible-factsI'd like to change ansible_default_ipv4 to point to eth1 instead of eth0. Can I do this in either …
ansible ansible-factsI am running myserver in ubuntu: + sudo cat /etc/os-release NAME="Ubuntu" VERSION="16.04.6 LTS (Xenial Xerus)" ID=ubuntu ID_LIKE=…
ansible ansible-2.x ansible-inventory ansible-factsDoes anyone know how to do something (like wait for port / boot of the managed node) BEFORE gathering facts? I …
ansible ansible-facts