Ansible troubleshooting — missing module parameter

The best way of talking about Ansible troubleshooting is to jump in a live demo to show you practically the missing module parameter and how to solve it!

Ansible Pilot
3 min readSep 9, 2021

--

Today we’re going to talk about Ansible troubleshooting, specifically about missing module parameters.

I’m Luca Berton and welcome to today’s episode of Ansible Pilot.

demo

The best way of talking about Ansible troubleshooting is to jump in a live demo to show you practically the missing module parameter and how to solve it!

  • missingparam_error.yml
---
- name: service module demo
hosts: all
become: true
tasks:
- name: sshd restart
ansible.builtin.service:
nme: sshd
state: restarted
enabled: true
  • missingparam_fix.yml
---
- name: service module demo
hosts: all
become: true
tasks:
- name: sshd restart
ansible.builtin.service:
name: sshd
state: restarted
enabled: true

Recap

Now you know better how to troubleshoot the most common Ansible error about missing module parameters.

Subscribe to the YouTube channel, Medium, and Website to not miss the next episode of the Ansible Pilot.

Video Course

Printed Book

eBooks

--

--

Ansible Pilot

I help creative Automation DevOps, Cloud Engineer, System Administrator, and IT Professional to succeed with Ansible Technology to automate more things everyday

Recommended from Medium

Lists

See more recommendations