Ansible Playbook To Configure Yum Local Repository On Managed Server

Download playbook at my github:

How To Create Ansible Playbooks to Automate System Configuration on Ubuntu  | DigitalOcean

1/ Prepare inventory file for managed server:

2/ Main sections of playbook:

– Create variable for storing OS distribution support (this playbook run on only server using RedHat, Centos or Fedora), variable store source path on managed server using for create local repository and variable description of new repository

– Create task for running command to checking source path existing on managed server and register output of command to variable

– All task for creating new local repository will grouping with block section and using same condition checking os supported and result of command checking source path task

3/ Running playbook and checking new repo created on managed server:


Vui lòng nhập bình luận của bạn
Vui lòng nhập tên của bạn ở đây