update: pkg.uptodate: - refresh: True {% if grains['os_family'] == 'Arch' %} clear_pkg_cache: cmd.run: - name: "pacman -Sc --noconfirm" {% endif %}