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 -

dataset - MPAndroidchart returning no chart Data available -

post - imageshack API cURL -