When I tried to use it I'm getting error:
FAILED! => {"failed": true, "reason": "ERROR! this task 'serialize' has
> extra params, which is only allowed in the following modules: command,
> shell, script, include, include_vars, add_host, group_by, set_fact, raw
> , meta\n\nThe error appears to ha
Combining some ideas here, I wrote a small action plugin -- very lightly
tested.
import fcntl
class ActionModule(object):
def __init__(self, runner):
self.runner = runner
def run(self, conn, tmp, module_name, module_args, inject,
complex_args=None, **kwargs):
lock
Michael's recommendation of putting multiple plays in a playbook worked
great for me.
I ran a test and saw that all variables carry over between plays, so that
if you do a lot of work to set up state, you don't lose that when you
switch to a new play in the middle of a playbook.
Here is an ex
As this post is stilled in top of google search let me describe one more
way for a single task that should not be done simultaneously on multiple
servers:
- hosts: all
tasks:
- name: set fact
set_fact:
marker: marker
- name: group by marker
group_by: key=
Hello,
Not sure if this still interest everyone, but the way I found to make is
work is just like Michael explained. This is an example for future
reference:
---
# This playbook upgrades a the social cluster to DSE 4.0.4
# Apply common configuration to all hosts
- hosts: all
gather_facts: n