It is, or the task wouldn't have run. OP: Your role looks broken, but you haven't show that.
Probably /usr/bin/lsb_release doesn't exist on localhost. On 25 April 2017 at 12:30, <[email protected]> wrote: > > > your file role must be in the path ansible/roles/own_test/tasks/main.yml > > > El martes, 25 de abril de 2017, 11:49:28 (UTC+2), acharya tejaswi indurthi > escribió: >> >> Hi, >> >> I am trying to create a new role from my playbook. I had created a file >> with the created role >> >> --- >> - hosts: localhost >> connection: local >> gather_facts: yes >> roles: >> - own_test >> >> when i am trying with ansible-playbook own_role.yml getting an error >> >> PLAY [localhost] >> *************************************************************** >> >> TASK [setup] >> ******************************************************************* >> fatal: [localhost]: FAILED! => {"changed": false, "cmd": >> "/usr/bin/lsb_release -a", "failed": true, "msg": "[Errno 2] No such file or >> directory", "rc": 2} >> to retry, use: --limit @/etc/ansible/playbooks/own_role.retry >> >> PLAY RECAP >> ********************************************************************* >> localhost : ok=0 changed=0 unreachable=0 >> failed=1 >> >> where is the mistake.Can anyone help me >> >> Thanks, >> > -- > You received this message because you are subscribed to the Google Groups > "Ansible Project" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/47c87c16-618e-43f9-8ee2-b5288ffcd49c%40googlegroups.com. > > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAK5eLPQAEFackZwfdjuXrKK2NxbGF%3DyGYddsZP1tKPjj7OhHmA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
