Re: [ansible-project] pip docker install

2019-10-03 Thread P. Varsha
can you share the screenshot if is it possible?.i tell u in better way On Thu, Oct 3, 2019 at 11:13 PM Alfredo De Luca wrote: > still doesn't work. everything I do the first time doesn't work and the > second time it does > > very very weird... > > > On Thu, Oct 3, 2019 at 7:52 AM P. Varsha

[ansible-project] Software Update using Ansible with Zero system down time

2019-10-03 Thread Rahul Kumar
Hi All, I am trying to address the use case of Software update(can be downgrade or upgrade) using yum or shell module. So i have Application server with some application (.ear ) deployed . But when I upate the rpms (which contain .ear ) using Ansible , I need to restart the application server

[ansible-project] Vmware Dynamic Inventory Plugin

2019-10-03 Thread Scott MacDonald
Anybody know if the vmware inventory plugin has any knobs or buttons (i.e. filtering) to increase the performance of inventory lookup? Nothing listed in the docs https://docs.ansible.com/ansible/latest/scenario_guides/vmware_scenarios/vmware_inventory.html . thanks. -- You received

Re: [ansible-project] pip docker install

2019-10-03 Thread Alfredo De Luca
still doesn't work. everything I do the first time doesn't work and the second time it does very very weird... On Thu, Oct 3, 2019 at 7:52 AM P. Varsha wrote: > hello, > > check once from command prompt *pip install docker* under the python > scripts folder it will work. > > thanks, >

Re: [ansible-project] b64decode returning wrong results in slurp

2019-10-03 Thread Kai Stian Olstad
On 03.10.2019 14:14, Karim Torkmen wrote: Hi Olstad, Thanks for your quick answer. I have tried the lookup before and it throws some error related to utf-8. That is why I had to use slurp. Indeed, the file to decode is a .gz file which is received through SCP in a base64 encoded format.

[ansible-project] Re: Ansible return code ok or ko

2019-10-03 Thread 'J Hawkesworth' via Ansible Project
If any of your tasks fail, you will get a non-zero return code when ansible-playbook runs. So you can wrap your ansible-playbook in a bash script if you need to detect if the playbook ran ok # this one fails jon@TENSY ~ $ ansible-playbook -i does_not_exist playbook_doesnt_exist.yml ERROR! the

[ansible-project] Ansible return code ok or ko

2019-10-03 Thread Karther
Hey, I want to know if possible that Ansible, when he finish deployment, he display return code. I d'ont know the value of this return code but i want a return code. For exemple : 0 -> The deploiement it's OK 1 -> The deploiement is' KO I don't know if exist one module for this problem ...

[ansible-project] Firewalld settings dont persist when service restarted.

2019-10-03 Thread Dave Hill
I have the following code, which works fine with ansible. However i've noticed when i restart my firewall service, my settings appear to not persist. Any idea why? *Ansible 2.7* *Before service restart (with ansible configs applied) This is what i expect to see;* *[root@driv-vch4-ha01

Re: [ansible-project] How to execute two tasks under a play ?

2019-10-03 Thread Vladimir Botka
On Thu, 3 Oct 2019 05:48:04 -0700 (PDT) Mohtashim S wrote: > My requirement is to run two tasks i.e "Load Deployment1." & "Load > Deployment2." in my Play 4. > > Below is my playbook: > > - name: Play 4 > hosts: localhost > tasks: >- name: "Load Deployment1." > tags: deploy >

Re: [ansible-project] How to execute two tasks under a play ?

2019-10-03 Thread Vladimir Botka
On Thu, 3 Oct 2019 05:48:04 -0700 (PDT) Mohtashim S wrote: > - name: Play 4 > hosts: localhost > tasks: >- name: "Load Deployment1." > tags: deploy > include_vars: >file: "{{ item }}" > with_fileglob: >- "vars/App_*.yaml" > > tasks: >- name:

[ansible-project] Access group_vars from custom network module

2019-10-03 Thread Alexandru Obretin
Hello, I am developing some custom Ansible modules used for configuring network TAPs and they basically rely on a HTTP connection. Therefore, I have designed a httapi plugin module and I want to get the group_vars information associated to the current host directly from my custom module_utils

[ansible-project] How to execute two tasks under a play ?

2019-10-03 Thread Mohtashim S
My requirement is to run two tasks i.e "Load Deployment1." & "Load Deployment2." in my Play 4. Below is my playbook: - name: Play 4 hosts: localhost tasks: - name: "Load Deployment1." tags: deploy include_vars: file: "{{ item }}" with_fileglob: -

[ansible-project] Zabbix_maintenance module not working

2019-10-03 Thread Miroslav Windhouwer
Hey! I have been trying to use Ansible with the zabbix_maintenance module but I keep getting an Error. I already used ‘pip install zabbix-api’ Successfully installed zabbix-api-0.5.4. There is only 1 python and pip version on the server . Even tried the ``` local_action: module:

Re: [ansible-project] b64decode returning wrong results in slurp

2019-10-03 Thread Karim Torkmen
Hi Olstad, Thanks for your quick answer. I have tried the lookup before and it throws some error related to utf-8. That is why I had to use slurp. Indeed, the file to decode is a .gz file which is received through SCP in a base64 encoded format. "msg": "An unhandled exception occurred while

Re: [ansible-project] How to use variables from one task in another task

2019-10-03 Thread Srinivas Naram
Kai, I don't think it an issue with gather facts. Take a look at below code. - hosts: *hostname2* tasks: - file: path: "/home/ansible_user/from_controller3/file_name" state: touch when: "hostvars['*hostname2*']['ansible_facts']['distribution'] == 'CentOS'"

[ansible-project] When condition not working in a list

2019-10-03 Thread Rakesh Parida
Hi, I have yaml file as below. I parse the component and version and put the parsed value to a file by creating a list deliveries: - releases: - latest: - tmoAa: file_name: CXP_902_7801_28.1.0_20191001-024646.tar md5: f08a50fcb3ec79c87ec870195568826e product_name:

Re: [ansible-project] Kerberos Authentication Failed | kerberos: authGSSClientStep() failed | Help URGENT

2019-10-03 Thread 'J Hawkesworth' via Ansible Project
I suspect the issue is to do with resolving the hostname, so potentially an issue with DNS. Although you are using hostnames in your ansible inventory, it appears from the trace output that you are actually connecting via an IP address - 192.168.169.131 Kerberos requires DNS to be fully

Re: [ansible-project] Kerberos Authentication Failed | kerberos: authGSSClientStep() failed | Help URGENT

2019-10-03 Thread Piyush Bansal
Hello Nandha, Thanks for writing me but we have to use kerberos authentication due to security reasons. So, need some help to troubleshoot this issue On Wed, Oct 2, 2019 at 5:47 PM nandha kumar wrote: > Ansible winrm transport parameter try to use ntlm...not kerboroes..it > might work > > On