move bluetooth masking to bluetooth role

This commit is contained in:
Pig Monkey 2017-01-14 17:47:34 -08:00
parent 944128e07a
commit f1b742c6e7
4 changed files with 11 additions and 10 deletions

View file

@ -126,7 +126,8 @@ nameservers:
- 209.244.0.3 # Level 3
- 74.82.42.42 # Hurricane Electric
bluetooth: False
bluetooth:
disable: False
firejail:
blacklist:

View file

@ -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"

View 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

View file

@ -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