[ansible-project] How to answer to prompt in configuration mode Cisco switch

2021-07-10 Thread mana maghrebi
Hi all, I want to configure Radius do1x in 2960 cisco switch with ansible. As soon as I run command aaa accounting identity default start-stop group, a prompt pops up saying: This operation will permanently convert all relevant authentication commands to their CPL control-policy equivalents.

Re: [ansible-project] how to use register as a key in yaml?

2021-07-10 Thread 黄政
thank everyone and json I have solve it by as following # https://www.haiyun.me/archives/1280.html # https://github.com/mrlesmithjr/ansible-netplan/issues/17 - hosts: ubuntu # # ip a|grep -E ': enp'|awk -F ':' '{print $2}'|awk '{print $1}' # # iw dev|grep Interface|awk '{print $2}'

Re: [ansible-project] Re: Getting Error while running playbook "msg": "[Errno None] Unable to connect to port 22

2021-07-10 Thread subrat mangaraj
Hi, Can someone guide On Fri, 25 Jun 2021, 23:26 subrat mangaraj, wrote: > Hi > Can someone guide. > > On Thu, 24 Jun 2021, 10:14 subrat mangaraj, > wrote: > >> Hello All, >> >> Can someone guide. >> >> On Mon, Jun 21, 2021 at 3:36 PM subrat mangaraj < >> subrat.manga...@gmail.com> wrote: >>

Re: [ansible-project] how to use register as a key in yaml?

2021-07-10 Thread Vladimir Botka
On Fri, 9 Jul 2021 22:56:41 -0700 (PDT) 黄政 wrote: > - name: Include the mrlesmithjr.netplan role >include_role: >vars: > "{{netplan_ssid}}": > password: "{{netplan_password}}" > test: "{{netplan_ssid}}" > > result > access-points: > '{{netplan_ssid}}': >

Re: [ansible-project] how to use register as a key in yaml?

2021-07-10 Thread Abhijeet Kasurde
I would recommend you to come up with a data structure like - vars: my_data: - name: "{{netplan_ssid}}" password: "ChinaNet-2403" test: "ChinaNet-2403" On Sat, Jul 10, 2021 at 11:26 AM 黄政 wrote: > ansible --version > > ansible [core 2.11.1] > - > - name: Include