Skip to content

Commit

Permalink
Fix warnings in cleanup role execution
Browse files Browse the repository at this point in the history
  • Loading branch information
martignoni committed Jul 24, 2023
1 parent a07c122 commit 8636335
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions roles/cleanup/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,18 @@
name: 'dnsmasq'
state: 'stopped'

- name: Cleanup DHCP leases
- name: Delete files
ansible.builtin.file:
path: '/var/lib/misc/dnsmasq.leases'
path: '{{ item }}'
state: 'absent'
with_items:
- '/var/lib/misc/dnsmasq.leases'
- '/root/.bash_history'
- '/root/.mysql_history'
- '/root/.nano_history'
- '/root/.gitconfig'

- name: Cleanup dirs and files
- name: Cleanup dirs
ansible.builtin.include_tasks: cleandirfile.yml
with_items:
- '{{ moodlebox_moodle_data_dir }}/cache/cachestore_file'
Expand All @@ -51,9 +57,6 @@
- '/var/cache/debconf/'
- '/tmp/'
- '/var/tmp/'
- '/root/.bash_history'
- '/root/.mysql_history'
- '/root/.nano_history'

- name: Find log files to truncate
ansible.builtin.find:
Expand Down

0 comments on commit 8636335

Please sign in to comment.