I have installed ansible to make automation deploy my system and i need some extra module to work with it. I downloaded module yumrepo.py on ansible github and add it to my library directory. But when i run, it show error ERROR: yumrepo is not a legal parameter of an Ansible Play
. Here is my configuration in file ansible.cfg.
inventory = /etc/ansible/hosts
library = /etc/ansible/module/
remote_tmp = $HOME/.ansible/tmp
and my playbook
---
- name: Add multiple repositories into the same file (1/2)
yumrepo:
name: epel
description: EPEL YUM repo
file: external_repos
baseurl: http://download.fedoraproject.org/pub/epel/$releasever/$basearch/
gpgcheck: no
Hope anybody help me. Thank so much