install_applications: pkg.installed: - pkgs: - apache2 - mysql - python3 make sure apache is running: service.running: - name: apache2 - enable: True - require: - pkg: install_applications
$ sudo salt '*' cmd.run "apt-get install --only-upgrade apache2"