connman: supervise-daemon
This commit is contained in:
parent
c5b2d1c5d8
commit
bc8bc72c98
|
@ -0,0 +1,14 @@
|
|||
# Configuration file for /etc/init.d/connman
|
||||
|
||||
# Path to ConnMan's configuration file.
|
||||
#cfgfile=/etc/connman/main.conf
|
||||
|
||||
# Additional arguments to pass to connmand.
|
||||
command_args="--nodnsproxy"
|
||||
|
||||
# Number of milliseconds to wait after starting and check that daemon is
|
||||
# still running.
|
||||
#start_wait=50
|
||||
|
||||
# Uncomment to use process supervisor.
|
||||
supervisor="supervise-daemon"
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
# connman itself is already installed in parent task
|
||||
# connman itself is already installed in the parent task
|
||||
- name: networking | Install connman packages
|
||||
community.general.apk:
|
||||
name: connman-nftables, connman-resolvconf
|
||||
|
@ -29,20 +29,18 @@
|
|||
group: root
|
||||
mode: 0644
|
||||
|
||||
- name: networking | Disable connmand DNS proxy in service config
|
||||
lineinfile:
|
||||
search_string: command_args
|
||||
line: command_args="--nodnsproxy"
|
||||
path: /etc/conf.d/connman
|
||||
- name: networking | Copy connmand service configuration
|
||||
copy:
|
||||
src: connman/connman.confd
|
||||
dest: /etc/conf.d/connman
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
state: present
|
||||
|
||||
- name: networking | Start connman services on runlevel 'boot'
|
||||
- name: networking | Start connman services on runlevel 'default'
|
||||
service:
|
||||
name: '{{ item }}'
|
||||
runlevel: boot
|
||||
runlevel: default
|
||||
enabled: true
|
||||
loop:
|
||||
- connman
|
||||
|
|
Reference in New Issue