How to execute pkg.refresh_db in a salt state? -


i have following sls file:

python:   pkg.installed:     - pkgs:       - python2_x64 

how can edit file make sure pkg.refresh_db executed prior attepting install python?

i can manually run refresh this: salt -g 'os:windows' pkg.refresh_db

pkg: module.run:   - name: pkg.refresh_db  python: pkg.installed:   - pkgs:     - python2_x64 

Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -