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