[ansible-project] Creating VM from Template is Failing

2018-05-22 Thread Gowtham Nakulan
SUMMARY We are trying to create VM from template. I am facing issue at assigning ip line. ISSUE TYPE - Documentation Report COMPONENT NAME vsphere_guest: ANSIBLE VERSION ansible 2.5.2 CONFIGURATIONOS / ENVIRONMENT Ubuntu STEPS TO REPRODUCE --- - hosts: 127.0.0.1 connection: local

[ansible-project] Fwd: Us congress hearing of maan alsaan Money laundry قضية الكونغجرس لغسيل الأموال للمليادير معن الصانع

2018-05-22 Thread watch ya
YouTube videos of U.S. Congress money laundering hearing of Saudi Billionaire " Maan Al sanea" with *bank of America* and The owner of Saad Hospital and Schools in the Eastern Province in *Saudi Arabia* and the Chairman of the Board of Directors of Awal Bank in *Bahrain*

[ansible-project] Re: Using ansible to modify ip address on system

2018-05-22 Thread Michael Lee
Hi, I was wondering if you could provide us with the j2 template for your network interface? If not, what are the basics that you used for it? Thank you! On Friday, December 30, 2016 at 8:34:19 PM UTC-8, Gerald Spencer wrote: > > Solved it via running the command as "fire and forget" with

Re: [ansible-project] Need help to find how to run root command with non-root user and escalated privilages

2018-05-22 Thread 'Kallu Srikanth' via Ansible Project
Brian, Actually it worked instead of removing -n i added "default: '-H -S" at the end of the file Thank you very much, I really appreciate it On Monday, May 21, 2018 at 10:35:10 PM UTC-5, Brian Coca wrote: > > You seem to have a non standard/old sudo, change the default > become_flags as

Re: [ansible-project] Find module with contains parameter not working

2018-05-22 Thread Kai Stian Olstad
On 22.05.2018 14:19, Saranya N wrote: I want to list ONLY Filenames dev.xml and prd.xml that contain a word called “vob.fi.ted.com". Im able to list all filenames dev.xml and prd.xml using find module but when I use contains parameter in playbook it doesn’t return those files although they have

Re: [ansible-project] Run one simple coomand with sudo priviliges.

2018-05-22 Thread Kai Stian Olstad
On 22.05.2018 14:40, Dawid D wrote: Hello All, I would like ask about privileges escalation by sudo. I need run command on *RemoteMachine*. *User: someone* and *Command: /usr/local/blah.sh *for example suoders file: someone RemoteMachine =(root)*/usr/local/blah.sh*

Re: [ansible-project] Ansible Do Until Loop

2018-05-22 Thread Kai Stian Olstad
On 22.05.2018 10:20, Madushan Chathuranga wrote: I'm using ansible version 2.5.0 I'm trying execute a task with an Do Until Loop. http://docs.ansible.com/ansible/latest/user_guide/playbooks_loops.html#do-until-loops Is it possible to run this task with an infinite number of retries ? with

Re: [ansible-project] Ansible way to show only failed tasks not any other

2018-05-22 Thread Kai Stian Olstad
On 22.05.2018 17:17, Ansible Krazy wrote: I tried actionable and other callback plugins however it shows changed tasks also. Is there way to show only and only failed tasks on the screen You would need to write you own callback plugin. The code in a callback is fairly easy if you have some

Re: [ansible-project] Variable in the hosts file?

2018-05-22 Thread Kai Stian Olstad
On 22.05.2018 18:58, Chris Jefferies wrote: On any given day I might be accessing different aws systems with different sets of FQDNs. I'm looking for a way to basically templatize (new word?) the hosts file. It's called dynamic inventory Example: this_track=track4 this_subnet=239

Re: [ansible-project] Need help to find how to run root command with non-root user and escalated privilages

2018-05-22 Thread abhay srivastava
Are you able to do sudo without password On Tue 22 May, 2018, 10:05 PM 'Kallu Srikanth' via Ansible Project, < ansible-project@googlegroups.com> wrote: > > Hi Abhay i still have the error > > Code : - > --- > - hosts: dpie_prod > user: dpiesa > become: true > become_method: enable >

Re: [ansible-project] Need help to find how to run root command with non-root user and escalated privilages

2018-05-22 Thread 'Kallu Srikanth' via Ansible Project
Hi Abhay i still have the error Code : - --- - hosts: dpie_prod user: dpiesa become: true become_method: enable tasks: - name: install telnet yum: pkg=telnet state=present update_cache=true ERROR: fatal: [lind01]: FAILED! => {"changed": false, "module_stderr": "Shared

Re: [ansible-project] Need help to find how to run root command with non-root user and escalated privilages

2018-05-22 Thread 'Kallu Srikanth' via Ansible Project
Not sure how can I specifically remove this -n Below is my code/error/other info if you can help, please Code : - --- - hosts: dpie_prod user: dpiesa become: yes become_method: enable tasks: - name: install telnet yum: pkg=telnet state=present update_cache=true ERROR: fatal:

[ansible-project] Ansible way to show only failed tasks not any other

2018-05-22 Thread Ansible Krazy
HI all, I tried actionable and other callback plugins however it shows changed tasks also. Is there way to show only and only failed tasks on the screen Thanks -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group

[ansible-project] Run one simple coomand with sudo priviliges.

2018-05-22 Thread Dawid D
Hello All, I would like ask about privileges escalation by sudo. I need run command on *RemoteMachine*. *User: someone* and *Command: /usr/local/blah.sh *for example suoders file: someone RemoteMachine =(root)*/usr/local/blah.sh* Unfortunately I can't give permission to

[ansible-project] Find module with contains parameter not working

2018-05-22 Thread Saranya N
I want to list ONLY Filenames dev.xml and prd.xml that contain a word called “vob.fi.ted.com". Im able to list all filenames dev.xml and prd.xml using find module but when I use contains parameter in playbook it doesn’t return those files although they have the string in their contents. -

Re: [ansible-project] How to replace a word or a content in a file using ansible.

2018-05-22 Thread abhay srivastava
Use replace module. https://docs.ansible.com/ansible/2.3/replace_module.html On Tue, May 22, 2018 at 3:57 PM, Gowtham Nakulan wrote: > I am trying to replace a word in file using Ansible. > > Any inputs how to acheive it. > > > -- > You received this message because

[ansible-project] How to replace a word or a content in a file using ansible.

2018-05-22 Thread Gowtham Nakulan
I am trying to replace a word in file using Ansible. Any inputs how to acheive it. -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to

[ansible-project] Ansible Do Until Loop

2018-05-22 Thread Madushan Chathuranga
Hi All, I'm using ansible version 2.5.0 I'm trying execute a task with an Do Until Loop. http://docs.ansible.com/ansible/latest/user_guide/playbooks_loops.html#do-until-loops Is it possible to run this task with an infinite number of retries ? with out defying the number of retries. e.g:

[ansible-project] Re: Quick way for testing new Ansible roles

2018-05-22 Thread Behrang
ansible-galaxy generates the correct host name (localhost), so the docs on the website seem to be out of date. But the problem was that the role being developed is not under tests/roles. I added a symlink from tests/roles to the root directory of the role and that fixed the problem. On

Re: [ansible-project] Ansible looping over register and multiple lists

2018-05-22 Thread Jeremie Levy
It worked! Since i the first is 0, the last should be {{nb_of_agents -1 |int}} - name: output debug: var: qb_svc.results[item|int].exists with_sequence: start=0 end='{{nb_of_agents - 1 |int}}' Thanks On Tuesday, May 22, 2018 at 9:39:50 AM UTC+3, Jordan Borean

Re: [ansible-project] Ansible looping over register and multiple lists

2018-05-22 Thread Jordan Borean
Looks like item is being used as a unicode string (u'1') and not an int, can you try qb_svc.results[item|int].exists and see if that works? -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving