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

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

post - imageshack API cURL -