Added tasks conditional

This commit is contained in:
Michele Cereda
2022-05-08 01:39:17 +02:00
parent 8c9ca3fac8
commit ff6c731ce5

View File

@@ -6,6 +6,7 @@
hosts: all hosts: all
tasks: tasks:
- name: Enable faster connection to devices - name: Enable faster connection to devices
when: ansible_system == 'Linux'
become: true become: true
ansible.builtin.lineinfile: ansible.builtin.lineinfile:
path: "/etc/bluetooth/main.conf" path: "/etc/bluetooth/main.conf"
@@ -16,6 +17,7 @@
create: true create: true
backup: true backup: true
- name: Enable all controllers as soon as they are found - name: Enable all controllers as soon as they are found
when: ansible_system == 'Linux'
become: true become: true
ansible.builtin.lineinfile: ansible.builtin.lineinfile:
path: "/etc/bluetooth/main.conf" path: "/etc/bluetooth/main.conf"