couldn't install 'nginx' on node machines using ansible

381 views
Skip to first unread message

Tharak

unread,
Mar 31, 2018, 2:02:02 PM3/31/18
to Ansible Project
nginx.yml file
*****************************
---

- hosts : test
  
  tasks : 
    - name : install nginx
      yum    : pkg=nginx state=installed
      
      notify :
         - start nginx
 
 handlers :
    - name : start nginx
       service : name=nginx state=started


*************************************
ansible-playbook nginx.yml

Error:

"msg": "No package matching 'nginx' found available, installed or updated",      "rc": 126, 

Kai Stian Olstad

unread,
Mar 31, 2018, 2:15:17 PM3/31/18
to ansible...@googlegroups.com
Not a Ansible problem, yum says it can't find nginx so you need to resolv that.

--
Kai Stian Olstad
Reply all
Reply to author
Forward
0 new messages