Skip to content

Instantly share code, notes, and snippets.

@cecil
cecil / makerepo.yaml
Last active October 9, 2023 13:33
ansible playbook to create a local yum http repo
---
- hosts: hou-dc-repo
tasks:
- name: confirm apache createrepo rsync installed
yum: name={{item}} state=installed
with_items:
- httpd
- createrepo
- rsync
- name: create dirs for centos6 and EPEL repo