Member-only story
Ansible troubleshooting — missing module parameter
How to reproduce the `missing module parameter` error of the Ansible module file, troubleshooting, and fix to be able to successfully create a symlink in Linux.
15 min readNov 16, 2021
Today we’re going to talk about Ansible troubleshooting, specifically about Invalid argument errors.
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!
- invalidargument_error.yml
---
- name: file module demo
hosts: all
vars:
mylink: "~/example"
mysrc: "/proc/cpuinfo"
tasks:
- name: Creating a symlink
ansible.builtin.file:
path: "{{ mylink }}"
dest: "{{ mysrc }}"
state: link
execution
$ ansible-playbook -i virtualmachines/demo/inventory troubleshooting/invalidargument_error.ymlPLAY [file module demo] ********************************************************