From b6e9df20653e768c47e63599be90d3f1e49c0c78 Mon Sep 17 00:00:00 2001 From: Adam Conway Date: Tue, 17 Jul 2018 14:27:36 +0300 Subject: [PATCH] Update yum_repository.py (#42859) * Update yum_repository.py Having spent some time trying and googling how to enable an installed repo with this, I discovered that the thread at https://github.com/ansible/ansible-modules-extras/issues/2384 had decided that this would not be supported and recommended use of ini_file instead. Since I am sure I'm not alone in expecting yum-repository to support enabling/disabling a configured repo, I suggest adding a note so people find this easier. --- lib/ansible/modules/packaging/os/yum_repository.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ansible/modules/packaging/os/yum_repository.py b/lib/ansible/modules/packaging/os/yum_repository.py index 4ab3954011..a19bef12d3 100644 --- a/lib/ansible/modules/packaging/os/yum_repository.py +++ b/lib/ansible/modules/packaging/os/yum_repository.py @@ -23,6 +23,7 @@ version_added: '2.1' short_description: Add or remove YUM repositories description: - Add or remove YUM repositories in RPM-based Linux distributions. + - If you wish to update an existing repository definition use M(ini_file) instead. options: async: