[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

[ansible-project] Re: Ansible 5.0.0b1 available for testing

2021-11-09 Thread David Moreau Simard
A mistake in the release announcement for Ansible 5.0.0b1 was brought to my attention: > > * ansible-core-2.12 now requires Python 3.8 or greater on the > controller (where you run ansible-playbook). Managed nodes continue to > support Python 2.7 and Python 3.6 or greater unless noted otherwise

[ansible-project] Ansible 5.0.0b1 available for testing

2021-11-09 Thread David Moreau Simard
Hi all, We're happy to announce that the Ansible 5.0.0 beta1 package is now available! This version is based on the newly released ansible-core 2.12.0 which is a major update from ansible-core 2.11.x used in Ansible 4. There may be backwards incompatibilities in the core playbook language.

Re: [ansible-project] ansible-core 2.12 - changes to "to_nice_yaml" output

2021-11-09 Thread 'Claus Holbech' via Ansible Project
Your points lead me to this article: https://docs.ansible.com/ansible/latest/user_guide/playbooks_filters.html#formatting-data-yaml-and-json Which notes the difference with default width of 80 with pyyaml. I changed the width to 2147483647 on the "to_nice_yaml": - debug: msg: "{{

Re: [ansible-project] ansible-core 2.12 - changes to "to_nice_yaml" output

2021-11-09 Thread 'Claus Holbech' via Ansible Project
Thanks Matt Is there a way I can force Ansible 2.11.x into using the C extension/libyaml variant? On Tuesday, November 9, 2021 at 3:29:24 PM UTC+1 Matt Martz wrote: > The only changes to YAML in 2.12 were to properly prefer the C > extension/libyaml over the pure python implementation. So

Re: [ansible-project] ansible-core 2.12 - changes to "to_nice_yaml" output

2021-11-09 Thread Matt Martz
The only changes to YAML in 2.12 were to properly prefer the C extension/libyaml over the pure python implementation. So it's possible there is some emitter difference between the pyyaml (python) and libyaml (C) implementations. On Tue, Nov 9, 2021 at 4:09 AM 'Claus Holbech' via Ansible

Re: [ansible-project] How to append the new group to the existing AllowGroups line in /etc/ssh/sshd_config

2021-11-09 Thread Suresh Karpurapu
thank you so much Vladimir and Jorge Regards, Suresh On Fri, Oct 29, 2021 at 3:11 AM Vladimir Botka wrote: > On Fri, 29 Oct 2021 01:57:17 +0530 > Suresh Karpurapu wrote: > > > > > # grep AllowGroups /etc/ssh/sshd_config > > > > AllowGroups x y z > > > > > > > > # grep AllowGroups

[ansible-project] ansible-core 2.12 - changes to "to_nice_yaml" output

2021-11-09 Thread 'Claus Holbech' via Ansible Project
We are seeing a small change to the output of "to_nice_yaml" and "to_yaml" when using ansible-core 2.12 versus 2.11.5 and older. The changes are only about escaping for wrapped multi-line strings. If this in on purpose, please let me know how I can get the older ansible versions to produce the