mirror of
https://github.com/pigmonkey/spark.git
synced 2026-01-23 02:24:09 +00:00
change NetworkManager connectivity check to a boolean
This commit is contained in:
parent
48a32e5e7e
commit
96c090affe
3 changed files with 2 additions and 7 deletions
|
|
@ -51,8 +51,7 @@ mail:
|
|||
sync_on: trusted
|
||||
|
||||
network:
|
||||
conn_check:
|
||||
interval: 0
|
||||
conn_check: False
|
||||
trusted_uuid:
|
||||
- 39744b35-2f2f-4a18-9da4-7542a56c28c2
|
||||
- d2642f7e-9e58-4b00-82f8-26b4ef76a54e
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@
|
|||
template:
|
||||
src: connectivity.conf.j2
|
||||
dest: /etc/NetworkManager/conf.d/20-connectivity.conf
|
||||
when: network.conn_check is defined
|
||||
|
||||
- name: Push MAC address randomization config
|
||||
template:
|
||||
|
|
|
|||
|
|
@ -1,6 +1,3 @@
|
|||
# {{ ansible_managed }}
|
||||
# HTTP-based connectivity check
|
||||
[connectivity]
|
||||
{% if network.conn_check.uri is defined %}uri={{ network.conn_check.uri }}{% endif %}
|
||||
{% if network.conn_check.interval is defined %}interval={{ network.conn_check.interval }}{% endif %}
|
||||
{% if network.conn_check.reponse is defined %}response={{ network.conn_check.response }}{% endif %}
|
||||
enabled={{ network.conn_check|lower }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue