Skip to content

Commit

Permalink
enable ansible repos on EL
Browse files Browse the repository at this point in the history
this is needed on EL8 to get ansible at all, and preferred on EL7
  • Loading branch information
evgeni committed Dec 14, 2020
1 parent a273517 commit e882559
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 0 deletions.
3 changes: 3 additions & 0 deletions roles/ansible_repositories/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
ansible_repositories_state: present
ansible_repositories_name: 'centos-release-ansible-29'
8 changes: 8 additions & 0 deletions roles/ansible_repositories/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
- name: 'Setup Ansible Repository'
yum:
name: "{{ ansible_repositories_name }}"
state: "{{ ansible_repositories_state }}"
tags:
- packages
when: ansible_distribution == 'CentOS'
1 change: 1 addition & 0 deletions roles/foreman_server_repositories/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
foreman_server_repositories_epel: true
foreman_server_repositories_ansible: true
foreman_server_repositories_puppet: true
foreman_server_repositories_foreman: true
foreman_server_repositories_katello: false
Expand Down
2 changes: 2 additions & 0 deletions roles/foreman_server_repositories/meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ dependencies:
when:
- foreman_server_repositories_epel|bool
- ansible_distribution_major_version == '7'
- role: ansible_repositories
when: foreman_server_repositories_ansible|bool
- role: puppet_repositories
when: foreman_server_repositories_puppet|bool
- role: foreman_repositories
Expand Down

0 comments on commit e882559

Please sign in to comment.