A
A
Alexey Kalinin2014-11-20 18:03:46
System administration
Alexey Kalinin, 2014-11-20 18:03:46

How to specify the host at startup in ansible-playbook?

How can I specify the host to work with when starting the playbook, and not through the /etc/ansible/hosts file?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
Johnatanb, 2014-11-26
@Johnatanb

From CLI:

---
- name: Special playbook
  hosts: example.com

where example.com is the host to work with.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question