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
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
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 "{{
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
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
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
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
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,
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
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.
10 matches
Mail list logo