--- - name: Remove Packages hosts: zapp2 gather_facts: no become: yes tasks: - name: Install terminator apt: pkg: terminator state: absent
ansible-playbook install_packages.yaml --ask-become-pass
Ansible - Remove Packages in Ubuntu with playbook
原文:https://www.cnblogs.com/zhangzhihui/p/14074158.html