Open alexandruanghel opened 5 years ago
As per https://docs.hortonworks.com/HDPDocuments/HDP3/HDP-3.1.0/securing-credentials/content/ambari_sec_configuring_ambari_for_non_root.html
It should be: 1) Add all options under sudoers file using https://docs.ansible.com/ansible/latest/modules/lineinfile_module.html with validate: '/usr/sbin/visudo -cf %s' 2) Configure ambari server and agent for non-root
validate: '/usr/sbin/visudo -cf %s'
We also needed this for >1 customer .. so here's a (backported) impl: https://github.com/hortonworks/ansible-hortonworks/pull/167
As per https://docs.hortonworks.com/HDPDocuments/HDP3/HDP-3.1.0/securing-credentials/content/ambari_sec_configuring_ambari_for_non_root.html
It should be: 1) Add all options under sudoers file using https://docs.ansible.com/ansible/latest/modules/lineinfile_module.html with
validate: '/usr/sbin/visudo -cf %s'
2) Configure ambari server and agent for non-root