volanja / ansible_spec

It's ruby gem that connect Ansible & Serverspec for Test Driven Server Configuration(or TDD).
MIT License
228 stars 57 forks source link

host patterns/ranges don't work with dynamic inventories #64

Closed temyers closed 6 years ago

temyers commented 8 years ago

I'm using a dynamic inventory: ec2.py

ec2.py --list contains the following:

"tag_Name_server1": [
    "1.2.3.4"
  ], 
  "tag_Name_server2": [
    "1.2.3.5"
  ], 

My playbook contains:

 - name: servers
   hosts: tag_Name_server[1:2]
   roles:
    - server

rake -T includes:

...
NoMethodError: undefined method`each' for "tag_Name_server[1:2]":String

expected:

temyers commented 8 years ago

The same is behaviour is apparent for wildcards too. e.g. server*

volanja commented 6 years ago

I thought that I wanted to correspond in the past, but I have not been able to respond yet. This issue has been marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.