Hi,

Yes, the ansible user has sudo right, needs password prompt.   Thanks.

Regards,
/st wong

From: Sinan Polat <[email protected]>
Sent: Tuesday, April 23, 2019 12:46 PM
To: ST Wong (ITSC) <[email protected]>
Cc: [email protected]
Subject: Re: [ceph-users] ceph-ansible as non-root user

Hi,

Does your ansible user has sudo rights? Without password prompt?
Kind regards,
Sinan Polat

Op 23 apr. 2019 om 05:00 heeft ST Wong (ITSC) 
<[email protected]<mailto:[email protected]>> het volgende geschreven:
Hi all,

We tried to deploy a new CEPH cluster using latest ceph-ansible, run as an 
non-root user (e.g. ansible), and got following error during gathering facts:

---------- cut here ----------
TASK [ceph-facts : create a local fetch directory if it does not exist] ********
Tuesday 23 April 2019  09:42:30 +0800 (0:00:01.155)       0:02:03.781 *********
fatal: [mon1.mydomain -> localhost]: FAILED! => changed=false
  module_stderr: |-
    Sorry, try again.
    [sudo via ansible, key=xxxxxxxxxxxxxxxxxxxxxx] password: Sorry, try again.
    [sudo via ansible, key=xxxxxxxxxxxxxxxxxxxxxx] password: sudo: 3 incorrect 
password attempts
  module_stdout: ''
  msg: |-
    MODULE FAILURE
    See stdout/stderr for the exact error
  rc: 1
---------- cut here ----------

However, it’s okay if running as root user on the admin server.
We tried to setup CEPH cluster sometime last user using similar method and 
there was no problem to deploy as non-root user.
Did we miss anything or if there is change in deployment requirement?

We’re using ansible 2.7.10.

Thanks a lot.
/st wong
_______________________________________________
ceph-users mailing list
[email protected]<mailto:[email protected]>
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to