Last active
April 7, 2016 21:29
-
-
Save iautom8things/e453a542c59894b74bd81937f98a5696 to your computer and use it in GitHub Desktop.
global name
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- name: Install Oracle Java JDK | |
hosts: '{{ hosts }}' | |
tasks: | |
- name: say hello | |
command: touch hello.world |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
❯❯❯ ansible-playbook -i inventory kong.yml --extra-vars 'hosts=kong' | |
PLAY [Install Oracle Java JDK] ************************************************ | |
GATHERING FACTS *************************************************************** | |
failed: [kong_test_qa] => {"failed": true, "parsed": false} | |
Traceback (most recent call last): | |
File "/home/ubuntu/.ansible/tmp/ansible-tmp-1460064049.08-55588592816808/setup", line 4142, in <module> | |
main() | |
File "/home/ubuntu/.ansible/tmp/ansible-tmp-1460064049.08-55588592816808/setup", line 119, in main | |
data = get_all_facts(module) | |
File "/home/ubuntu/.ansible/tmp/ansible-tmp-1460064049.08-55588592816808/setup", line 4090, in get_all_facts | |
facts = ansible_facts(module) | |
File "/home/ubuntu/.ansible/tmp/ansible-tmp-1460064049.08-55588592816808/setup", line 4079, in ansible_facts | |
facts.update(Facts().populate()) | |
File "/home/ubuntu/.ansible/tmp/ansible-tmp-1460064049.08-55588592816808/setup", line 1818, in __init__ | |
self.get_lsb_facts() | |
File "/home/ubuntu/.ansible/tmp/ansible-tmp-1460064049.08-55588592816808/setup", line 2098, in get_lsb_facts | |
lsb_path = module.get_bin_path('lsb_release') | |
NameError: global name 'module' is not defined | |
TASK: [say hello] ************************************************************* | |
FATAL: no hosts matched or all hosts have already failed -- aborting | |
PLAY RECAP ******************************************************************** | |
to retry, use: --limit @/Users/mz/kong.retry | |
kong_test_qa : ok=0 changed=0 unreachable=0 failed=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
❯❯❯ ansible-playbook -i inventory kong.yml --extra-vars 'hosts=kong' | |
PLAY [Install Oracle Java JDK] ************************************************ | |
TASK: [say hello] ************************************************************* | |
failed: [kong_test_qa] => {"failed": true} | |
msg: this module requires key=value arguments (['touch', 'hello.world']) | |
FATAL: all hosts have already failed -- aborting | |
PLAY RECAP ******************************************************************** | |
to retry, use: --limit @/Users/mz/kong.retry | |
kong_test_qa : ok=0 changed=0 unreachable=0 failed=1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment