ansible-copy用法

目录

概述

ansible copy 常用用法举例

实践

bash 复制代码
# with_fileglob 是 Ansible 中的一个循环关键字,用于处理文件通配符匹配的结果
# 遍历 addons/files/*.txt文件
# dest: /data/soft/test 目录要事先存在,才能正常的copy
- name: Copy configuration files
  copy:
    src: "{{ item }}"
    dest: /data/soft/test
    owner: root
    group: root
    mode: 0644
  with_fileglob:
    - "*.txt"
相关推荐
あ-1 天前
ansible-playbook安装seaweedfs三节点集群
ansible
Tassel_YUE3 天前
非 ansible 主机批量执行命令方法:psssh 和 pscp(随手记)
linux·网络·ssh·scp·ansible
亿朝亿夕12 天前
ansible安装
ansible
.柒宇.13 天前
运维常见面试题_07_配置管理与监控(Ansible · Prometheus · Alertmanager)· 容器编排(Kubernetes)
运维·k8s·ansible·prometheus
相顾若初见13 天前
Ansible部署k8s
容器·kubernetes·ansible
wzq11_66614 天前
ansible部署项目——基于tidb数据库安装zabbix_server
ansible·zabbix·tidb
吃不吃早饭14 天前
RHEL9 搭建 Harbor 私有仓库与 Ansible 自动化部署 Kubernetes 运行环境完整实践
kubernetes·自动化·ansible
wzq11_66614 天前
Ansible自动部署Redis——六步自动安装Redis数据库
ansible
mohesashou15 天前
红帽linux的K8S部署
linux·kubernetes·ansible
lxw202302711615 天前
k8s安装部署(利用ansible)
linux·kubernetes·ansible