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
>---
>-
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 <
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
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
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
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
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:
-
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: