[ansible-project] Cisco smartport macros

2020-07-23 Thread berti
Hi, I've tried to configure Cisco smartport macros via ansible mit ios_config/cli_config. Both failed with an timeout. It looks like this on the serial console: TN_00sw03(config)#macro auto execute TEST1_CISCO_SWITCH { {..} > if [[ $LINKUP == YES ]] then.else.fi> then then.else.fi> conf

[ansible-project] Cisco Smartport Macros

2020-07-23 Thread berti
Hi, I've tried to configure Cisco smartport macros via ansible mit ios_config/cli_config. Both failed with an timeout. It looks like this on the serial console: TN_lra00sw03(config)#macro auto execute TEST1_LRA_CISCO_SWITCH { {..} > if [[ $LINKUP == YES ]] then.else.fi> then

[ansible-project] Re: Ansible for Cisco switchport interface and 802.1x config

2020-07-23 Thread heinz6...@gmail.com
Hi, you need the cisco_ios module with a jinja template. Waqas Gondal schrieb am Mittwoch, 22. Juli 2020 um 19:58:19 UTC+2: > Hi > > > > I am working on putting Cisco ISE into enforcement mode on production > Cisco switches for 802.1x wired authentication. > > > > Currently the access

[ansible-project] Need some help with netconf

2020-07-23 Thread Dávid Kovács
Hi all! I already asked this question on irc, but I'm pretty sure it's just gonna get lost there without any real reply, so I'll try here too. I'm trying to configure a node through netconf, passing xmls through ssh (with the -s netconf option) works perfectly, however when I do it from

Re: [ansible-project] setting up a new system with Ansible

2020-07-23 Thread Gildas Cotomale
Le mercredi 22 juillet 2020 21:37:03 UTC+2, John Petro a écrit : > > That is pretty close to what I am doing. The only thing I want to do > differently, is that I want to lock the automation account, so that it's > only accepted from a specific host. ( ie. the ansible control node) > > Just

[ansible-project] Re: setting up a new system with Ansible

2020-07-23 Thread Gildas Cotomale
Le mercredi 22 juillet 2020 03:22:34 UTC+2, Ed Wong a écrit : > > Here is where i"m a tad bit confused in what I need to do and if someone > can clarify things, I'd be appreciated. > > Is the following process correct? > Yes Ed, the steps you've listed are fine. > > 1) Log on to Alpha and

[ansible-project] Help on FortiGate 3000D Load balancer

2020-07-23 Thread Gajendra Gaikwad
Hello Team, I want to execute stat system command on FortiGate 3000D Load balancer so could help me what connection method should i used./ how i can execute this command Thank in Advance Regards, GG -- You received this message because you are subscribed to the Google Groups "Ansible

[ansible-project] Re: setting up a new system with Ansible

2020-07-23 Thread Ed Wong
Hi Gildas, Thanks for the info. Much appreciated. Ed -- 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

[ansible-project] host file doesn't read variable for windows

2020-07-23 Thread Work-Hard
Hello, my host file for ansible is not reading additional variables. Following is my *host file:* [ubuntu] [amazonlinux2] [database] [windows] [windows:vars] ansible_connection = winrm ansible_ssh_port = 5986 ansible_winrm_transport = kerberos ansible_winrm_server_cert_validation = ignore

[ansible-project] Remote execution via jumpserver asa_config

2020-07-23 Thread sajal tiwari
Hello, I am executing a simple ansible playbook using asa_config module on a ASA via a Centos Jumpserver but i am getting below error. The full traceback is: Traceback (most recent call last): File "/root/.ansible/tmp/ansible-tmp-1595520658.91-31174-97593380815349/AnsiballZ_asa_config.py" ,

Re: [ansible-project] setting up a new system with Ansible

2020-07-23 Thread John Petro
Oh, that's a good idea, thanks for the suggestion. I hadn't thought about that one On Thu, Jul 23, 2020, 2:53 AM Gildas Cotomale wrote: > > > Le mercredi 22 juillet 2020 21:37:03 UTC+2, John Petro a écrit : >> >> That is pretty close to what I am doing. The only thing I want to do >>

Re: [ansible-project] Remote execution via jumpserver asa_config

2020-07-23 Thread Dick Visser
So the only difference is the jumphost? Ie it works with one jumphost and it doesn't with another? On Thu, 23 Jul 2020 at 18:18, sajal tiwari wrote: > Hello, > I am executing a simple ansible playbook using asa_config module on a ASA > via a Centos Jumpserver but i am getting below error. > >

[ansible-project] Can playbook tag input be placed in group_var?

2020-07-23 Thread Gerry Maddock
If I'm running a playbook that has tags, can I place the tag information be placed in the group_vars? That way if I run a playbook against against an ansible group with children, the children could have different tags for use in the playbook? -- You received this message because you are

[ansible-project] Ansible unsupported Netscaler module

2020-07-23 Thread Josue Arroyo
Hello, I have the following playbook to create GLSBs for Netscaler devices using Ansible: - hosts: netscaler gather_facts: False vars: state: present gslb: name: test_gslb vserver: - port: '80' description: 'Generic service running on 80' type: 'HTTP' method: 'ROUNDROBIN' backupLBMethod:

Re: [ansible-project] Remote execution via jumpserver asa_config

2020-07-23 Thread sajal tiwari
No the jumpserver is same only difference is playbook is linux playbook is working but asa playbook is not working. On Thursday, July 23, 2020 at 10:35:31 PM UTC+5:30, Dick Visser wrote: > > So the only difference is the jumphost? > Ie it works with one jumphost and it doesn't with another? > >

[ansible-project] Re: Ansible Remote Versioning

2020-07-23 Thread Phil Griffiths
Hi Firesh You are in danger of re-inventing the wheel here. As Jean-Yves points out, you are starting to negate the whole point of Ansibles idempotency. You write something once and no matter how many times you run it, it checks and only makes changes as necessary. Writing a timestamp to

[ansible-project] Re: Playboox only runs the second time

2020-07-23 Thread Phil Griffiths
Hi Robert This doesn't make a whole lot of sense why this would fail and then work. Definitely being applied to the SAME host on each run? I suggest you post your whole playbook(s) here as there's something else going on outside the mentioned failing task I suspect. As a good measure I would

Re: [ansible-project] Remote execution via jumpserver asa_config

2020-07-23 Thread Dick Visser
You only posted one playbook initially, Which I think is the "asa playbook". But now you mention a second "linux playbook". What does that look like? Is it very similar? Logically, if one playbook "doesn't work", and a different one does, then you've not proven much. But instead of going over

Re: [ansible-project] How to verify col C is always double of Col D in ansible.

2020-07-23 Thread Jenisha T
Its the output of lsvg -l rootvg used in AIX server On Tuesday, 21 July 2020 at 19:58:19 UTC+5:30 brae...@gmail.com wrote: > On 7/21/20 4:20 PM, T. JENISHA wrote: > > > > Hi Team > > > > My register variable output > > > > verify_pp.png > > > > > > Need to verify in all rows (unknown how

[ansible-project] cp_mgmt_run_script module

2020-07-23 Thread Simon Macpherson
Hello All, I have a playbook that is using the cp_mgmt_run_script module. The following error is returned when the playbook is run. TASK [run-script] fatal: [10.1.2.51]:

[ansible-project] Re: host file doesn't read variable for windows

2020-07-23 Thread jbor...@gmail.com
1. You have a typo when you specify kerberos auth, it should be 'ansible_winrm_transport' but you have 'anisble_winrm_transport' 2. validate_certs: false doesn't affect WinRM cert validation, that's just a standard var 3. You shouldn't have to set

Re: [ansible-project] Help on FortiGate 3000D Load balancer

2020-07-23 Thread Gajendra Gaikwad
Hello anyone call help on this On Thu, 23 Jul 2020, 14:17 Gajendra Gaikwad, wrote: > Hello Team, > I want to execute stat system command on FortiGate 3000D Load balancer so > could help me what connection method should i used./ how i can execute this > command > > > Thank in Advance > >

Re: [ansible-project] Creating users in VCD Unsupported API version

2020-07-23 Thread Nagesh sheregar
Hi Abhi, python isue resolved but i am gettig below error, even i am providing right password: TASK [vcd : VCD USER creation]

Re: [ansible-project] Re: Working around lookup plugin limitation with environment variables

2020-07-23 Thread Nicolas Houillon
Thanks Dick, what do you mean in one play and another ? yes I d like to reuse the environment in different plays(roles) which will also make sts to be used in all subsequent tasks/roles yes. *Nicolas Houillon - houillo...@gmail.com **514 224 9930* Le mer. 22 juil. 2020 à 21:28, Dick Visser a

Re: [ansible-project] Can playbook tag input be placed in group_var?

2020-07-23 Thread Gerry Maddock
Thanks Vladimir On Thu, Jul 23, 2020 at 3:57 PM Vladimir Botka wrote: > On Thu, 23 Jul 2020 21:36:08 +0200 > Jean-Yves LENHOF wrote: > > > I think you should be asking what you want to do more clearly (Perhaps > > with a little playbook to be completed) instead of trying some obscured > >