安装 htop、tmux 和其他常用系统工具的 Ansible playbook

此 Ansible playbook 安装常用系统工具,如 htopbmon。我建议你根据需要自定义包列表。

install_system_tools.yaml
---
- name: Install system tools
  hosts: all
  become: true
  tasks:
    - name: Update apt cache
      apt:
        update_cache: yes

    - name: Install essential system tools
      apt:
        name:
          - htop
          - bmon
          - iotop
          - openssh-server
          - tmux
          - screen
          - curl
          - wget
          - python3
          - python3-pip
        state: present

Check out similar posts by category: Ansible, Linux