Created
December 26, 2023 10:19
-
-
Save ApOgEE/5dd9ed1074a35be38f52b3e176782f2a to your computer and use it in GitHub Desktop.
Install PMM Client on Ubuntu 22.04 Servers using Ansible
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# apogeek ansible playbook | |
# - to install pmm2-client on ubuntu 22.04 servers | |
--- | |
- name: Setup PMM Clients | |
hosts: all | |
become: yes | |
gather_facts: True | |
tasks: | |
- name: Install gnupg2 | |
ansible.builtin.apt: | |
name: gnupg2 | |
state: present | |
update_cache: yes | |
- name: download PMM Repo package | |
ansible.builtin.apt: | |
deb: https://repo.percona.com/apt/percona-release_latest.generic_all.deb | |
- name: enable pmm2-client repo | |
ansible.builtin.shell: | |
cmd: percona-release setup pmm2-client | |
- name: install PMM client | |
ansible.builtin.apt: | |
name: pmm2-client | |
state: present | |
update_cache: yes | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment