Update 'roles/telegraf/tasks/centos.yml'
This commit is contained in:
parent
766c0fd47c
commit
f7e7b80768
1 changed files with 12 additions and 0 deletions
|
@ -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 }}"
|
||||
|
|
Loading…
Reference in a new issue