[ansible-devel] jinja2 template

2021-07-31 Thread Sakshi Jain
Please help to resolve this error ansible-playbook: error: unrecognized arguments: --snyntax-check [ec2-user@ansible-engine jinja2]$ ansible-playbook lab27.yaml PLAY [install vsftpd]

[ansible-devel] windows host automation

2021-08-19 Thread Sakshi Jain
For windows host How to write tasks in ansible : 1. Login into RDP machine 2. Login into other machines from RDP machine 3. Read email before starting the patching in the scheduled time 4. Run any commands in rdp machine , like below : 5. To shutdown : shutdown /r /f /m \\ 6. R

[ansible-devel] PowerShell script in windows host

2021-08-25 Thread Sakshi Jain
Steps 1. get the latest file name , file name format : '.txt' 2. check the file content , upto line containing AMP , updated with today's logs 3. archive/compress the file 4. delete the original file [ansible@ip-172-31-25-114 playbooks]$ cat hmscript.ps1 $dir = "C:\Users\ansible

[ansible-devel] ansible configuration

2024-02-06 Thread Sakshi Jain
So basically two users User1 , user2 user is a sudo user There are 5 servers : server1 , server2 , server3, server4, server5 We need password less connection from server1 to all other servers I am facing issue with key password less authnetication Tha playbook are be executed as sudo user

[ansible-devel] Re: ansible configuration

2024-02-06 Thread Sakshi Jain
also while executing the playbook from server1 , shall we execute as user1 or user2 ? and in inventory shall i mention as user1 or user2 as in playbook, it needs the privileged permission from the sudo user On Wed, 7 Feb 2024 at 10:35, Sakshi Jain wrote: > So basically two users > &