-
-
Save anonymous/f42f313d7a6de93d9dd6ca13e56d4455 to your computer and use it in GitHub Desktop.
file.append example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/etc/xdg/mimeapps.list: | |
file.absent | |
default_applications: | |
file.append: | |
- name: /etc/xdg/mimeapps.list | |
- text: | | |
[Default Applications] | |
{% for mimetype in pillar['default_applications'] %} | |
{{ mimetype }}: | |
file.append: | |
- name: /etc/xdg/mimeapps.list | |
- text: | |
- {{ mimetype }}= | |
{% for desktop in pillar['default_applications'][mimetype] %} | |
{{ mimetype }}_{{ desktop }}: | |
file.append: | |
- name: /etc/xdg/mimeapps.list | |
- text: | |
- {{ desktop }}; | |
{% endfor %} | |
append_newline_{{ mimetype }}: | |
file.append: | |
- name: /etc/xdg/mimeapps.list | |
- text: | |
- \n | |
{% endfor %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
default_applications: | |
inode/directory: | |
- pcmanfm-qt.desktop | |
text/html: | |
- google-chrome.desktop | |
x-scheme-handler/http: | |
- google-chrome.desktop | |
x-scheme-handler/https: | |
- google-chrome.desktop |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment