 
		
		
		
		
		
	
			
		
		
			
					
		Dear all,
As-salamu alaykum,
[ansible@ibadi chapter2-review]$ cat ansible.cfg
[defaults]
remote_user=devops
inventory=./inventory/inventory
[privilege_escalation]
become=False
become_method=sudo
become_user=root
become_ask_pass=False
[ansible@ibadi chapter2-review]$ cat inventory/inventory
[ex]
controller
node1
[ansible@ibadi chapter2-review]$ ansible -i ./inventory/inventory controller -m command -a id
controller | UNREACHABLE! => {
"changed": false,
"msg": "Failed to connect to the host via ssh: devops@controller: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).",
"unreachable": true
}
[ansible@ibadi chapter2-review]$
it looks like ssh error, and i am trying to ssh by devops user it is working but when i am trying to run this playbook getting this error?
please let me know the solution , is there anyone who has completed RH-294 chapter's 2 LAB.
 JS_Learning
		
			JS_Learning
		
		
		 
		
		
		
		
		
	
			
		
		
			
					
		What guide are you following? I did RH294 and there were no hosts called "controller"...
Seems an issue with SSH, try adding:
ask_pass = true
 
		
		
		
		
		
	
			
		
		
			
					
		I am using
RH294
Red Hat System Administrator III
Linux Automation
Student Workbook
Edition 1
(Rlease RHEL8.0-en-1-20190531)
 
		
		
		
		
		
	
			
		
		
			
					
		Please know that this is my home lab and controller host is like workstation in book and node1 is like servera.lab.example.com
 JS_Learning
		
			JS_Learning
		
		
		 
		
		
		
		
		
	
			
		
		
			
					
		Hi,
Ok, it's strange not to use the same lab, but ok.
It really seems to be ssh related so check the verbose debug "ssh -v"?
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.