refactor ansible code in to ansible-2.0 folder, and created space for ansible-2.10
This commit is contained in:
18
ansible-2.0/roles/cleanup/tasks/main.yml
Normal file
18
ansible-2.0/roles/cleanup/tasks/main.yml
Normal file
@@ -0,0 +1,18 @@
|
||||
---
|
||||
# cleanup/tasks/main.yml
|
||||
# removes packages and cron jobs
|
||||
|
||||
|
||||
- name: remove packages
|
||||
apt:
|
||||
state: absent
|
||||
name: "{{item}}"
|
||||
update_cache: yes
|
||||
with_items: "{{ cleanup.packages }}"
|
||||
|
||||
- name: remove cronjob
|
||||
cron:
|
||||
state: absent
|
||||
name: "{{ item.name }}"
|
||||
cron_file: "{{ item.file }}"
|
||||
with_items: "{{ cleanup.cron }}"
|
||||
Reference in New Issue
Block a user