[ansible-project] Looking for an option to exclude particular playbook not to created as job_template by tower-cli

2021-10-06 Thread Deepan M
Command # tower-cli job_template create --name "projectname" --inventory "invfile" --ask-variables-on-launch true --playbook "reldir/name.ext" in these tower-cli command options, I want to exclude one specific name playbook.yml, which doesn't have header &qu

[ansible-project] Executing powershell script via ansible playbook is not working properly

2021-07-13 Thread Deepan M
tem.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Citrix.CloudServices.ServiceRuntime.ApiClient.ServiceClient.HttpRedirectHandler.d__2.MoveNext() Thanks, Deepan M -- You received this message because you are subscribed to the Google Groups

[ansible-project] Re: root user password needs to set for many servers however the password should be different password, not to be same

2019-09-18 Thread Deepan M
Thank you Dan Linder, playbook is working perfect. Regards, Deepan M On Tuesday, September 17, 2019 at 10:06:25 PM UTC+5:30, Deepan M wrote: > > Hi, > > manually login to each servers and setting root password, login to > server1, set password "password123" ;

[ansible-project] root user password needs to set for many servers however the password should be different password, not to be same

2019-09-17 Thread Deepan M
Random password needs to be generated. 2, on each server, root user password should be reset by picking up from random password. Note:- For security reason, we are resetting root password on monthly basis and those password should be generated randomly and reset. Thanks, Deepan M -- You rece

[ansible-project] Looking for playbook to get uptime, disk , cpu , RAM , system load, from multiple Linux servers in html format or csv format

2019-05-21 Thread Deepan M
Hello, Can someone please suggest me a playbook to get uptime, disk , cpu , RAM , system load, from multiple Linux servers – in HTML format or in CSV format. Thanks, Deepan M -- You received this message because you are subscribed to the Google Groups "Ansible Project"

Re: [ansible-project] Re: blockinfile & lineinfile both are not working in RHEL 7.6

2019-02-27 Thread Deepan M
{ line: '^nameserver 13.2.7.8', rep: '' } - { line: '^nameserver 13.2.7.9', rep: '' } - { line: 'nameserver 13.2.7.10', rep: '' } - { line: 'search eu.ro.net mrtools.ro.com mit.gbr.ro.com', rep: ''}

Re: [ansible-project] Re: blockinfile & lineinfile both are not working in RHEL 7.6

2019-02-27 Thread Deepan M
Hello Luca, Replace can be removed single line, but how we can remove block ? Thanks, Deepan M On Wednesday, February 27, 2019 at 9:18:48 PM UTC+5:30, fusillator wrote: > > Consider using the replace module to normalize the space incongruence > before the blockinfile task.. > So

Re: [ansible-project] Re: blockinfile & lineinfile both are not working in RHEL 7.6

2019-02-27 Thread Deepan M
rk}" marker_begin: "nameserver 13.2.7.8 # dns1" marker_end: "search eu.ro.net mrtools.ro.com mit.gbr.ro.com" state: absent backup: yes Thanks, Deepan M On Wednesday, February 27, 2019 at 4:55:22 PM UTC+5:30, fusillator wrote: > > I dont kno

[ansible-project] Re: blockinfile & lineinfile both are not working in RHEL 7.6

2019-02-27 Thread Deepan M
marker: "{mark}" marker_begin: "nameserver 13.2.7.8 #dns1" marker_end: "search eu.ro.net mrtools.ro.com mit.gbr.ro.com" state: absent backup: yes Thanks, Deepan M On Wednesday, February 27, 2019 at 4:36:58 PM UTC+5:30, fusillator wrote: > >

[ansible-project] Re: blockinfile & lineinfile both are not working in RHEL 7.6

2019-02-27 Thread Deepan M
ols.ro.com mit.gbr.ro.com" state: absent backup: yes *Client Side:-* # cat resolv.conf nameserver 13.2.7.8 # dns1 nameserver 13.2.7.9 # dns2 nameserver 13.2.7.10# dns3 search eu.ro.net mrtools.ro.com mit.gbr.ro.com Thanks, Deepan M On Wednesday, February 27, 2019 at 3

[ansible-project] Re: blockinfile & lineinfile both are not working in RHEL 7.6

2019-02-27 Thread Deepan M
Hello Luca, One more information about this blockinfile, i facing problem with state: absent only not with state: present, means i can able to add entries, not able to remove entries. Thanks, Deepan M On Wednesday, February 27, 2019 at 3:24:46 PM UTC+5:30, Deepan M wrote: > > Hell

[ansible-project] Re: blockinfile & lineinfile both are not working in RHEL 7.6

2019-02-27 Thread Deepan M
any module did ansible is having it for removing block in file ? Thanks, Deepan M On Wednesday, February 27, 2019 at 12:04:04 AM UTC+5:30, fusillator wrote: > > take a look at /var/log/messages for line with > > updated /etc/resolv.conf > see more details at https://access.redh

[ansible-project] Re: blockinfile & lineinfile both are not working in RHEL 7.6

2019-02-26 Thread Deepan M
Can someone please help me. On Tuesday, February 26, 2019 at 8:19:35 PM UTC+5:30, Deepan M wrote: > > > Hello Guys, > > Can someone please help me to resolve this issue. > > below playbook i have created to remove dns entries from resolv.conf and > its working perfect o

[ansible-project] blockinfile & lineinfile both are not working in RHEL 7.6

2019-02-26 Thread Deepan M
nsible/ansible.cfg configured module search path = [u'/home/q5c9nf32/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible python version = 2.7.5 (d

[ansible-project] Re: with blockinfile module, I'm looking for option to check the entries whether its present or not! if not then entries have to be added by play.

2019-02-25 Thread Deepan M
Thank you James, its working fine. Thanks, Deepan M On Monday, February 25, 2019 at 6:38:36 PM UTC+5:30, Deepan M wrote: > > > > Hello, > > Can someone please help to solve my request? > > with blockinfile module, I'm looking for option to check the entries >

[ansible-project] with blockinfile module, I'm looking for option to check the entries whether its present or not! if not then entries have to be added by play.

2019-02-25 Thread Deepan M
usa7061lv1771 : ok=4changed=2unreachable=0failed=0 *Remote server output:-* cat resolv.conf Hello the world i'm here is it working Hello the world i'm here is it working Thanks, Deepan M -- You received this message because you are

[ansible-project] Re: blockinfile state:absent is not working, I'm trying to remove mulitple lines but not working

2019-02-15 Thread Deepan M
S3_OPS=pams3fedqaadmin S3_OPS ALL=(ALL) ALL " path: /tmp/test state: absent backup: yes Thanks, Deepan M On Friday, February 15, 2019 at 5:55:48 PM UTC+5:30, Deepan M wrot

[ansible-project] Re: blockinfile state:absent is not working, I'm trying to remove mulitple lines but not working

2019-02-15 Thread Deepan M
content: | User_Alias S3_OPS=pams3fedqaadmin S3_OPS ALL=(ALL) ALL marker_end: "" path: /tmp/test state: absent backup: yes Thanks, Deepan M On Friday, February 15, 2019 at 5:55:48

[ansible-project] blockinfile state:absent is not working, I'm trying to remove mulitple lines but not working

2019-02-15 Thread Deepan M
please someone help me to get answer for my query! --- - hosts: testuser become: yes tasks: - name: removelines blockinfile: block: | request ### User_Alias S3_OPS=pams3fedqaadmin S3_OPS ALL=

Re: [ansible-project] Re: Looking for playbook to Find and Copy recently modified file from remote machine folder to folder

2018-10-04 Thread Deepan M
/tmp/hostname/sosreport/* to some NFS mount point! So i'm looking for module like find & copy (to search recently modified file from specified folder on remote machine and that should be copied into specified folder.) Please suggest for play. Thanks, Deepan M On Thursday, October 4,

[ansible-project] Re: Looking for playbook to Find and Copy recently modified file from remote machine folder to folder

2018-10-03 Thread Deepan M
Anyone can able to help me. Thanks, Deepan M On Wednesday, October 3, 2018 at 11:10:22 AM UTC+5:30, Deepan M wrote: > > Hello, > > I'm writing a playbook for patching and in that i required 2 modules to > Find and Copy the recently modified file in remote machine , I have

[ansible-project] Looking for playbook to Find and Copy recently modified file from remote machine folder to folder

2018-10-02 Thread Deepan M
sg: "{{ found_files.files }}" - name: print matches debug: msg: "{{ found_files.files }}" Thanks, Deepan M -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving em

[ansible-project] Looking for playbook to Find and Copy recently modified file from remote machine folder to folder

2018-10-02 Thread Deepan M
ug: msg: "{{ found_files.files }}" - name: print matches debug: msg: "{{ found_files.files }}" Thanks, Deepan M -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop

Re: [ansible-project] trying to reset root password by using .yml playbook, but its failed with permission denied error, however same .yml playbook is working via terminal.

2018-08-05 Thread Deepan M
Hi, Below is my conf details cat ansible.cfg [defaults] host_key_checking = False remote_user = q5c9nf32 inventory = inventory [privilege_escalation] become = True become_method = sudo become_user = root become_ask_pass = True Thanks, Deepan M On Saturday, July 21, 2018 at 9:13:06 PM UTC+5