Re: [ansible-project] Multipathd is not enabling

2023-10-17 Thread dulhaver via Ansible Project
hi, the syntax of your TASK sems not to match the docs for the service module https://docs.ansible.com/ansible/latest/collections/ansible/builtin/service_module.html#ansible-collections-ansible-builtin-service-module. Would something like ... - name: Enable service httpd, and not touch the

[ansible-project] Multipathd is not enabling

2023-10-17 Thread Prady A
Hi All.. I ve a very 2 very basic task of enabling multipath. The 2 task is failing since the first one is not enabling. But in ansible job it is showing as changed but when I checked multipath service in system it is showing as Below: Active: inactive(dead) Condition: start condition failed

Re: [ansible-project] mitogen and playbook_name

2023-10-17 Thread 'Philippe Kueck' via Ansible Project
You need to name the playbook: --- - name: "your playbook name goes here" hosts: yourhostlist tasks: - debug: msg: > {{ansible_play_name}} should print "your playbook name goes here" ... On 17.10.23 19:34, Kathy Lyons wrote: When I print out "{{

Re: [ansible-project] mitogen and playbook_name

2023-10-17 Thread Kathy Lyons
When I print out "{{ ansible_play_name }}" I simply get "localhost." On Tue, Oct 17, 2023 at 12:18 PM 'Philippe Kueck' via Ansible Project < ansible-project@googlegroups.com> wrote: > Hi, > > On 17.10.23 18:13, Kathy Lyons wrote: > > We use it in many instances to only do something for a

[ansible-project] Voicing my concerns with passlib (security) and its larger adoption by Ansible

2023-10-17 Thread Thibaut Barrère
Hello, While doing Ansible maintenance work, I discovered that the passlib library used by Ansible (currently only for Mac users) has not seen any release in 3 years. I am a bit concerned about how interesting it would be as an attack target (especially since it encrypts passwords), e.g. Pypi

Re: [ansible-project] mitogen and playbook_name

2023-10-17 Thread 'Philippe Kueck' via Ansible Project
Hi, On 17.10.23 18:13, Kathy Lyons wrote: We use it in many instances to only do something for a specific playbook.  We have about 5 playbooks that work on different networks and rather than maintain 5 different playbooks we use the "when playbook_name == abc.yml" a lot. Is there another way

Re: [ansible-project] mitogen and playbook_name

2023-10-17 Thread Kathy Lyons
We use it in many instances to only do something for a specific playbook. We have about 5 playbooks that work on different networks and rather than maintain 5 different playbooks we use the "when playbook_name == abc.yml" a lot. Is there another way to get the playbook name? On Tue, Oct 17, 2023

[ansible-project] Release announcement : Ansible Community Package 9.0.0a3 (Pre Release)

2023-10-17 Thread Anwesha Das
Hello everyone, We're happy to announce the Alpha release of Ansible 9.0.0a3! This pre-release version contains the latest version of ansible-core 2.16 and includes a curated set of Ansible collections that provides a vast number of modules and plugins. ansible-core is a required dependency,

Re: [ansible-project] mitogen and playbook_name

2023-10-17 Thread Dick Visser
My initial reaction would be: this looks like a workaround for something that does not exist, probably for a reason. And then you add mitogen to the mix, which is notorious for pushing the limits with many things. What is the use case for this playbook_name variable? Sent from Gmail Mobile

[ansible-project] mitogen and playbook_name

2023-10-17 Thread Kathy L
In the beginning of the playbook, I calculate the playbook_name this way: playbook_name: "{{ lookup('file', '/proc/self/cmdline') | regex_replace('\u', ' ').split() | select match('match', '^[a-zA-Z-_/0-9]*[.]y[a]*ml') | list|first|basename }}" This works in a typical, ssh playbook run.