Re: [ansible-project] How To Filter Ansible Facts In Template And Playbook

2021-07-28 Thread Dick Visser
What are you looking for exactly? On Wed, 28 Jul 2021 at 20:22, Isaiah Banks wrote: > Hello. I am new to Ansible. I am trying to figure out how I can filter a > list of ansible_facts in a template and playbook and get the information I > directly need. I am trying to do this with json_query() pl

[ansible-project] ansible win_ping fails with 'transport_message': 'Bad HTTP

2021-07-28 Thread Nick Bhanji
I am trying to execute: ansible testing -m win_ping - Output: -fog:~/ansible-playbooks/testing$ ansible testing -m win_ping -v [DEPRECATION WARNING]: Ansible will require Python 3.8 or newer on the controller starting with Ansible 2.12. Current version: 3.6.9 (default, Jan 26 2021, 15:33:

[ansible-project] How To Filter Ansible Facts In Template And Playbook

2021-07-28 Thread Isaiah Banks
Hello. I am new to Ansible. I am trying to figure out how I can filter a list of ansible_facts in a template and playbook and get the information I directly need. I am trying to do this with json_query() plugin. However, when I pass the ansible facts to the json_query() plugin in the playbook,

Re: [ansible-project] Ansible Tower Complex Scheduling

2021-07-28 Thread Donnie Larson
Thanks, I have moved that conversation over. On Wednesday, July 28, 2021 at 9:27:20 AM UTC-5 dick@geant.org wrote: > No, but on the dedicated awx-project mailing list someone might do > (this is the ansible-project list). > > On Wed, 28 Jul 2021 at 15:59, Donnie Larson wrote: > > > > Does a

Re: [ansible-project] Ansible Tower Complex Scheduling

2021-07-28 Thread Dick Visser
No, but on the dedicated awx-project mailing list someone might do (this is the ansible-project list). On Wed, 28 Jul 2021 at 15:59, Donnie Larson wrote: > > Does anyone know how to deal with schedules that are fairly complex? for > example 2nd Saturday after 1st Tuesday? Or we even have one tha

[ansible-project] Ansible Tower Complex Scheduling

2021-07-28 Thread Donnie Larson
Does anyone know how to deal with schedules that are fairly complex? for example 2nd Saturday after 1st Tuesday? Or we even have one that is 9 days after 1st Tuesday. Thanks -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe fr

Re: [ansible-project] Unexpected behavior with cron

2021-07-28 Thread Matt Martz
You appear to be running the devel version of ansible-core, the unreleased 2.12. That change has not been included in a published version yet. So the docs will appear at https://docs.ansible.com/ansible-core/devel/collections/ansible/builtin/cron_module.html The documentation reads: > The assum

[ansible-project] Unexpected behavior with cron

2021-07-28 Thread Michael van Santen
Hey folks, we recently performed an Upgrade of Ansible, or to be more specific an upgrade of AWX. We went from AWX 17 to AWX 19.2.0 which also updated the Ansible version After the Upgrade we get the following fatal error for every job about configuring cron: "Will not manage /etc/crontab via cro

Re: [ansible-project] Stop execution on hosts with errors, keep running on hosts where it's fine?

2021-07-28 Thread Vladimir Botka
On Wed, 28 Jul 2021 02:22:03 -0700 (PDT) Mihail T wrote: > stop playbook execution on hosts that faced errors Try block/rescue - block: - command: "cmd_that_may_fail" rescue: - meta: end_host -- Vladimir Botka -- You received this message because you are subscribed to the

[ansible-project] Stop execution on hosts with errors, keep running on hosts where it's fine?

2021-07-28 Thread Mihail T
Hi. How do I make it so Ansible runs on multiple hosts simultaneously, without waiting for all hosts' play finish, but allow them to also keep running plays if a task failed on one or several hosts? The idea is to stop playbook execution on hosts that faced errors but in a way that it wouldn't