forked from pgporada/ansible-role-elrepo
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for enabling and disabling yum plugins
Use tempfile module instead of command+mktemp Fix ansible 2.5 deprecation warnings Remove support for RHEL/CentOS 5 Update min_ansible_version to 2.5
- Loading branch information
Taylor Kimball
authored and
Taylor Kimball
committed
Mar 25, 2018
1 parent
2ae31e5
commit 4618cef
Showing
6 changed files
with
53 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,11 @@ | ||
--- | ||
- name: Executing elrepo repository tasks | ||
- name: Attempting to import elrepo tasks | ||
tags: elrepo | ||
import_tasks: elrepo_repository.yml | ||
when: | ||
- ansible_os_family == 'RedHat' | ||
|
||
- name: Executing elrepo kernel tasks | ||
tags: elrepo | ||
import_tasks: elrepo_kernel.yml | ||
when: | ||
- ansible_os_family == 'RedHat' | ||
- elrepo_kernel|bool == true | ||
- elrepo_yum|success | ||
block: | ||
- import_tasks: elrepo_repository.yml | ||
- import_tasks: elrepo_kernel.yml | ||
when: | ||
- elrepo_kernel|bool | ||
- elrepo_yum is success | ||
when: ansible_os_family == 'RedHat' | ||
... |