while doing rolling restart of cluster using ansible i want run python script to verify the rebooted came back without any issues. so i'm trying to run the python script passing arguments using ansible. below is the code i'm using it fails
ERROR! this task 'python' has extra params, which is only allowed in the following modules: command, win_command, shell, win_shell, script, include, include_vars, include_tasks, include_role, import_tasks, import_role, add_host, group_by, set_fact, raw, meta
- hosts: tag_name
gather_facts: yes
become: true
serial: 1
tasks:
- name: execute python script
local_action: python script.py -r us-east-1,us-west-2 -n tag -e test -s tag -k "pemfile" -u ec2-user
{}button in the interface. That will format the code properly.