diff --git a/salt/states/firefox.sls b/salt/states/firefox.sls index 392baff..5b0e169 100644 --- a/salt/states/firefox.sls +++ b/salt/states/firefox.sls @@ -11,5 +11,5 @@ Downloading {{ name }} Firefox xpi: cmd.run: - name: {{ salt['user.info']( pillar['username'] ).home }}/bin/install_firefox_addon {{ args['name'] }} {{ args['url'] }} - unless: grep -oP '(?<=\},\"name\":\"){{ name }}' {{ salt['user.info']( pillar['username'] ).home }}/.mozilla/firefox/*.default*/addons.json - - user: {{ pillar['username'] }} + - runas: {{ pillar['username'] }} {% endfor %}