use runas instead of userdotf add -pdotf add -p
This commit is contained in:
parent
30e0f7d5f5
commit
357d3401f8
@ -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 %}
|
||||||
|
Loading…
Reference in New Issue
Block a user