jitsi-quick/roles/telegraf/tasks/amazon.yml
2022-11-04 00:12:37 +01:00

20 lines
504 B
YAML

- 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 }}"
update_cache: true
vars:
packages:
- telegraf
- wget