LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-18-2021, 02:29 AM   #1
sabsac
LQ Newbie
 
Registered: Sep 2015
Posts: 17

Rep: Reputation: Disabled
unable to install httpd on centos remote host using ansible file command on master vm


I am running 3 linux vms on virtual box using vagrant on my win 7 machine. the master machine is ubuntu 20.04 and the host vms are one ubuntu and one centos 8.I am using the following command:-
ansible all -m ansible.builtin.yum -a "name=httpd state=present" -become
But I am getting error as follows
Attached Thumbnails
Click image for larger version

Name:	unable to install httpd on remote centos machine.png
Views:	19
Size:	108.2 KB
ID:	36963  
Attached Files
File Type: txt ansible error.txt (2.0 KB, 17 views)
 
Old 08-19-2021, 02:33 PM   #2
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
And your question is?
Please do not expect us to read your mind about the answers you want.

Running VMs on windows 7 -- I do not even understand the concept of master and host in that context. To me the host is the machine hosting the guest VMs which means the host would be the win7 machine.

Details are needed to even understand what you are asking.
 
Old 08-19-2021, 03:40 PM   #3
sabsac
LQ Newbie
 
Registered: Sep 2015
Posts: 17

Original Poster
Rep: Reputation: Disabled
I was able to solve the question which was why I was not able to install httpd on the host with centos-8 installed using the ansible command on the ans-master using the ansible command mentioned in my question.
 
Old 08-19-2021, 03:43 PM   #4
sabsac
LQ Newbie
 
Registered: Sep 2015
Posts: 17

Original Poster
Rep: Reputation: Disabled
This command worked - ansible all -m yum -a "name=httpd state=present"
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: How to install an Ansible collection on a disconnected Ansible control node LXer Syndicated Linux News 0 03-13-2021 10:15 AM
LXer: Ansible Guide: Manage Files using Ansible LXer Syndicated Linux News 0 04-26-2019 10:32 AM
[SOLVED] How to copy file from remote host to local host then delete from remote host legendmac Linux - Newbie 13 05-27-2015 03:47 PM
httpd: Syntax error on line 210 of /etc/httpd/conf/httpd.conf: Syntax error on line 6 iswarya Linux - Newbie 1 01-25-2012 01:28 PM
Starting httpd: httpd: Syntax error on line 209 of /etc/httpd/conf/httpd.conf: Syntax sethukpathi Linux - Networking 6 04-12-2008 11:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration