Update 'roles/telegraf/tasks/centos.yml'

This commit is contained in:
panda 2022-11-04 01:02:25 +01:00
parent 766c0fd47c
commit f7e7b80768

View file

@ -1,3 +1,15 @@
- name: "copy influxdb.repo"
copy:
backup: yes
src: "{{ playbook_dir }}/repo/influxdb.repo"
dest: /etc/yum.repos.d/influxdb.repo
owner: root
group: root
mode: '0644'
- name: download repo
shell: sed -i "s/\$releasever/$(rpm -E %{rhel})/g" /etc/yum.repos.d/influxdb.repo
- name: Update cache and install a list of COMMON packages with a list variable
ansible.builtin.yum:
name: "{{ packages }}"