Difference between revisions of "Gather facts"
Jump to navigation
Jump to search
Line 13: | Line 13: | ||
== See also == | == See also == | ||
− | |||
* Ansible <code>setup</code> module: https://docs.ansible.com/ansible/latest/modules/setup_module.html | * Ansible <code>setup</code> module: https://docs.ansible.com/ansible/latest/modules/setup_module.html | ||
+ | * {{Ansible modules}} | ||
* {{Ansible}} | * {{Ansible}} | ||
[[Category:Ansible]] | [[Category:Ansible]] | ||
[[Category:Server administration]] | [[Category:Server administration]] |
Revision as of 09:19, 29 April 2020
Ansible gather_facts
module, new in Ansible 2.8, allows to gather useful variables about remote hosts that can be used in playbooks
gather_facts: no gather_facts: yes
TASK [Gathering Facts] ********************************************************************************************************* ok: [SERVER_NAME]
See also
- Ansible
setup
module: https://docs.ansible.com/ansible/latest/modules/setup_module.html - Ansible modules:
gather_facts, set_fact
,ansible.builtin.file
,lineinfile
,stat
,group
,mount
,git:
,package:
,command:
,shell:
,raw:
,template:
,register:
,user:
, Ansible playbooks examples,tasks:
,lineinfile, blockinfile:
,shell:
,command:
,raw:
,ansible.builtin.file, service:, aws.ecs_taskdefinition, aws.asg, docker_container, kubernetes.core.k8s
,community.
,include_tasks
- Ansible: modules, plugins, Playbooks (examples)
ansible-playbook
,ansible-vault
,ansible-inventory
,ansible-config
, Ansible Tower, Ansible Galaxy (Roles) (ansible-galaxy
),ansible-cmdb
,gather facts
,ansible.cfg
,Ansible Molecule
, Ansible collections,register
,template
,--ask-pass
,--ask-become-pass
,remote_user:
,/etc/ansible/hosts
,ansible-doc
,ansible-lint
,.ansible/
,--forks
,--start-at-task
,changelog
,inventory
,Notify:
,ansible HOSTNAME -m ping
,gathering
,/usr/bin/ansible
,ansible -m ping
,ansible.builtin
,hosts: (Ansible)
,set fact:
,when:
,blockinfile:
,become method:
,include:
,git:
, AWX,ansible --help
, Tags, Ansible variables, versions
Advertising: