This commit is contained in:
parent
80c168d76b
commit
45b2715485
|
@ -1,6 +1,8 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=OpenVSwitch and OVN Controller service
|
Description=OpenVSwitch and OVN Controller service
|
||||||
After=network.target
|
After=network-pre.target systemd-udev-settle.service
|
||||||
|
Before=networking.service
|
||||||
|
|
||||||
StartLimitIntervalSec=0
|
StartLimitIntervalSec=0
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
|
|
|
@ -53,7 +53,7 @@
|
||||||
- name: "Set fact to true if the source file exists but the MD5 sum does not match"
|
- name: "Set fact to true if the source file exists but the MD5 sum does not match"
|
||||||
set_fact:
|
set_fact:
|
||||||
force_new_ovn_download: "{{ ovn_nbctl_exists.stat.checksum != ovn_nbctl_md5_value }}"
|
force_new_ovn_download: "{{ ovn_nbctl_exists.stat.checksum != ovn_nbctl_md5_value }}"
|
||||||
when: ovn_nbctl_exists.stat.exists == True
|
when: ovn_nbctl_exists.stat.exists == True and use_ovn==true
|
||||||
|
|
||||||
#- debug: msg={{ovn_nbctl_md5_value}}
|
#- debug: msg={{ovn_nbctl_md5_value}}
|
||||||
#- debug: msg={{ovn_nbctl_exists}}
|
#- debug: msg={{ovn_nbctl_exists}}
|
||||||
|
@ -61,13 +61,13 @@
|
||||||
- name: "Set fact to true if the source file does not exist"
|
- name: "Set fact to true if the source file does not exist"
|
||||||
set_fact:
|
set_fact:
|
||||||
force_new_ovn_download: True
|
force_new_ovn_download: True
|
||||||
when: ovn_nbctl_exists.stat.exists == False
|
when: ovn_nbctl_exists.stat.exists == False and use_ovn==true
|
||||||
|
|
||||||
- debug: msg="Installing OVN"
|
- debug: msg="Installing OVN"
|
||||||
when: force_new_ovn_download == True
|
when: force_new_ovn_download == True and use_ovn==true
|
||||||
|
|
||||||
- debug: msg="NOT Installing OVN, MD5 sum matches"
|
- debug: msg="NOT Installing OVN, MD5 sum matches"
|
||||||
when: force_new_ovn_download == False
|
when: force_new_ovn_download == False and use_ovn==true
|
||||||
|
|
||||||
- name: "Copy OVN binaries"
|
- name: "Copy OVN binaries"
|
||||||
copy:
|
copy:
|
||||||
|
@ -75,11 +75,11 @@
|
||||||
dest: "/tmp/{{item}}"
|
dest: "/tmp/{{item}}"
|
||||||
with_items:
|
with_items:
|
||||||
- ovn_20.06.0-1_amd64.deb
|
- ovn_20.06.0-1_amd64.deb
|
||||||
when: force_new_ovn_download == True
|
when: force_new_ovn_download == True and use_ovn==true
|
||||||
|
|
||||||
- name: "Install packages"
|
- name: "Install packages"
|
||||||
apt:
|
apt:
|
||||||
deb: "{{ item }}"
|
deb: "{{ item }}"
|
||||||
with_items:
|
with_items:
|
||||||
- "/tmp/ovn_20.06.0-1_amd64.deb"
|
- "/tmp/ovn_20.06.0-1_amd64.deb"
|
||||||
when: force_new_ovn_download == True
|
when: force_new_ovn_download == True and use_ovn==true
|
||||||
|
|
Loading…
Reference in New Issue