connman: supervise-daemon

This commit is contained in:
Hoang Nguyen 2023-02-25 11:00:00 +07:00
parent c5b2d1c5d8
commit bc8bc72c98
Signed by: folliehiyuki
GPG Key ID: B0567C20730E9B11
2 changed files with 21 additions and 9 deletions

View File

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

View File

@ -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 - name: networking | Install connman packages
community.general.apk: community.general.apk:
name: connman-nftables, connman-resolvconf name: connman-nftables, connman-resolvconf
@ -29,20 +29,18 @@
group: root group: root
mode: 0644 mode: 0644
- name: networking | Disable connmand DNS proxy in service config - name: networking | Copy connmand service configuration
lineinfile: copy:
search_string: command_args src: connman/connman.confd
line: command_args="--nodnsproxy" dest: /etc/conf.d/connman
path: /etc/conf.d/connman
owner: root owner: root
group: root group: root
mode: 0644 mode: 0644
state: present
- name: networking | Start connman services on runlevel 'boot' - name: networking | Start connman services on runlevel 'default'
service: service:
name: '{{ item }}' name: '{{ item }}'
runlevel: boot runlevel: default
enabled: true enabled: true
loop: loop:
- connman - connman