templier-ansible/roles/mime/tasks/main.yml
Yohann D'ANELLO 57b83cb58e
Explicit permissions
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
2021-03-18 00:28:19 +01:00

28 lines
610 B
YAML

---
- name: Queries package manager to install xdg
package:
name: xdg-utils
register: pkg_result
retries: 3
until: pkg_result is succeeded
become: yes
- name: Create default applications config folder
file:
path: '.config/'
state: directory
owner: '{{ user.name }}'
group: '{{ user.name }}'
mode: 0700
become_user: '{{ user.name }}'
- name: Install default applications configuration file
template:
src: 'mimeapps.list.j2'
dest: '.config/mimeapps.list'
owner: '{{ user.name }}'
group: '{{ user.name }}'
mode: 0644
become_user: '{{ user.name }}'