728x90
Local repo 설정 파일 host server에 복사
- local repo 설정 파일을 host server에 복사하는 playbook
---
- name: copyfile
host: all
become: true
tasks:
- name: copy local.repo file
copy:
src: /etc/yum.repos.d/local_repo
dest: /etc/yum.repos.d/tmp/
- name: copy local_epel.repo file
copy:
src: /etc/yum.repos.d/local_epel.repo
dest: /etc/yum.repos.d/tmp/
Ansible Playbook 예제 시리즈
2022.08.17 - [Dev/Linux] - [Ansible] Ansible playbook example - 1
2022.08.18 - [Dev/Linux] - [Ansible] Ansible playbook example - 2
2022.08.19 - [Dev/Linux] - [Ansible] Ansible playbook example - 3
728x90
'Dev > Linux' 카테고리의 다른 글
[Linux] soft link와 hard link의 차이점 (0) | 2022.08.23 |
---|---|
[Ansible] Ansible playbook example - 3 (0) | 2022.08.19 |
[Ansible] Ansible playbook example - 1 (0) | 2022.08.17 |
[Linux] traceroute (0) | 2022.08.15 |
[Ansible] Include (0) | 2022.08.11 |
댓글