From 47885d8db9083c57eb18ed50da8ddba630e7f97e Mon Sep 17 00:00:00 2001 From: Ruben Di Battista Date: Mon, 28 Sep 2020 23:30:32 +0200 Subject: [PATCH] Remove useless block for single task (#82) --- tasks/main.yml | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index cd2072d..cc1ad51 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -10,18 +10,17 @@ - "setup-{{ ansible_distribution|lower }}.yml" - "setup-{{ ansible_os_family|lower }}.yml" -- block: - - name: Enable WireGuard kernel module - modprobe: - name: wireguard - state: present - register: wireguard_module_enabled - until: wireguard_module_enabled is succeeded - retries: 10 - delay: 10 - failed_when: wireguard_module_enabled is failure - tags: - - wg-install +- name: Enable WireGuard kernel module + modprobe: + name: wireguard + state: present + register: wireguard_module_enabled + until: wireguard_module_enabled is succeeded + retries: 10 + delay: 10 + failed_when: wireguard_module_enabled is failure + tags: + - wg-install when: not ansible_os_family == 'Darwin' - name: Register if config/private key already exists on target host