We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Using ansible-1.4.1 ...
ansible-1.4.1
# ansible --version ansible 1.4.1
... the play completes successfully
# ansible-playbook -i /path/to/inventory --check -u root --ask-pass --ask-sudo-pass -l '~host-1[3-7]+\.example\.com' trunk/language_features/roletest.yml SSH password: sudo password [defaults to SSH password]: PLAY [all] ******************************************************************** GATHERING FACTS *************************************************************** ok: [host-16.example.com] ok: [host-15.example.com] ok: [host-13.example.com] ok: [host-17.example.com] ok: [host-14.example.com] TASK: [shell echo "hi this is a pre_task step about {{inventory_hostname}}"] *** skipping: [host-16.example.com] skipping: [host-17.example.com] skipping: [host-15.example.com] skipping: [host-13.example.com] skipping: [host-14.example.com] TASK: [foo | copy operation] ************************************************** ok: [host-16.example.com] ok: [host-15.example.com] ok: [host-17.example.com] ok: [host-13.example.com] ok: [host-14.example.com] TASK: [foo | template operation] ********************************************** ok: [host-15.example.com] ok: [host-16.example.com] ok: [host-17.example.com] ok: [host-13.example.com] ok: [host-14.example.com] TASK: [foo | demo that parameterized roles work] ****************************** skipping: [host-16.example.com] skipping: [host-17.example.com] skipping: [host-15.example.com] skipping: [host-13.example.com] skipping: [host-14.example.com] TASK: [foo | copy operation] ************************************************** ok: [host-16.example.com] ok: [host-17.example.com] ok: [host-15.example.com] ok: [host-14.example.com] ok: [host-13.example.com] TASK: [foo | template operation] ********************************************** ok: [host-16.example.com] ok: [host-17.example.com] ok: [host-15.example.com] ok: [host-13.example.com] ok: [host-14.example.com] TASK: [foo | demo that parameterized roles work] ****************************** skipping: [host-17.example.com] skipping: [host-16.example.com] skipping: [host-15.example.com] skipping: [host-13.example.com] skipping: [host-14.example.com] TASK: [shell echo 'this is a loose task'] ************************************* skipping: [host-16.example.com] skipping: [host-17.example.com] skipping: [host-15.example.com] skipping: [host-13.example.com] skipping: [host-14.example.com] TASK: [shell echo 'this is a post_task about {{inventory_hostname}}'] ********* skipping: [host-16.example.com] skipping: [host-17.example.com] skipping: [host-15.example.com] skipping: [host-13.example.com] skipping: [host-14.example.com] PLAY RECAP ******************************************************************** host-13.example.com : ok=5 changed=0 unreachable=0 failed=0 host-14.example.com : ok=5 changed=0 unreachable=0 failed=0 host-15.example.com : ok=5 changed=0 unreachable=0 failed=0 host-16.example.com : ok=5 changed=0 unreachable=0 failed=0 host-17.example.com : ok=5 changed=0 unreachable=0 failed=0
When upgrading to the latest ansible-1.5 development stream ...
ansible-1.5
# ansible --version ansible 1.5
The same play fails ...
# ansible-playbook -i /path/to/inventory --check -u root --ask-pass --ask-sudo-pass -l '~host-1[3-7]+\.example\.com' trunk/language_features/roletest.yml SSH password: sudo password [defaults to SSH password]: PLAY [all] ******************************************************************** GATHERING FACTS *************************************************************** ok: [host-16.example.com] ok: [host-17.example.com] ok: [host-15.example.com] ok: [host-13.example.com] ok: [host-14.example.com] TASK: [shell echo "hi this is a pre_task step about {{inventory_hostname}}"] *** skipping: [host-16.example.com] skipping: [host-17.example.com] skipping: [host-15.example.com] skipping: [host-13.example.com] skipping: [host-14.example.com] TASK: [foo | copy operation] ************************************************** ok: [host-16.example.com] ok: [host-15.example.com] ok: [host-17.example.com] ok: [host-14.example.com] ok: [host-13.example.com] TASK: [foo | template operation] ********************************************** fatal: [host-16.example.com] => {'msg': "One or more undefined variables: 'ansible_os_family' is undefined", 'failed': True} fatal: [host-15.example.com] => {'msg': "One or more undefined variables: 'ansible_os_family' is undefined", 'failed': True} fatal: [host-14.example.com] => {'msg': "One or more undefined variables: 'ansible_os_family' is undefined", 'failed': True} fatal: [host-17.example.com] => {'msg': "One or more undefined variables: 'ansible_os_family' is undefined", 'failed': True} fatal: [host-13.example.com] => {'msg': "One or more undefined variables: 'ansible_os_family' is undefined", 'failed': True} fatal: [host-16.example.com] => {'msg': "One or more undefined variables: 'ansible_os_family' is undefined", 'failed': True} fatal: [host-15.example.com] => {'msg': "One or more undefined variables: 'ansible_os_family' is undefined", 'failed': True} fatal: [host-14.example.com] => {'msg': "One or more undefined variables: 'ansible_os_family' is undefined", 'failed': True} fatal: [host-17.example.com] => {'msg': "One or more undefined variables: 'ansible_os_family' is undefined", 'failed': True} fatal: [host-13.example.com] => {'msg': "One or more undefined variables: 'ansible_os_family' is undefined", 'failed': True} FATAL: all hosts have already failed -- aborting PLAY RECAP ******************************************************************** to retry, use: --limit @/var/lib/awx/roletest.retry host-13.example.com : ok=2 changed=0 unreachable=1 failed=0 host-14.example.com : ok=2 changed=0 unreachable=1 failed=0 host-15.example.com : ok=2 changed=0 unreachable=1 failed=0 host-16.example.com : ok=2 changed=0 unreachable=1 failed=0 host-17.example.com : ok=2 changed=0 unreachable=1 failed=0
The text was updated successfully, but these errors were encountered:
To clarify from what I found by testing, this only happens when using the --check argument. Without --check things work as expected.
--check
Sorry, something went wrong.
8873c36
Merge pull request #5151 from sivel/new-new-module-style
942ee4b
Fix new new module_style determination. Fixes #5148
Retested with the latest from git ... the reported problem has been resolved. Thanks!
I'm still running into this issue with 1.5.3. Though it's sporadic and sometimes succeeds.
No branches or pull requests
Using
ansible-1.4.1
...# ansible --version ansible 1.4.1
... the play completes successfully
When upgrading to the latest
ansible-1.5
development stream ...# ansible --version ansible 1.5
The same play fails ...
The text was updated successfully, but these errors were encountered: