Member-only story

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!

Luca Berton
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

--

--

Luca Berton
Luca Berton

Written by Luca Berton

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

No responses yet