blob: 1b41fadbc98c1a56ab9bfeeee086ec3552920e96 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
---
- name: install smstools and usb-modeswitch
apt:
name:
- smstools
- usb-modeswitch
state: present
- name: add user sachet to smsd group
user:
name: sachet
groups: smsd
append: yes
- name: configure usb-modeswitch
when: sachet_usbmodeswitch is defined
loop: "{{ sachet_usbmodeswitch | dict2items }}"
loop_control:
label: "{{ item.key }}"
copy:
content: "{{ item.value }}"
dest: "/etc/usb_modeswitch.d/{{ item.key }}"
- name: configure smstool device list
ini_file:
path: /etc/smsd.conf
section: ""
option: devices
value: "{{ sachet_smstools_devices | list | join(', ') }}"
notify: restart smstools
- name: configure smstool devices
loop: "{{ sachet_smstools_devices | smstools_device_options }}"
loop_control:
label: "{{ item.device }} ({{ item.option }})"
ini_file:
path: /etc/smsd.conf
section: "{{ item.device }}"
option: "{{ item.option }}"
value: "{{ item.value }}"
notify: restart smstools
|