Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

ansible copy

- 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
 
PREVIOUS NEXT
Tagged: #ansible #copy
ADD COMMENT
Topic
Name
3+4 =