Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v2] role_names variable doesn't work #12863

Closed
willthames opened this issue Oct 22, 2015 · 1 comment
Closed

[v2] role_names variable doesn't work #12863

willthames opened this issue Oct 22, 2015 · 1 comment
Labels
bug This issue/PR relates to a bug.
Milestone

Comments

@willthames
Copy link
Contributor

It seems that the role_names list no longer exists.

With dummy.yml looking like:

- hosts: localhost
  connection: local

  roles:
  - dummy1
  - dummy2

  tasks:
  - debug: var="{{role_names}}"
ansible-galaxy init roles/dummy1
ansible-galaxy init roles/dummy2
ansible-playbook dummy.yml

v1

[wthames@wthames galaxy]$ ansible-playbook dummy.yml -i localhost,

PLAY [localhost] ************************************************************** 

GATHERING FACTS *************************************************************** 
ok: [localhost]

TASK: [debug var="['dummy1', 'dummy2']"] ************************************** 
ok: [localhost] => {
    "var": {
        "['dummy1', 'dummy2']": "['dummy1', 'dummy2']"
    }
}

PLAY RECAP ******************************************************************** 

v2

[WARNING]: provided hosts list is empty, only localhost is available

PLAY ***************************************************************************

TASK [setup] *******************************************************************
ok: [localhost]

TASK [debug vars={{role_names}}] ***********************************************
fatal: [localhost]: FAILED! => {"failed": true, "msg": "ERROR! 'role_names' is undefined"}

PLAY RECAP *********************************************************************
localhost                  : ok=1    changed=0    unreachable=0    failed=1   
@bcoca bcoca added this to the v2 milestone Oct 22, 2015
@jimi-c jimi-c closed this as completed in 498c27d Oct 22, 2015
@jimi-c
Copy link
Member

jimi-c commented Oct 22, 2015

Closing This Ticket

Hi!

We believe the above commit should resolve this problem for you. This will also be included in the next major release.

If you continue seeing any problems related to this issue, or if you have any further questions, please let us know by stopping by one of the two mailing lists, as appropriate:

Because this project is very active, we're unlikely to see comments made on closed tickets, but the mailing list is a great way to ask questions, or post if you don't think this particular issue is resolved.

Thank you!

photoninger pushed a commit to photoninger/ansible that referenced this issue Oct 26, 2015
@ansibot ansibot added bug This issue/PR relates to a bug. and removed bug_report labels Mar 7, 2018
@ansible ansible locked and limited conversation to collaborators Apr 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug This issue/PR relates to a bug.
Projects
None yet
Development

No branches or pull requests

4 participants