Re: [ansible-project] sudo privilege's are not working

2022-06-14 Thread David Logan
Hi, Does the user "ansible" have write permissions on /etc/ssh/sshd_config? Regards David ⁣When in trouble, or in doubt Run in circles, scream and shout​ On 14 June 2022, 4:46 pm, at 4:46 pm, 'Shivakumar Venkataswamy' via Ansible Project wrote: >Hi team, > look at my playbook >--- >-

Re: [ansible-project] sudo privilege's are not working

2022-06-14 Thread S Bauer-Lee
The user 'ansible' runs the playbook,. The user 'ansible' has sudo privilege as 'root ' In the playbook, the 'become user ' is 'root' Read the docs pertaining to sudo. Ansible doesn't use it directly. On Tue, Jun 14, 2022, 06:20 'Shivakumar Venkataswamy' via Ansible Project <

Re: [ansible-project] sudo privilege's are not working

2022-06-14 Thread Dick Visser
On Tue, 14 Jun 2022 at 12:20, 'Shivakumar Venkataswamy' via Ansible Project wrote: > what is mean by IMHO > > how can i execute all commands through playbook by a normal user with root > access. > You don't seem to understand the concept of privilege escalation. Hopefully this will enough to

Re: [ansible-project] sudo privilege's are not working

2022-06-14 Thread 'Shivakumar Venkataswamy' via Ansible Project
Hi team ,, can we connect through google meet or zoom it giving more trouble to me.. i hope you guy's easily catch up that.. Regards, shivu On Tuesday, 14 June 2022 at 15:50:05 UTC+5:30 Shivakumar Venkataswamy wrote: > what is mean by IMHO > > how can i execute all commands through playbook

Re: [ansible-project] sudo privilege's are not working

2022-06-14 Thread 'Shivakumar Venkataswamy' via Ansible Project
what is mean by IMHO how can i execute all commands through playbook by a normal user with root access. On Tuesday, 14 June 2022 at 14:14:33 UTC+5:30 ra...@linuxia.de wrote: > On 14/06/2022 10:21, 'Shivakumar Venkataswamy' via Ansible Project wrote: > > ansible is user account we created and

Re: [ansible-project] sudo privilege's are not working

2022-06-14 Thread Stefan Hornburg (Racke)
On 14/06/2022 10:21, 'Shivakumar Venkataswamy' via Ansible Project wrote: ansible is user account we created and member of  sudor's ( /etc/sudoers) with full privileges' same as root. IMHO the privileges are only the same when using the "sudo" command. Regards   Racke On

Re: [ansible-project] sudo privilege's are not working

2022-06-14 Thread Stefan Hornburg (Racke)
On 14/06/2022 09:16, 'Shivakumar Venkataswamy' via Ansible Project wrote: Hi team,  look at my playbook --- -  hosts: all    become: true    become_user: ansible    tasks:    - name: add a user to the list of AllowUsers if not present      vars:        usernames:           -

[ansible-project] sudo privilege's are not working

2022-06-14 Thread 'Shivakumar Venkataswamy' via Ansible Project
Hi team, look at my playbook --- - hosts: all become: true become_user: ansible tasks: - name: add a user to the list of AllowUsers if not present vars: usernames: - shivakumar.venkataswamy - karthik.reddy - aman.saxena lineinfile: