feat(roles/common): added PMC tools installation

This commit is contained in:
ITQ committed 2026-10-27 17:00:28 +03:00
1 parent 4ff600e5b4
commit 506e97559c
2 files changed
+33

No files matched your search

+4
View File
@@ -1,4 +1,8 @@
---
# Install Brendan Gregg's PMC tools
pmc_cloud_tools_enabled: false
pmc_cloud_tools_repo: https://git.itqdev.xyz/Infrastructure/pmc-cloud-tools.git
system_packages:
essential:
- curl
+29
View File
@@ -12,6 +12,35 @@
cache_valid_time: 3600
tags: packages
- name: Install PMC cloud tools
become: true
when: pmc_cloud_tools_enabled | default(false) | bool
tags: packages
block:
- name: Install perf for PMC cloud tools
ansible.builtin.apt:
name: linux-perf
state: present
- name: Clone PMC cloud tools
ansible.builtin.git:
repo: "{{ pmc_cloud_tools_repo }}"
dest: /opt/pmc-cloud-tools
version: master
- name: Link PMC cloud tools into PATH
ansible.builtin.file:
src: "/opt/pmc-cloud-tools/{{ item }}"
dest: "/usr/local/bin/{{ item }}"
state: link
loop:
- cpucache
- icache
- pmcarch
- pmcipc
- resstalls
- tlbstat
- name: Set hostname and FQDN
tags: system
block: