Difference between revisions of "/etc/ansible/hosts"
Jump to navigation
Jump to search
↑ http://docs.ansible.com/ansible/latest/intro_inventory.html
Tags: Mobile web edit, Mobile edit |
|||
Line 17: | Line 17: | ||
== Related terms == | == Related terms == | ||
* <code>[[/etc/ansible/ansible.cfg]]</code> | * <code>[[/etc/ansible/ansible.cfg]]</code> | ||
+ | * <code>[[/etc/hosts]]</code> | ||
== See also == | == See also == |
Revision as of 05:59, 5 April 2021
/etc/ansible/hosts
[1], text configuration file for managed nodes, or inventory in Ansible terminology, in INI or YAML format.
Defining specific user for some group of hosts:
[my_new_group] myhost1 myhost1 myhost3 [my_new_group:vars] ansible_user=sysadm
Activities
- Read how to build a dynamic invertory: https://docs.ansible.com/ansible/latest/user_guide/intro_dynamic_inventory.html#intro-dynamic-inventory
Related terms
See also
- 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: