Loading…

Installing apache2 from ansible

Home Forums DevOps Q&A Installing apache2 from ansible

This topic contains 1 reply, has 2 voices, and was last updated by  dinesh.anjuri@outlook.com 9 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #859

    Madhukesh
    Participant

    HI..after today’s class i tried to install apache2 on webserver from ansible server ..i am getting below error

    vagrant@web:~/repo$ ansible -i intdev -m yum -a “name=apache2 state=present” web1 –sudo
    web1 | FAILED! => {
    “changed”: false,
    “failed”: true,
    “msg”: “No package matching ‘apache2’ found available, installed or updated”,
    “rc”: 126,
    “results”: [
    “No package matching ‘apache2’ found available, installed or updated”
    ]
    }

    #860

    You are using Yum, seems like you are trying to install apache on a Red-Hat distro ?

    The package name in red hat distro appears to be different(httpd instead of apache2) like below :
    yum -y install httpd
    Source : https://www.howtoforge.com/apache_php_mysql_on_centos_6.5_lamp

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.