use runas instead of userdotf add -pdotf add -p

This commit is contained in:
Jonas Forsberg 2020-08-02 18:11:54 +02:00
parent 30e0f7d5f5
commit 357d3401f8
No known key found for this signature in database
GPG Key ID: F2E9818C70350CC9

View File

@ -11,5 +11,5 @@ Downloading {{ name }} Firefox xpi:
cmd.run: cmd.run:
- name: {{ salt['user.info']( pillar['username'] ).home }}/bin/install_firefox_addon {{ args['name'] }} {{ args['url'] }} - 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 - unless: grep -oP '(?<=\},\"name\":\"){{ name }}' {{ salt['user.info']( pillar['username'] ).home }}/.mozilla/firefox/*.default*/addons.json
- user: {{ pillar['username'] }} - runas: {{ pillar['username'] }}
{% endfor %} {% endfor %}