summaryrefslogtreecommitdiff
path: root/bin/ansible-playbook
diff options
context:
space:
mode:
authorJacopo <dedalusj@gmail.com>2014-12-30 20:17:17 +1000
committerJacopo <dedalusj@gmail.com>2014-12-30 20:17:17 +1000
commite1f2cb1d37f91b304427c1f159e42e0f142eca04 (patch)
tree5eead8f0fe69d9570b5fb822bd38cc8faf1f2070 /bin/ansible-playbook
parent8760392a95d90bcf36cac077dc7308aa40ec6b71 (diff)
downloadansible-e1f2cb1d37f91b304427c1f159e42e0f142eca04.tar.gz
Removed early check for empty inventory
Diffstat (limited to 'bin/ansible-playbook')
-rwxr-xr-xbin/ansible-playbook2
1 files changed, 0 insertions, 2 deletions
diff --git a/bin/ansible-playbook b/bin/ansible-playbook
index d25a3710d8..485f2e1f89 100755
--- a/bin/ansible-playbook
+++ b/bin/ansible-playbook
@@ -167,8 +167,6 @@ def main(args):
inventory = ansible.inventory.Inventory(options.inventory, vault_password=vault_pass)
inventory.subset(options.subset)
- if len(inventory.list_hosts()) == 0:
- raise errors.AnsibleError("provided hosts list is empty")
# run all playbooks specified on the command line
for playbook in args: