Difference between revisions of "Provided hosts list is empty"
Jump to navigation
Jump to search
Tags: Mobile web edit, Mobile edit |
|||
(3 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all' | [WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all' | ||
+ | |||
+ | |||
+ | Solution: | ||
+ | Add to <code>[[/etc/ansible/ansible.cfg]]</code> | ||
+ | localhost_warning = false | ||
+ | |||
+ | https://docs.ansible.com/ansible/latest/reference_appendices/config.html#localhost-warning | ||
== See also == | == See also == | ||
+ | * {{ansible.cfg}} | ||
* {{Ansible}} | * {{Ansible}} | ||
[[Category:Ansible]] | [[Category:Ansible]] |
Latest revision as of 13:04, 5 September 2022
[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'
Solution:
Add to /etc/ansible/ansible.cfg
localhost_warning = false
https://docs.ansible.com/ansible/latest/reference_appendices/config.html#localhost-warning
See also[edit]
/etc/ansible/ansible.cfg, ./ansible.cfg, ansible-config
- 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: