--- - name: Install yamllint for Debian based systems become: true ansible.builtin.apt: name: - yamllint state: present when: ansible_facts.os_family == 'Debian' - name: Install yamllint for MacOS community.general.homebrew: name: - yamllint state: present when: ansible_facts.distribution == 'MacOSX' - name: Install yamllint for Centos / Fedora block: - name: Enable Epel ansible.builtin.import_tasks: enable-epel.yml - name: Install yamllint become: true ansible.builtin.dnf: name: yamllint state: present when: ansible_facts.os_family == 'RedHat' - name: Install yamllint for MacOS community.general.homebrew: name: yamllint state: present when: ansible_facts.distribution == 'MacOSX' - name: Install yamllint for Arch become: true community.general.pacman: name: yamllint state: present when: ansible_facts.distribution == 'Archlinux'