mirror of
https://github.com/pigmonkey/spark.git
synced 2026-01-23 10:25:39 +00:00
move bluetooth masking to bluetooth role
This commit is contained in:
parent
944128e07a
commit
f1b742c6e7
4 changed files with 11 additions and 10 deletions
|
|
@ -126,7 +126,8 @@ nameservers:
|
|||
- 209.244.0.3 # Level 3
|
||||
- 74.82.42.42 # Hurricane Electric
|
||||
|
||||
bluetooth: False
|
||||
bluetooth:
|
||||
disable: False
|
||||
|
||||
firejail:
|
||||
blacklist:
|
||||
|
|
|
|||
|
|
@ -60,8 +60,9 @@
|
|||
- { role: calibre, tags: ['calibre'] }
|
||||
- { role: aws, tags: ['aws'] }
|
||||
- { role: parcimonie, tags: ['parcimonie'], when: "tor is defined" }
|
||||
- { role: localtime, tags: ['localtime'], when: "localtime is defined" }
|
||||
- { role: localtime, tags: ['localtime'], when: "localtime is defined" }
|
||||
- { role: wormhole, tags: ['wormhole'] }
|
||||
- { role: bluetooth, tags: ['bluetooth'], when: "bluetooth is defined" }
|
||||
vars_prompt:
|
||||
- name: user_password
|
||||
prompt: "Enter desired user password"
|
||||
|
|
|
|||
7
roles/bluetooth/tasks/main.yml
Normal file
7
roles/bluetooth/tasks/main.yml
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
- name: Block the bluetooth service
|
||||
service: name="rfkill-block@bluetooth.service" enabled=yes state=started
|
||||
when: bluetooth.disable == True
|
||||
|
||||
- name: Unblock the bluetooth service
|
||||
service: name="rfkill-block@bluetooth.service" enabled=no state=stopped
|
||||
when: bluetooth.disable == False
|
||||
|
|
@ -21,11 +21,3 @@
|
|||
|
||||
- name: Enable and start lowbatt timer
|
||||
service: name=lowbatt.timer enabled=yes state=started
|
||||
|
||||
- name: Block the bluetooth service
|
||||
service: name="rfkill-block@bluetooth.service" enabled=yes state=started
|
||||
when: bluetooth == False
|
||||
|
||||
- name: Unblock the bluetooth service
|
||||
service: name="rfkill-block@bluetooth.service" enabled=no state=stopped
|
||||
when: bluetooth == True
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue