john-h-luo b8891aa714
[skip e2e] Add ansible deployment support for centos/redhat/debain/ubuntu (#18491)
Signed-off-by: john-h-luo <jiehua.luo@zilliz.com>

Signed-off-by: john-h-luo <jiehua.luo@zilliz.com>
2022-08-12 20:56:46 +08:00

24 lines
545 B
YAML

---
- name: Install Packages
yum: name={{ item }} state=latest update_cache=yes
with_items:
- ntp
- tcpdump
- python3
- wget
- openssl
- curl
- python3-pip
when: ansible_distribution == 'CentOS' or ansible_distribution == 'Red Hat Enterprise Linux'
- name: Install Packages
apt: name={{ item }} state=latest update_cache=yes
with_items:
- ntp
- python3
- tcpdump
- wget
- openssl
- curl
- python3-pip
when: ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu'