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!
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