Skip to content

Commit

Permalink
Change: Remove dependency on linuxhq epel repo
Browse files Browse the repository at this point in the history
Change: Update README badges
Change: Update task descriptions
  • Loading branch information
Taylor Kimball committed Jun 6, 2018
1 parent 4a7b000 commit 8aa5d09
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 21 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ install:
- ansible --version
- printf '[defaults]\nroles_path=../' > ansible.cfg
script:
- ansible-galaxy install linuxhq.epel
- ansible-playbook tests/test.yml -i tests/inventory --syntax-check
notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/
Expand Down
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
# ansible-role-elrepo

[![Build Status](https://travis-ci.org/linuxhq/ansible-role-elrepo.svg?branch=master)](https://travis-ci.org/linuxhq/ansible-role-elrepo)
[![Ansible Galaxy](https://img.shields.io/badge/ansible--galaxy-elrepo-blue.svg?style=flat)](https://galaxy.ansible.com/linuxhq/elrepo)
[![License](https://img.shields.io/badge/license-GPLv3-brightgreen.svg?style=flat)](COPYING)

RHEL/CentOS - ELRepo Project

## Requirements

None
This role requires that you have the epel repository installed.

* https://galaxy.ansible.com/linuxhq/epel/

## Role Variables

Expand All @@ -27,7 +31,7 @@ Available variables are listed below, along with default values:

## Dependencies

* https://galaxy.ansible.com/linuxhq/epel/
None

## Example Playbook

Expand Down
5 changes: 1 addition & 4 deletions meta/main.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
---
allow_duplicates: true
dependencies:
- linuxhq.epel
dependencies: []
galaxy_info:
author: tkimball83
description: RHEL/CentOS - ELRepo Project
Expand All @@ -14,6 +12,5 @@ galaxy_info:
- 7
galaxy_tags:
- elrepo
- packaging
- yum
...
6 changes: 3 additions & 3 deletions tasks/elrepo_kernel.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
- name: Removing old kernel packages
- name: Attempting to purge old kernel packages
become: true
yum:
disable_plugin: "{{ elrepo_disable_plugin|join(',') }}"
Expand Down Expand Up @@ -50,7 +50,7 @@
- elrepo_dist == '7'
- elrepo_kernel_installed is changed

- name: Set the default kernel grub is going to boot (el6)
- name: Attempting to set the default grub kernel for el6
become: true
lineinfile:
dest: /boot/grub/grub.conf
Expand All @@ -60,7 +60,7 @@
- elrepo_dist == '6'
- elrepo_kernel_installed is changed

- name: Set the default kernel grub is going to boot (el7)
- name: Attempting to set the default grub kernel for el7
become: true
command: |
/usr/sbin/grub2-set-default 0
Expand Down
22 changes: 11 additions & 11 deletions tasks/elrepo_repository.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
---
- name: Setting elrepo_version fact (el7)
set_fact:
elrepo_version: "7.0-3.el7"
when: elrepo_dist == '7'

- name: Setting elrepo_version fact (el6)
- name: Attempting to set el6 elrepo_dist fact
set_fact:
elrepo_version: "6-8.el6"
when: elrepo_dist == '6'

- name: Attempting to create temporary file
- name: Attempting to set el7 elrepo_dist fact
set_fact:
elrepo_version: "7.0-3.el7"
when: elrepo_dist == '7'

- name: Attempting to generate temporary file
tempfile:
prefix: 'elrepo.'
state: file
suffix: '.rpm'
register: elrepo_tempfile

- name: Downloading package to temporary location
- name: Attempting to download package to temporary location
get_url:
dest: "{{ elrepo_tempfile.path }}"
force: yes
Expand All @@ -36,15 +36,15 @@
register: elrepo_yum
when: elrepo_get_url is success

- name: Purging temporary package from filesystem
- name: Attempting to purge temporary package from the filesystem
file:
path: "{{ elrepo_tempfile.path }}"
state: absent
when:
- elrepo_tempfile is success
- elrepo_yum is success

- name: Applying elrepo repository configurations
- name: Attempting to overlay elrepo repository configurations
become: true
template:
src: elrepo.repo.j2
Expand All @@ -54,7 +54,7 @@
mode: 0644
when: elrepo_yum is success

- name: Ensure that the ELRepo GPG keys are installed
- name: Ensure that the elrepo gpg keys are installed
become: true
rpm_key:
key: /etc/pki/rpm-gpg/RPM-GPG-KEY-elrepo.org
Expand Down

0 comments on commit 8aa5d09

Please sign in to comment.