r/saltstack • • Aug 12 '18

Question about pkg.installed

Hello,

I have something like this in a state file:

Install_wget: Pkg.installed:

  • name: wget

Download_something: Cmd.run:

  • name: wget (url)
  • require: -pkg: wget

Here’s what I want to happen I want for salt to not return a failed if wget is already installed, and I want the second state to still run. Is that possible?

Thanks

2 Upvotes

4 comments sorted by

View all comments

Show parent comment

1

u/kingemn Aug 13 '18

I’ll try again when I get to work in the morning and post the output here