[ansible-project] Need help in setting ansible for sonicwall backups

2024-04-17 Thread Rahul Kumar
Hello All, I need help in setting ansible to take Sonicwall firewall backups. Anyone, who is willing to help me is greatly appreciated. Thanks, -- 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] Using Yum module for Satellite repo

2020-10-04 Thread Rahul Kumar
Ok got, all these are defined in https://docs.ansible.com/ansible/latest/collections/ansible/builtin/yum_repository_module.html Thanks On Mon, 5 Oct 2020 at 10:18, Rahul Kumar wrote: > Hi Dick, > I think that is my question , i see some options in my yum configuration > (as snip

Re: [ansible-project] Using Yum module for Satellite repo

2020-10-04 Thread Rahul Kumar
le.com/ansible/latest/collections/ansible/builtin/yum_module.html#parameter-conf_file > > > On Mon, 5 Oct 2020 at 05:57, Rahul Kumar wrote: > >> Hi Ansible Gurus, >> I have set up satellite server for hosting my RHEL based rpms. >> This is the snippet ho

[ansible-project] Using Yum module for Satellite repo

2020-10-04 Thread Rahul Kumar
Hi Ansible Gurus, I have set up satellite server for hosting my RHEL based rpms. This is the snippet how my repo looks like: [rhel-7rpms] metadata_expire = 1 enabled_metadata = 0 sslclientcert = abc.pem baseurl = https://mysatelliteserver ui_repoid_vars = basearch sslverify = 1 name = Red Hat

Re: [ansible-project] Reduce debug task

2020-07-29 Thread Rahul Kumar
Benifit is reducing 2 tasks in one task ! Or 10 tasks in 5 tasks ! If it can be done ! On Wed, 29 Jul 2020 at 13:41, Stefan Hornburg (Racke) wrote: > On 7/29/20 9:58 AM, Rahul Kumar wrote: > > Hi Ansible Gurus, > > Is it possible to print some message in the task itself

[ansible-project] Reduce debug task

2020-07-29 Thread Rahul Kumar
Hi Ansible Gurus, Is it possible to print some message in the task itself when condition is not matched , rather than having new task with debug module ? Example: currently i am writing two tasks: - name: Get Active Application server debug: msg: "No active Application server

Re: [ansible-project] Need help

2020-07-28 Thread Rahul Kumar
use same here in above snippet as a condition in when ? On Tue, 28 Jul 2020 at 13:33, Stefan Hornburg (Racke) wrote: > On 7/28/20 9:56 AM, Rahul Kumar wrote: > > Logic is like if an application could not be deployed , forcefully > shutdown the application server rather than stoppin

Re: [ansible-project] Need help

2020-07-28 Thread Rahul Kumar
Logic is like if an application could not be deployed , forcefully shutdown the application server rather than stopping before only! On Tue, 28 Jul 2020 at 12:56, Stefan Hornburg (Racke) wrote: > On 7/28/20 9:20 AM, Rahul Kumar wrote: > > Ya stephan , it is bad approach I know (

Re: [ansible-project] Need help

2020-07-28 Thread Rahul Kumar
AM, Rahul Kumar wrote: > > Hi Ansible Gurus, > > I have a playbook like below: > > - name: Get Active Rest server > > include_role: > > name: web-server > > tasks_from: active-rest-server > > > > Now I have a playbook under the web-

[ansible-project] Need help

2020-07-28 Thread Rahul Kumar
Hi Ansible Gurus, I have a playbook like below: - name: Get Active Rest server include_role: name: web-server tasks_from: active-rest-server Now I have a playbook under the web-server role named active-rest-server.yml ! So in case active-rest-server fails , can i use

Re: [ansible-project] Help needed regarding when condition

2020-07-24 Thread Rahul Kumar
sorry evaluate result.content.allstarted only when result.failed == true On Fri, 24 Jul 2020 at 17:52, Rahul Kumar wrote: > ok thanks ! I need one more help: > > suppose i have a statement like : > until: result.failed == False and result is succeeded and > result.con

Re: [ansible-project] Help needed regarding when condition

2020-07-24 Thread Rahul Kumar
:14 AM, Rahul Kumar wrote: > > my idea is: i don't want to stop the execution if this rest call is > failed ! what i want that if this task failed , it > > should be skipped rather than failing entire execution ! > > Notice i dont want to use ignore_error kind of then , i want

Re: [ansible-project] Help needed regarding when condition

2020-07-24 Thread Rahul Kumar
, Stefan Hornburg (Racke) wrote: > On 7/24/20 9:07 AM, Rahul Kumar wrote: > > Here it is : > > - name: my service shut > > my_service: > > baseUrl: "{{ base_rest_url }}" > > tasks: > > - action: service_shut > >

Re: [ansible-project] Help needed regarding when condition

2020-07-24 Thread Rahul Kumar
register: result with_items: "{{ my_instances_config }}" when: result is not failed here my_service is custom python module ! On Fri, 24 Jul 2020 at 12:34, Stefan Hornburg (Racke) wrote: > On 7/24/20 8:59 AM, Rahul Kumar wrote: > > Hi Ansible Gurus,, > > I have this output: > >

[ansible-project] Help needed regarding when condition

2020-07-24 Thread Rahul Kumar
Hi Ansible Gurus,, I have this output: (1, '\r\n{"msg": "service[component] - https://myip/myrest/v1/ fails to due to error 501 - None", "failed": true, "invocation": {"module_args": {"url_password": null, "tasks": [{"name": null, "hostname": "myapp", "timeout": "60", "my_post_action":

Re: [ansible-project] Need help with registered variable

2020-07-14 Thread Rahul Kumar
THanks Vlad ! I will use same ! Regards Rahul On Mon, 13 Jul 2020 at 19:47, Vladimir Botka wrote: > On Fri, 10 Jul 2020 17:24:05 +0530 > Rahul Kumar wrote: > > > I have a task output like this: > > - name: Print Response of status resource > > debug: > >

Re: [ansible-project] Need help with registered variable

2020-07-13 Thread Rahul Kumar
Notice, result is registered with loop ! So wanted to check in case of loop does registered variable contains result of each iteration ? On Mon, 13 Jul 2020 at 16:19, Rahul Kumar wrote: > No even it complains results is not defined ! > > I am not understanding whats wrong here

Re: [ansible-project] Need help with registered variable

2020-07-13 Thread Rahul Kumar
m wrote: > Try by removing quotes > > result[results][0].content.data > > On Fri, Jul 10, 2020 at 8:04 PM Rahul Kumar > wrote: > >> Thanks Abhijeet ! I tried even result[‘results’][0].content.data but >> still it complains results is not dict attribute ! >

Re: [ansible-project] Need help with registered variable

2020-07-10 Thread Rahul Kumar
Thanks Abhijeet ! I tried even result[‘results’][0].content.data but still it complains results is not dict attribute ! On Fri, 10 Jul 2020 at 5:32 PM, Abhijeet Kasurde wrote: > 'data' is inside 'content' you might want to check around that > > > On Fri, Jul 10, 2020 at 5:24 PM

[ansible-project] Need help with registered variable

2020-07-10 Thread Rahul Kumar
I have a task output like this: - name: Print Response of status resource debug: msg: " {{ result }}" ok: [node-3] => { "msg": " {'msg': u'All items completed', 'changed': False, 'results': [{'ansible_loop_var': u'item', 'failed': False, 'changed': False, u'content': {u'body': None,

Re: [ansible-project] Need help in polling the ansible task

2020-07-09 Thread Rahul Kumar
ook with your when condition . > > > You have to provide the exact output to get condition . > > Until: register.somthing.isFetched == true > > > > On Thu 9. Jul 2020 at 11:26, Rahul Kumar wrote: > >> Hi Geeks , >> I have a task as below which returns me so

[ansible-project] Need help in polling the ansible task

2020-07-09 Thread Rahul Kumar
Hi Geeks , I have a task as below which returns me some data. I want to continuously poll this request until I get a specific attribute in response as true. Here is the response from the playbook sample1.yml: {"_id":"89494fnfi04m0","price":"$17","isFetched": false} cat sample1.yml --- name: My

[ansible-project] Need help for ternary operator in ansible

2020-06-24 Thread Rahul Kumar
Hi Ansible Gurus , i have below task : - name: RPM EPOCH Finder #command: rpm -qa --qf '%|EPOCH?{%{EPOCH}}:{0}|\n' {{ item.split('.')[0] | regex_replace('-\d+', '')}} command: rpm -qa --qf '%|EPOCH?{%{EPOCH}}:{0}|\n' {{ item.split('.')[0] | regex_replace('-\d+', '')}} with_items:

[ansible-project] Need help for Ansible Documentation

2020-06-18 Thread Rahul Kumar
Hi Ansible Gurus, I have many roles in my Ansible Project . Each role has a different set of variables . In the end , it is a huge list of documents in case we want to document. Wanted to check if Ansible provides any kind of utility/tools which can document all roles and their parameters in a

Re: [ansible-project] Need help for some logic

2020-04-22 Thread Rahul Kumar
Ansible gurus, any suggestions? On Wed, 22 Apr 2020 at 13:44, Rahul Kumar wrote: > In short , I want this configuration file as an interface between > mymasterplaybook.yml and individual roles , also mymasterplaybook.yml need > to recognize this file to fill its dynamic params .

Re: [ansible-project] Need help for some logic

2020-04-22 Thread Rahul Kumar
In short , I want this configuration file as an interface between mymasterplaybook.yml and individual roles , also mymasterplaybook.yml need to recognize this file to fill its dynamic params . Rahul On Wed, 22 Apr 2020 at 13:28, Rahul Kumar wrote: > Thanks stefan ! > My question how i ca

Re: [ansible-project] Need help for some logic

2020-04-22 Thread Rahul Kumar
terplaybook.yml understand this and takes all dynamic params from this config file in order to execute the flow. Rahul On Wed, 22 Apr 2020 at 13:12, Stefan Hornburg (Racke) wrote: > On 4/22/20 9:35 AM, Rahul Kumar wrote: > > Hi Ansible Gurus, > > I have below playbook in

[ansible-project] Need help for some logic

2020-04-22 Thread Rahul Kumar
Hi Ansible Gurus, I have below playbook in one git repository: mymasterplaybook.yml - name: Do some test include_role: name: mytestrole tasks_from: test-server-names when: "'testing-group-name' in group_names"` Now I invoke above playbook with a existing role named

Re: [ansible-project] Re: Need some suggestion

2020-04-16 Thread Rahul Kumar
in server is managed through this common project). Hence i need to create some interface between this common project and application specific project , how can i do that ? On Thu, 16 Apr 2020 at 14:00, Stefan Hornburg (Racke) wrote: > On 4/16/20 8:41 AM, Rahul Kumar wrote: > > A

Re: [ansible-project] Re: Need some suggestion

2020-04-16 Thread Rahul Kumar
Any update on this ? Hope this question is still alive and not lost? Rahul On Wed, 15 Apr 2020 at 17:41, Rahul Kumar wrote: > THanks Racke , I would be waiting for same ! > > Rahul > > On Wed, 15 Apr 2020 at 15:08, Stefan Hornburg (Racke) > wrote: > >> On 4/15/20

Re: [ansible-project] Re: Need some suggestion

2020-04-15 Thread Rahul Kumar
THanks Racke , I would be waiting for same ! Rahul On Wed, 15 Apr 2020 at 15:08, Stefan Hornburg (Racke) wrote: > On 4/15/20 11:23 AM, Rahul Kumar wrote: > > Thanks Dick , would you like to suggest some thing on this ? > > > > Rahul > > Your request is rather theore

Re: [ansible-project] Re: Need some suggestion

2020-04-15 Thread Rahul Kumar
Thanks Dick , would you like to suggest some thing on this ? Rahul On Tue, 14 Apr 2020 at 13:31, Dick Visser wrote: > On Tue, 14 Apr 2020 at 07:08, Rahul Kumar wrote: > > > > Guys any help on this ? > > Not yet apparently, but given that this list is run by volunte

[ansible-project] Need help regarding Ansible Role/Playbooks documentation

2020-04-14 Thread Rahul Kumar
Hi Ansible Gurus, I have many Ansible Roles and I want to document each and every variable of role with defaults values and their description and where they make sense? Is there any better way of Documenting Ansible variables because in case roles have many variables it becomes very difficult for

[ansible-project] Re: Need some suggestion

2020-04-13 Thread Rahul Kumar
Guys any help on this ? On Mon, 13 Apr 2020 at 18:38, Rahul Kumar wrote: > Hi Ansible Gurus, > I need some help for some framework designing based on Ansible. I have > many components and i have maintained ansible role for each component > deployment in common project. > Means

[ansible-project] Need some suggestion

2020-04-13 Thread Rahul Kumar
Hi Ansible Gurus, I need some help for some framework designing based on Ansible. I have many components and i have maintained ansible role for each component deployment in common project. Means all components installation/configuration managed by that common project . I wanted to bring a

[ansible-project] Latest version of Ansible

2020-04-08 Thread Rahul Kumar
Hello Ansible Gurus, What is the latest version of Ansible and is it backward compatible ? Where I can find the porting Guide. Is support for RHEL 8 is there in newer Ansible version ? Rahul -- You received this message because you are subscribed to the Google Groups "Ansible Project" group.

Re: [ansible-project] Updating software on cluster nodes without dropping traffic on those nodes

2020-02-10 Thread Rahul Kumar
hat > ansible host(s), whereas "serial" defines the concurrent hosts the tasks > runs against. => serial doesn't limit the affected hosts overall, only the > timely manner. > > Am Montag, 10. Februar 2020 06:09:07 UTC+1 schrieb Rahul Kumar: >> >> Thanks Chiku ,

Re: [ansible-project] Updating software on cluster nodes without dropping traffic on those nodes

2020-02-09 Thread Rahul Kumar
ble-project@googlegroups.com> wrote: > Maybe you can check about serial > > https://docs.ansible.com/ansible/latest/user_guide/playbooks_delegation.html#rolling-update-batch-size > > On 07/02/2020 08:08, Rahul Kumar wrote: > > Hi Ansible Gurus, > > I need some suggestion

[ansible-project] Updating software on cluster nodes without dropping traffic on those nodes

2020-02-06 Thread Rahul Kumar
Hi Ansible Gurus, I need some suggestions for performing online opeations on a cluster. Problem : I have a 5 nodes cluster set up by Ansible . All nodes of cluster carrying some network traffic. Now I want to update application software on each node , so that no traffic is dropped. If I update

Re: [ansible-project] Optimization help

2019-12-11 Thread Rahul Kumar
Ok it will skip and will continue to next item. Right ? On Wed, 11 Dec 2019 at 11:12 PM, Stefan Hornburg (Racke) wrote: > On 12/11/19 6:39 PM, Rahul Kumar wrote: > > > > Thanks vlado! What will happen if let’s say item2conf is not defined ? > > > > It will skip it. &g

Re: [ansible-project] Optimization help

2019-12-11 Thread Rahul Kumar
Thanks vlado! What will happen if let’s say item2conf is not defined ? On Wed, 11 Dec 2019 at 9:47 PM, Vladimir Botka wrote: > Hi Rahul, > > On Wed, 11 Dec 2019 20:03:32 +0530 > Rahul Kumar wrote: > > > Hi Ansible Gurus, > > How can I optimize below code ? b

Re: [ansible-project] Optimization help

2019-12-11 Thread Rahul Kumar
{{ restapi_user }}" password: "{{ restapi_password }}" force_basic_auth: true follow_redirects: all Regards Rahul On Wed, 11 Dec 2019 at 20:35, Stefan Hornburg (Racke) wrote: > On 12/11/19 3:33 PM, Rahul Kumar wrote: > > Hi Ansible Gurus, &g

[ansible-project] Optimization help

2019-12-11 Thread Rahul Kumar
Hi Ansible Gurus, How can I optimize below code ? below is the sufficient code to understand the problem... - name: Application item1Conf provisioning include_tasks: resturlcall.yml with_items: - { name: '{{item1Conf}}', resource: 'item1' } when: item1Conf is defined - name:

[ansible-project] Using ignore_errors : yes in loop

2019-12-09 Thread Rahul Kumar
Hi Dick and Ansible gurus, I want to continue to other items of loop even if any of the item is failed in loop(probably we did not define that item and because of that - item failed, in that case it should continue to remaining items). How can we use ignore_errors:yes which applies to all items in

Re: [ansible-project] Query Regarding REST API integration in Ansible

2019-11-12 Thread Rahul Kumar
just want to convert .json data to .yaml data then you can use the > `to_yaml` filter, ref: > https://docs.ansible.com/ansible/latest/user_guide/playbooks_filters.html#filters-for-formatting-data > > *Regards,* > Sumit Jaiswal > Github/IRC: *justjais* > > On Tue, Nov 12, 201

Re: [ansible-project] Query Regarding REST API integration in Ansible

2019-11-12 Thread Rahul Kumar
> Sumit Jaiswal > Github/IRC: *justjais* > > On 12-Nov-2019, at 4:11 PM, Rahul Kumar wrote: > > Hi dick and all, > Any suggestion on this ?? > > @ Dick > NO ,the uri module does not accept an ansible native format (i.e. YAML > list) for the body parameters: &g

Re: [ansible-project] Query Regarding REST API integration in Ansible

2019-11-12 Thread Rahul Kumar
Hi dick and all, Any suggestion on this ?? @ Dick NO ,the uri module does not accept an ansible native format (i.e. YAML list) for the body parameters: On Tue, 5 Nov 2019 at 15:56, Rahul Kumar wrote: > Hi Dick , > Any suggestion on above query? > > Rahul > > On Mon, 16 Sep 20

Re: [ansible-project] Query Regarding REST API integration in Ansible

2019-11-05 Thread Rahul Kumar
Hi Dick , Any suggestion on above query? Rahul On Mon, 16 Sep 2019 at 17:58, Rahul Kumar wrote: > Thanks Dick! Below is the task: > > - name: application provisionning > uri: > url: http://{{ IP | default(ansible_fqdn) }}:8080/my-config/rest > body_format: json

[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

Re: [ansible-project] Query Regarding REST API integration in Ansible

2019-09-16 Thread Rahul Kumar
xternal JSON file. > > > BTW, keywords like "urgent" tend to not work very well in community > driven support fora. > > > Dick > > On Mon, 16 Sep 2019 at 09:30, Rahul Kumar wrote: > > > > Hi Ansible Gurus, specially Dick Visser and vlado and all e

[ansible-project] Query Regarding REST API integration in Ansible

2019-09-16 Thread Rahul Kumar
Hi Ansible Gurus, specially Dick Visser and vlado and all experts, I have a question regarding Ansible Integration of REST APIs (built in JAVA). Assume I have 100 of Resource End Point( or Service End point) where each Resource can be updated/read/deleted using CURD operation. Also Each resource

Re: [ansible-project] Re: Need Help for REST API integration with Ansible

2019-09-04 Thread Rahul Kumar
? On Tue, 30 Jul 2019 at 15:58, Rahul Kumar wrote: > Thanks abhijeet . > - > https://github.com/ansible/ansible/tree/devel/lib/ansible/plugins/httpapi > - What this plugin does , any usage , as i dont see any readme file also? > or i need to look at its code? > > > Regards &g

Re: [ansible-project] Help for variable defination

2019-08-07 Thread Rahul Kumar
Thanks much sebastian . I will try it out. Rahul On Tue, 6 Aug 2019 at 17:21, Sebastian Meyer wrote: > Hi Rahul, > > On 01.08.19 14:24, Rahul Kumar wrote: > > HI Ansible Gurus, > > I have a specific snippet of code which i defined in default/main.yam

[ansible-project] Re: Help for variable defination

2019-08-06 Thread Rahul Kumar
Any update on this? I need some solution for this ? On Thu, 1 Aug 2019 at 5:54 PM, Rahul Kumar wrote: > HI Ansible Gurus, > I have a specific snippet of code which i defined in default/main.yaml of > a role xyz. > > sw_yum_repositories: > - name: sw > description: Da

Re: [ansible-project] Ansible for openstack

2019-08-05 Thread Rahul Kumar
ross > those providers. > Similarly, because of the different dependencies, destroying resources > was non-trivial, each provider was different. > > Dick > > On Mon, 5 Aug 2019 at 09:49, Rahul Kumar wrote: > > > > Thanks Sebastien . I removed instance. but rest of all

Re: [ansible-project] Ansible for openstack

2019-08-05 Thread Rahul Kumar
test instances On Mon, 5 Aug 2019 at 13:09, Sebastian Meyer wrote: > Hi Rahul, > > everything is connected to the instance, no? You can't deprovision sec > groups, network stuff or key_pairs while they are in use. > > You'll have to remove the instance first. > > Regards > S

[ansible-project] Ansible for openstack

2019-08-05 Thread Rahul Kumar
Hi All, I have provisoned one instance with following order in openstack using Ansible: 1. Download cloud image 2. upload cloud image in Openstack 3. created key pair 4. created network 5. created subnet 6. created router 7. created security group 8. created SG rule 9. created instance and it

[ansible-project] Help for variable defination

2019-08-01 Thread Rahul Kumar
HI Ansible Gurus, I have a specific snippet of code which i defined in default/main.yaml of a role xyz. sw_yum_repositories: - name: sw description: Dangerous sw file: sw-gw baseurl: "" enabled: no gpgcheck: "{{gpgcheckall | default('yes')}}" gpgkey:

Re: [ansible-project] Ansible For Openstack

2019-08-01 Thread Rahul Kumar
e have multiple resources and we want that expected resource is attached to right one. On Thu, 1 Aug 2019 at 16:06, Sebastian Meyer wrote: > Hi Rahul, > > On 01.08.19 12:19, Rahul Kumar wrote: > > 1. whatever resources(net,subnet,sg,router etc) are provisioned as part &g

Re: [ansible-project] Ansible For Openstack

2019-08-01 Thread Rahul Kumar
:37, Sebastian Meyer wrote: > Hi Rahul, > > On 31.07.19 09:36, Rahul Kumar wrote: > > fatal: [localhost]: FAILED! => {"changed": false, "msg": "Cloud mycloud > was > > not found."}. > > Notice clouds.yaml and Main Playbook is in

Re: [ansible-project] Ansible For Openstack

2019-08-01 Thread Rahul Kumar
Thanks dick but now it is complaining clouds is undefined. On Thu, 1 Aug 2019 at 1:50 PM, Dick Visser wrote: > Actually, it's this: > > cloud: "{{ clouds.mycloud }}" > > On Thu, 1 Aug 2019 at 10:03, Rahul Kumar wrote: > > > > sorry to come back Dick. It

Re: [ansible-project] Ansible For Openstack

2019-08-01 Thread Rahul Kumar
ere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n tasks:\n- name: create network\n ^ here\n" Though i defined: cloud: "{{ mycloud }}" On Wed, 31 Jul 2019 at 15:34, Rahul Kumar wrote: > Thanks Dick. It worked, I forgot this by mista

[ansible-project] Ansible for Openstack

2019-07-31 Thread Rahul Kumar
Hi All, I am trying to create complete stack of Openstack as below snippet: os_server: name: "{{ prefix }}-{{ item.name }}" state: present key_name: "{{ item.key }}" availability_zone: "{{ item.availability_zone }}" nics: "{{ item.nics }}" image: "{{ item.image }}"

Re: [ansible-project] Ansible For Openstack

2019-07-31 Thread Rahul Kumar
Thanks Dick. It worked, I forgot this by mistake. On Wed, 31 Jul 2019 at 14:56, Dick Visser wrote: > You are using the literal string 'cloud'. > Change that entry in the os_network task to: > > cloud: "{{ mycloud }}" > > On Wed, 31 Jul 2019 at 09:37, Rahul Kumar

[ansible-project] Ansible For Openstack

2019-07-31 Thread Rahul Kumar
Hi All, I am trying to create Openstack instances using Ansible for Openstack. I have clouds.yaml as below: clouds: mycloud: auth: auth_url: https://:/v3 project_name: mycloud username: mycloud project_domain_name: Default user_domain_name: Default

Re: [ansible-project] Re: Need Help for REST API integration with Ansible

2019-07-30 Thread Rahul Kumar
day, July 23, 2019 at 6:09:06 PM UTC+5:30, Rahul Kumar wrote: >> >> There is URI module present in Ansible which lets you invoke REST End >> Points and it works preety well. >> Currently i have lot of JSON Objects and corresponding REST end points >> ofcourse for

Re: [ansible-project] Re: Need Help for REST API integration with Ansible

2019-07-30 Thread Rahul Kumar
g YAML to make it happen. Check out > https://docs.ansible.com/ansible/latest/dev_guide/developing_plugins.html for > writing this in Python in a way that’s callable from Ansible > > Sent from my iPhone > > On Jul 30, 2019, at 5:37 AM, Rahul Kumar wrote: > > Any experts vie

[ansible-project] Re: Need Help for REST API integration with Ansible

2019-07-30 Thread Rahul Kumar
Any experts view on this ? On Tue, 23 Jul 2019 at 18:08, Rahul Kumar wrote: > There is URI module present in Ansible which lets you invoke REST End > Points and it works preety well. > Currently i have lot of JSON Objects and corresponding REST end points > ofcourse for each. &g

[ansible-project] Ansible Openstack

2019-07-26 Thread Rahul Kumar
Hi Gurus, I am trying to connect to Openstack with Ansible. My question is : Does Ansible provides any thing to connect to Openstack or we have to depend on Openstack Client only.? While installing Openstack client (pip install python-openstackclient )on my RHEL 7.x machine , i am facing some

[ansible-project] Need Help for REST API integration with Ansible

2019-07-23 Thread Rahul Kumar
There is URI module present in Ansible which lets you invoke REST End Points and it works preety well. Currently i have lot of JSON Objects and corresponding REST end points ofcourse for each. Is it a good practice for each and every parameter inside a JSON object (which is model object for REST

Re: [ansible-project] Need Help

2019-07-22 Thread Rahul Kumar
It is there , do I need to use gather facts. Or any other better way ? On Tue, 23 Jul 2019 at 10:32 AM, Dick Visser wrote: > Add ‘localhost’ to your inventory? > > On Tue, 23 Jul 2019 at 06:56, Rahul Kumar wrote: > >> Hi, >> I am trying to take backup of some REST

[ansible-project] Need Help

2019-07-22 Thread Rahul Kumar
Hi, I am trying to take backup of some REST API dump on target nodes . Assume that 3 nodes in cluster and 1 is controller node from where we invoke playbook, I need that backup on controller node as well. I can use modules like copy, fetch etc. but how i will know the hostname or IP dynamically of

Re: [ansible-project] Need Help for Install/Upgrade/Downgrade

2019-07-22 Thread Rahul Kumar
Assume if this can be brought into. Ansible module . Then any way. If u know On Mon, 22 Jul 2019 at 7:29 PM, Stefan Hornburg (Racke) wrote: > On 7/22/19 3:54 PM, Rahul Kumar wrote: > > I am trying to see if this 2 tasks can be optimized or written in single > task . Nothing sp

Re: [ansible-project] Need Help for Install/Upgrade/Downgrade

2019-07-22 Thread Rahul Kumar
I am trying to see if this 2 tasks can be optimized or written in single task . Nothing special , just for redundant purpose. On Mon, 22 Jul 2019 at 19:14, Stefan Hornburg (Racke) wrote: > On 7/22/19 1:04 PM, Rahul Kumar wrote: > > I want to use simple single task for install/upgrade/

[ansible-project] Need Help for Install/Upgrade/Downgrade

2019-07-22 Thread Rahul Kumar
I want to use simple single task for install/upgrade/downgrade . All 3 cases , I want to handle in one task: Currently I use 2 tasks: For Install: - name: Install RPMs yum: name: '{{ rpm_list }}' state: 'latest' enablerepo: '{{ my_repos_names }}' disable_gpg_check: '{{

[ansible-project] Is there any way to use distro-sync (Distribution Synchronization) option of yum inside Yum Ansible Module.?

2019-07-18 Thread Rahul Kumar
Hi , I want below command simulation using Ansible yum module: yum distro-sync --disablerepo='*' --enablerepo='myrepo' I dont think currently yum provides any option called distro-sync. Does that mean i need to use shell module for such command emulation? -- You received this message because

Re: [ansible-project] yum downgrade is not working in Ansible Command module

2019-07-17 Thread Rahul Kumar
ule . i.e if I use -y option , > both rpms will be there in system and task is stuck and i have to manually > terminate. > > How is it possible, 2 version of same rpms on machine and even task is > stuck. > > > > On Wed, 17 Jul 2019 at 12:19, Dick Visser wrote: >

Re: [ansible-project] yum downgrade is not working in Ansible Command module

2019-07-17 Thread Rahul Kumar
gt; On Wed, 17 Jul 2019 at 12:19, Dick Visser wrote: > > Exactly, by doing it manually your environment has different variables > set. > > What happens if you use the shell module instead of command? > > > > On Wed, 17 Jul 2019 at 08:45, Rahul Kumar wrote: > >

Re: [ansible-project] yum downgrade is not working in Ansible Command module

2019-07-17 Thread Rahul Kumar
: > Exactly, by doing it manually your environment has different variables > set. > What happens if you use the shell module instead of command? > > On Wed, 17 Jul 2019 at 08:45, Rahul Kumar wrote: > >> Yes , its custom enterprise specific rpm . But if i do manually (outside >>

Re: [ansible-project] yum downgrade is not working in Ansible Command module

2019-07-17 Thread Rahul Kumar
t’s installation > somehow depends on environment variables being present? > What is the rpmname? > > Dick > > > > On Wed, 17 Jul 2019 at 08:33, Rahul Kumar wrote: > >> Well , I tried again and found some abnormal behaviour. >> Observed once i use -y opt

Re: [ansible-project] yum downgrade is not working in Ansible Command module

2019-07-17 Thread Rahul Kumar
> kind regards > Pshem > > > On Wed, 17 Jul 2019 at 18:18, Rahul Kumar wrote: > >> No -y option also does not work. Well yum downgrade is a valid >> command and working outside Ansible. >> >> On Wed, 17 Jul 2019 at 11:44, Michael Mullay wrote: >> >

[ansible-project] enable_plugin option in Ansible yum module does not work.

2019-07-17 Thread Rahul Kumar
I tried enable_plugin option in Ansible yum module with yum-versionlock plugin for common use case of upgrade/downgrade. But it does not work. How enable_plugin is supposed to be used , which all plugin we can provide here? -- You received this message because you are subscribed to the Google

Re: [ansible-project] yum downgrade is not working in Ansible Command module

2019-07-17 Thread Rahul Kumar
command 'yum downgrade ' manually , it works. On Wednesday, 17 July 2019 11:27:38 UTC+5:30, Dick Visser wrote: > > On Wed, 17 Jul 2019 at 07:36, Rahul Kumar > wrote: > >> I am using Ansible command module to downgrade the package (assuming >> higher version is already i

[ansible-project] yum downgrade is not working in Ansible Command module

2019-07-16 Thread Rahul Kumar
I am using Ansible command module to downgrade the package (assuming higher version is already installed and repo has both lower and higher version). I dont want to use Anisble yum module due to some constraints. I am not able to invoke yum downgrade from command module. -- You received this