Cleanup user, then report user's free space.
Then cleanup root, then report root's free space.
Necessary to not clobber user's data with root's.
user: phd
when: user_cache_exists.stat.exists
+- name: du ~phd/.cache/pip
+ import_tasks: show-user.yml
+ vars:
+ user: phd
+ when: user_cache_exists.stat.exists
+
- name: Cleanup ~root/.cache/pip
import_tasks: cleanup-user.yml
vars:
user: root
when: root_cache_exists.stat.exists
-- name: du ~phd/.cache/pip
- import_tasks: show-user.yml
- vars:
- user: phd
- when: user_cache_exists.stat.exists
-
- name: du ~root/.cache/pip
import_tasks: show-user.yml
vars: