Fix idempotency create file

This commit is contained in:
ohdearaugustin 2022-04-05 23:01:09 +02:00
parent 9de9f7d706
commit 5da2ce698f
11 changed files with 53 additions and 36 deletions

View file

@ -26,9 +26,10 @@
- firejail
- name: Verify Firefox firejail local profile exists
file:
path: /etc/firejail/firefox.local
state: touch
copy:
content: ""
dest: /etc/firejail/firefox.local
force: false
tags:
- firefox
- firejail
@ -59,9 +60,10 @@
- firejail
- name: Verify Chromium firejail local profile exists
file:
path: /etc/firejail/chromium.local
state: touch
copy:
content: ""
dest: /etc/firejail/chromium.local
force: false
tags:
- chromium
- firejail
@ -136,9 +138,10 @@
- chooser
- name: Verify mimeapps.list exists
file:
path: /etc/xdg/mimeapps.list
state: touch
copy:
content: ""
dest: /etc/xdg/mimeapps.list
force: false
tags:
- rofi
- chooser

View file

@ -23,9 +23,10 @@
state: directory
- name: Verify firejail globals file exists
file:
path: /etc/firejail/globals.local
state: touch
copy:
content: ""
dest: /etc/firejail/globals.local
force: false
- name: Add blacklist to globals
lineinfile:

View file

@ -12,7 +12,10 @@
pacman: name=py3status state=present
- name: Verify that default applications file exists
file: path=/etc/xdg/mimeapps.list state=touch
copy:
content: ""
dest: /etc/xdg/mimeapps.list
force: false
- name: Verify header in default applications file
lineinfile: dest=/etc/xdg/mimeapps.list

View file

@ -11,9 +11,10 @@
state: link
- name: Verify mutt firejail local profile exists
file:
path: /etc/firejail/mutt.local
state: touch
copy:
content: ""
dest: /etc/firejail/mutt.local
force: false
tags:
- firejail
@ -64,9 +65,10 @@
dest: /usr/local/share/applications/mutt.desktop
- name: Verify mimeapps.list exists
file:
path: /etc/xdg/mimeapps.list
state: touch
copy:
content: ""
dest: /etc/xdg/mimeapps.list
force: false
- name: Set mutt as default application for mailto links
lineinfile:

View file

@ -10,7 +10,10 @@
- msmtp
- name: Verify alias file exists
file: path=/etc/aliases state=touch
copy:
content: ""
dest: /etc/aliases
force: false
tags:
- msmtp

View file

@ -10,7 +10,7 @@
- firejail
- name: Verify mpd firejail local profile exists
file: path=/etc/firejail/mpd.local state=touch
copy: content="" dest="/etc/firejail/mpd.local" force=false
tags:
- firejail

View file

@ -17,6 +17,7 @@
dest: /etc/nmtrust/trusted_networks
- name: Verify trusted unit list exists
file:
path: /etc/nmtrust/trusted_units
state: touch
copy:
content: ""
dest: /etc/nmtrust/trusted_units
force: false

View file

@ -13,9 +13,10 @@
- firejail
- name: Verify LibreOffice firejail local profile exists
file:
path: /etc/firejail/libreoffice.local
state: touch
copy:
content: ""
dest: /etc/firejail/libreoffice.local
force: false
tags:
- firejail

View file

@ -16,9 +16,10 @@
- firejail
- name: Verify Okular firejail local profile exists
file:
path: /etc/firejail/okular.local
state: touch
copy:
content: ""
dest: /etc/firejail/okular.local
force: false
tags:
- okular
- firejail

View file

@ -11,9 +11,10 @@
force: yes
- name: Verify unbound resolvconf config file exists
file:
path: /etc/unbound/resolvconf.conf
state: touch
copy:
content: ""
dest: /etc/unbound/resolvconf.conf
force: false
- name: Copy Unbound configuration file
template:

View file

@ -20,9 +20,10 @@
dest: /usr/local/share/applications/visidata.desktop
- name: Verify mimeapps.list exists
file:
path: /etc/xdg/mimeapps.list
state: touch
copy:
content: ""
dest: /etc/xdg/mimeapps.list
force: false
- name: Set visidata as default application for relevant mimetypes
lineinfile: