$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
---
-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 ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/d5fe5b68-03a9-4e37-a2ed-1c90a8147fad%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Jonathan lozada de la matta
AUTOMATION PRACTICE
---
- hosts: all
tasks:
- name: install http
shell: sudo yum install httpd -y
If I use sudo with password, then it won't work.
Thanks,
Ronnie10
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/f4860991-2e3d-40de-92eb-c197426f57db%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.