ansible-lint command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
ansible-lint: command not found
or when using sudo you get the following error message
sudo: ansible-lint: command not found
Solutions to ansible-lint: command not found
How To Fix ansible-lint: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu ansible-lint is provided by ansible-lint package.
ansible-lint is:
Ansible playbooks express configuration, deployment and orchestration in YAML format. They can describe a policy you want your remote systems to enforce, or a set of steps in a general IT process.
ansible-lint checks Ansible playbooks for practices and behaviour that could potentially be improved.
To fix this problem, we can install more using the command below.
sudo apt-get -y install ansible-lint
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install ansible-lint.
sudo apt -y install ansible-lint
Or if you have aptitude installed you can use the following command.
sudo aptitude install ansible-lint
Summary
In this tutorial we learn how to fix ansible-lint command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.