Difference between revisions of "Hosts: (Ansible)"
Jump to navigation
Jump to search
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{lowercase}} | {{lowercase}} | ||
+ | https://docs.ansible.com/ansible/latest/user_guide/intro_patterns.html | ||
*<code>hosts: all</code> | *<code>hosts: all</code> | ||
Line 7: | Line 8: | ||
== Errors == | == Errors == | ||
− | <code>[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'</code> | + | * <code>[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'</code> |
− | <code>ERROR! Hosts list cannot be empty - please check your playbook | + | * <code>ERROR! Hosts list cannot be empty - please check your playbook</code> |
− | |||
− | |||
+ | * <code>[[skipping: no hosts matched]]</code> | ||
== Related terms == | == Related terms == | ||
+ | * <code>[[ansible-playbook -i]] my_host_test_1 your_playbook.yml</code> | ||
* <code>[[tasks:]]</code> | * <code>[[tasks:]]</code> | ||
* <code>[[gather_facts:]]</code> | * <code>[[gather_facts:]]</code> | ||
+ | * <code>[[/etc/ansible/hosts]]</code> | ||
+ | * <code>[[ansible-playbook]]</code> | ||
== See also == | == See also == |
Latest revision as of 17:37, 16 January 2023
https://docs.ansible.com/ansible/latest/user_guide/intro_patterns.html
hosts: all
hosts: localhost
Errors[edit]
[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'
ERROR! Hosts list cannot be empty - please check your playbook
Related terms[edit]
ansible-playbook -i my_host_test_1 your_playbook.yml
tasks:
gather_facts:
/etc/ansible/hosts
ansible-playbook
See also[edit]
- 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: