FIX: roles naming style changed
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
---
|
||||
# Remove multiple packages at once
|
||||
- name: Remove unnecessary packages
|
||||
remote_user: ansible
|
||||
when: (ansible_facts['distribution'] == "Debian") or
|
||||
(ansible_facts['distribution'] == "Ubuntu")
|
||||
apt:
|
||||
name:
|
||||
- nano
|
||||
state: absent
|
||||
become: yes
|
||||
|
||||
|
||||
# Clean up all orphaned packages
|
||||
- name: Remove all orphaned dependencies
|
||||
remote_user: ansible
|
||||
when: (ansible_facts['distribution'] == "Debian") or
|
||||
(ansible_facts['distribution'] == "Ubuntu")
|
||||
apt:
|
||||
autoremove: yes
|
||||
purge: yes
|
||||
|
||||
|
||||
- name: Install sudo package on Alpine
|
||||
remote_user: ansible
|
||||
when: (ansible_facts['distribution'] == "Alpine")
|
||||
command: /sbin/apk del nano
|
||||
Reference in New Issue
Block a user