did you add the inventory to etc/ansible/hosts? On Mon, Oct 15, 2018 at 12:52 AM Ronnie10 <[email protected]> wrote:
> Hi there, > > I am new to ansible, and trying to install httpd using ansible in my test > setup. > > My control machine is Mac, the test server is Centos, I have created user > with passwordless sudo right. > > When I try to run my playbook ansible-playbook playbook.yml I always get > the following result: > > $ansible-playbook playbook.yml > > > PLAY [all] > ************************************************************************************************************************* > > > TASK [Gathering Facts] > ************************************************************************************************************* > > ok: [web.test.com] > > > PLAY RECAP > ************************************************************************************************************************* > > web.test.com : ok=1 changed=0 unreachable=0 > failed=0 > > > > Anything I have missed out? > > My task main.yml as follow: > > --- > > -hosts: all > > tasks: > > - name: Installing Httpd > > yum: > > name: > > - httpd > > state:latest > > > Thank you, > > -- > 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/d5fe5b68-03a9-4e37-a2ed-1c90a8147fad%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/d5fe5b68-03a9-4e37-a2ed-1c90a8147fad%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Jonathan lozada de la matta AUTOMATION PRACTICE -- 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/CAFYJA%2BLEhLHZ658tUXUb5s%2BmZ1KM_Yk3D-WVDivUO9nG%3DQPPdQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
