From fb36303772036963c8fe534216ba7e50e7d8e825 Mon Sep 17 00:00:00 2001 From: Scott Wallace Date: Wed, 24 Apr 2019 20:35:20 +0100 Subject: [PATCH] Small tidy --- .ansible/roles/linux_desktop/files/wireguard.conf | 4 ++-- .ansible/roles/linux_desktop/tasks/config.yaml | 2 +- .ansible/roles/linux_desktop/tasks/software.yaml | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.ansible/roles/linux_desktop/files/wireguard.conf b/.ansible/roles/linux_desktop/files/wireguard.conf index c59c2c8..1515917 100644 --- a/.ansible/roles/linux_desktop/files/wireguard.conf +++ b/.ansible/roles/linux_desktop/files/wireguard.conf @@ -1,10 +1,10 @@ [Interface] PrivateKey = Address = -PostUp = /usr/bin/systemd-resolve -i %i --set-dns= --set-domain=~. --set-domain= +# PostUp = /usr/bin/systemd-resolve -i %i --set-dns= --set-domain=~. --set-domain= [Peer] PublicKey = PreSharedKey = EndPoint = -AllowedIPs = 0.0.0.0/0 +AllowedIPs = 0.0.0.0/0, ::/0 diff --git a/.ansible/roles/linux_desktop/tasks/config.yaml b/.ansible/roles/linux_desktop/tasks/config.yaml index 56baffa..b744445 100644 --- a/.ansible/roles/linux_desktop/tasks/config.yaml +++ b/.ansible/roles/linux_desktop/tasks/config.yaml @@ -56,7 +56,7 @@ dest: "{{ wgconfig_path }}" src: files/wireguard.conf mode: '0400' - when: wgconfig.stat.exists == False + when: not wgconfig.stat.exists become: true - name: 'Wireguard: Fix configuration permissions' diff --git a/.ansible/roles/linux_desktop/tasks/software.yaml b/.ansible/roles/linux_desktop/tasks/software.yaml index e616899..b05b4a1 100644 --- a/.ansible/roles/linux_desktop/tasks/software.yaml +++ b/.ansible/roles/linux_desktop/tasks/software.yaml @@ -75,7 +75,7 @@ - name: Refresh font cache command: 'fc-cache -f' - when: fontfile.stat.exists == false + when: not fontfile.stat.exists - name: 'Gnome extensions' tags: @@ -116,4 +116,4 @@ url: "https://github.com/laurent22/joplin/releases/download/v{{ joplin_version.stdout }}/Joplin-{{ joplin_version.stdout }}-x86_64.AppImage" dest: "{{ '~/.joplin/Joplin.AppImage' | expanduser }}" mode: '0500' - when: joplin_app.stat.exists == false + when: not joplin_app.stat.exists