- hosts: localhost tasks: - name: install ansible yum: name=ansible state=latest - name: install ansible-lint pip: name=ansible-lint args: state: latest - name: install some-package package: name: some-package state: latest