📜  ansible 复制 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:26.612000             🧑  作者: Mango

代码示例1
- name: Copy in config file for RHEL
  copy:
    src: './files/rhel/syslog'
    dest: '/etc/logrotate.d/'
    owner: root
    group: root
    mode: '0600'
  when:
    - ansible_facts['distribution'] == 'RedHat'
  become: yes