Install nginx: pkg.installed: - name: nginx Start nginx: service.running: - name: nginx enable: True