mirror of
https://github.com/ben-grande/qusal.git
synced 2024-12-18 04:14:33 -05:00
18 lines
507 B
Plaintext
18 lines
507 B
Plaintext
|
{#
|
||
|
SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||
|
|
||
|
SPDX-License-Identifier: AGPL-3.0-or-later
|
||
|
#}
|
||
|
|
||
|
{% if grains['nodename'] != 'dom0' -%}
|
||
|
{% for unused_dir in ['Desktop','Documents','Downloads','Music','Pictures','Public','Templates','Videos'] -%}
|
||
|
|
||
|
{% set full_unused_dir = '/home/user/' ~ unused_dir -%}
|
||
|
"remove-{{ full_unused_dir }}":
|
||
|
file.absent:
|
||
|
- name: {{ full_unused_dir }}
|
||
|
- onlyif: test -z "$(ls -A {{ full_unused_dir }})"
|
||
|
|
||
|
{% endfor -%}
|
||
|
{% endif -%}
|