- hosts: [{{host}}] sudo: yes tasks: - file: path={{modules_path}} state=absent - file: path={{modules_path}}/../Puppetfile state=absent - shell: gem uninstall librarian-puppet