dhcp: run re2o service as root in cron / directly
This commit is contained in:
parent
6dd6168d2a
commit
91157d80c1
1 changed files with 1 additions and 2 deletions
|
@ -59,7 +59,7 @@
|
||||||
day: "*"
|
day: "*"
|
||||||
weekday: "*"
|
weekday: "*"
|
||||||
month: "*"
|
month: "*"
|
||||||
user: re2o-services
|
user: root
|
||||||
job: "/usr/bin/python3 /var/local/re2o-services/dhcp/main.py"
|
job: "/usr/bin/python3 /var/local/re2o-services/dhcp/main.py"
|
||||||
|
|
||||||
- name: Configure /etc/default/isc-dhcp-server
|
- name: Configure /etc/default/isc-dhcp-server
|
||||||
|
@ -102,7 +102,6 @@
|
||||||
|
|
||||||
- name: force run dhcp re2o-service
|
- name: force run dhcp re2o-service
|
||||||
shell: /var/local/re2o-services/dhcp/main.py --force
|
shell: /var/local/re2o-services/dhcp/main.py --force
|
||||||
become_user: re2o-services
|
|
||||||
|
|
||||||
- name: Ensure dhcpd is running
|
- name: Ensure dhcpd is running
|
||||||
service:
|
service:
|
||||||
|
|
Loading…
Reference in a new issue