I’m working on an NTP Install/Configure Project. I have a main.yaml file, a ntp.yaml playbook and 4 tasks (debian-ntp.yaml, redhat-ntp.yaml, sles-ntp.yaml, ubuntu-ntp.yaml). I can’t seem to get this to work.
RedHat, Debian, SLES… returned by ansible_distribution all have capitals somewhere in the naming, as you can see in the error message. My files are all lowercase. I have checked and there are no capitals in my naming.
In my playbook include_tasks: "{{ ansible_distribution }}-ntp.yaml" is the reason for the error. Either I can fix my file names to match mixed case returned by the variable or turn everything to lower case with the lower filter as it is done elsewhere in my tasks files. I don’t know how to do either of these! I’ve tried with the lower filter but I still get the same error. I don’t know how to use the match mixed case. Can someone please help?