[ansible-project] how to handle prompts in aruba_command module

2023-03-21 Thread Akshay Jadhav
Hi,
i want to copy os image from tftp server to aruba switch . when i tried 
manually its asking for prompt Continue(y/n)? How to handle this prompt in 
ansible playbook task for aruba switches.
Thanks in advance.

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/c82f911b-c48c-4bae-ba6c-054e970fedcbn%40googlegroups.com.


[ansible-project] How to Gather facts for Aruba network devices in ansible

2023-02-09 Thread Akshay Jadhav
Hi,
Please help me to gather_facts for Aruba switches for cisco I am able 
collect facts but its not working for aruba.
So please guide me for collection of aruba devices facts using ansible.
Thanks

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/dbf3a524-f10c-4140-8d7a-42a02ea12236n%40googlegroups.com.


[ansible-project] Ansible command not found error for user other than root user

2023-02-03 Thread Akshay Jadhav
Hi,
we are getting "Ansible command not found error" for user other than root 
user. Already sudo access is granted for that user still getting "-bash: 
ansible: command not found". Please help to troubleshoot this. Thank you in 
advance.

 

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/384c3a17-8968-4e38-8382-7c574c051ab8n%40googlegroups.com.


[ansible-project] Use of ansible module input parameters in subsequent tasks

2022-07-11 Thread Akshay Jadhav


Hi,

I want to use region attribute from below task for subsequent task but that 
attribute is not a part of output , so how I can use it next tasks.
- name: get aws vpc details 
  ec2_vpc_net_info: 
  aws_access_key: ## 
  aws_secret_key: # 
  region: us-east-1 
  register: aws_output 

Region is input to the given module so I want to print that region. Please 
guide me how to print region its not a part of register. Thank you.

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/33d5febb-bfcf-4a4f-8046-e38b45ca04c6n%40googlegroups.com.


[ansible-project] Ansible and Gns3 Connection

2022-04-12 Thread Akshay Jadhav
Hi Guys,
As we are trying to develop network lab so do we need to do any set up for 
ansible and Gns3 communication. If yes then please provide some links or 
documents which I can refer for connection.
Thanks in Advance.

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/be277cc2-1641-4b14-a4f5-5a1f2498a0abn%40googlegroups.com.


[ansible-project] Mail using Ansible

2022-03-09 Thread Akshay Jadhav
Hi Guys,
I have written a play for sending an email.
 I am able to send an email but in receivers inbox it's going into spam 
folder. Can someone please help so that mail will go in inbox.
Thanks in advance.

- name: Mail sending Using mail Module mail: host: localhost port: 25 to: 
x...@example.com subject: Ansible Port Configuration Output body:  {{ 
lookup('file', "./output/{{ inventory_hostname }}.txt") }}  
delegate_to: localhost

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/0271ddb2-e27b-4c1b-92d4-78993716f5ddn%40googlegroups.com.


[ansible-project] fetch specific lines from file

2022-02-28 Thread Akshay Jadhav
Hi Guys,
I want to fetch only few lines from "show version" output . I have attached 
image of required output can someone please help how to fetch these line 
because line no. is not fix. Thank you in advance.[image: Capture11.PNG]

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/396f75f4-2ae7-464e-9e20-edbac2a64a9an%40googlegroups.com.


[ansible-project] servicenow incident update and close using ansible

2022-02-22 Thread Akshay Jadhav
Hi Guys,
Does anyone has any sample playbook for snow incident update and close(end 
to end automation for device reboot incident).As I am new to API part can 
someone please suggest how to fetch new incident from snow dashboard for 
"Node reboot alert" as a short description for incident. Thanks in advance.

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/8701cf38-6784-4554-b918-3cf3f649a44an%40googlegroups.com.


[ansible-project] To Display line{5-10} from file

2022-02-16 Thread Akshay Jadhav
Hi Guys,
can someone please tell how to display line 5 to line 10 from the 
registered file.
Thanks in advance.

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/24142039-a1d3-4ba0-8b19-05be76167ba1n%40googlegroups.com.


[ansible-project] Connection to windows hosts via ansible

2022-02-06 Thread Akshay Jadhav
Hi Guys,
Do we need to do any set up on windows host to connect via ansible winrm 
module or is it by default enabled .Thanks in advance.

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/d837bef3-3d44-4982-90b5-1e08842aa286n%40googlegroups.com.


[ansible-project] Ansible playbook for DNS addition for windows servers

2022-01-19 Thread Akshay Jadhav
Hi Guys,
Please help me for windows dns addition playbook for adding A record, PTR 
record and Cname record. If anyone had any sample playbook that will be 
helpful.
Thank you in advance.

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/0ead5604-b78a-490e-93e1-1382ed7bdcf9n%40googlegroups.com.


Re: [ansible-project] Switch Interface UP then playbook should end with error msg

2021-12-23 Thread Akshay Jadhav

   - name: show message if interface is not down
 fail:
  msg: "Interface is not down"
 when: {{ interface }}.operstatus == "up"
 
will this work?
On Thursday, 23 December 2021 at 12:22:41 UTC+5:30 dick@geant.org wrote:

> What does your playbook look like?
>
> On Thu, 23 Dec 2021 at 07:49, Akshay Jadhav  wrote:
>
>> Hi all,
>> I need a help from you guys for writing a play if Switch Interface UP 
>> then playbook should end with error msg using when condition. I am kind of 
>> new to ansible. So please help me out for writing this task.
>> Thank you in advance.
>>
>> -- 
>> 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-proje...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/ansible-project/b481d0ff-1160-4307-9e2d-3e1433079a02n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/ansible-project/b481d0ff-1160-4307-9e2d-3e1433079a02n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
> -- 
> Sent from a mobile device - please excuse the brevity, spelling and 
> punctuation.
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/1edeb012-822f-49a9-a58a-b6084ba583f1n%40googlegroups.com.


[ansible-project] Switch Interface UP then playbook should end with error msg

2021-12-22 Thread Akshay Jadhav
Hi all,
I need a help from you guys for writing a play if Switch Interface UP then 
playbook should end with error msg using when condition. I am kind of new 
to ansible. So please help me out for writing this task.
Thank you in advance.

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/b481d0ff-1160-4307-9e2d-3e1433079a02n%40googlegroups.com.


[ansible-project] Regarding Stopping Execution if condition met

2021-11-09 Thread Akshay Jadhav
Hi Guys,
I want to add a condition to stop execution of playbook if "vlan not 
found". I am attaching my playbook tasks below:

  - name: check vlan availability
ios_command:
  commands:
- show vlan id {{ vlan1 }}
register: precheck

  - name: check voice_vlan availability
ios_command:
  commands:
- show vlan id {{ vlan2 }}
register: precheck_voice_vlan

  - name: L2 Vlan1 Availability Check
debug:
  msg: "Vlan not present in the switch"
when: "'not found' in precheck"

  - name: L2 Vlan2 Availability Check
debug:
  msg: "Vlan not present in the switch"
when: "'not found' in precheck_voice_vlan"

===here I want stop playbook execution if vlan not found

  - name: get interface status from the device
ios_command:
  commands:
- show run int {{ interface }} | i trunk
register: precheck_int

if Vlan not found in precheck I want to stop further execution .Please help 
me for this.

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/24f04a37-291f-418d-8916-c5fd8c8c79b7n%40googlegroups.com.


[ansible-project] CSV to XML file converter playbook

2021-09-29 Thread Akshay Jadhav
Hi all,
Can we create a playbook for csv to xml converter. If anyone has any sample 
playbook that will be great help.

Thanks & Regards,
Akshay Jadhav

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/a946073b-4204-4451-a055-1055fd06eff4n%40googlegroups.com.