From ff6c731ce562ff377719c013560ab13781d2fc0f Mon Sep 17 00:00:00 2001 From: Michele Cereda Date: Sun, 8 May 2022 01:39:17 +0200 Subject: [PATCH] Added tasks conditional --- ansible/bluetooth.tune.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ansible/bluetooth.tune.yml b/ansible/bluetooth.tune.yml index 1b438e3..67e307a 100644 --- a/ansible/bluetooth.tune.yml +++ b/ansible/bluetooth.tune.yml @@ -6,6 +6,7 @@ hosts: all tasks: - name: Enable faster connection to devices + when: ansible_system == 'Linux' become: true ansible.builtin.lineinfile: path: "/etc/bluetooth/main.conf" @@ -16,6 +17,7 @@ create: true backup: true - name: Enable all controllers as soon as they are found + when: ansible_system == 'Linux' become: true ansible.builtin.lineinfile: path: "/etc/bluetooth/main.conf"