Skip to content

Commit 3b3dc63

Browse files
authored
Merge pull request #216 from AlmaLinux/centos7
Enable centos7 repos for el7 envs only for Docker containers
2 parents 80bfe41 + 3ab6abd commit 3b3dc63

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

  • resources/roles/preparation/tasks

resources/roles/preparation/tasks/rhel.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,10 @@
7979
with_items:
8080
- "os"
8181
- "updates"
82-
when: >
83-
ansible_distribution_file_variety in ('RedHat', 'CentOS') and
84-
ansible_facts.distribution_major_version == '7'
82+
when:
83+
- ansible_distribution_file_variety in ('RedHat', 'CentOS')
84+
- ansible_connection == 'docker'
85+
- ansible_facts.distribution_major_version == '7'
8586

8687
- name: Add YUM proxy
8788
ini_file:

0 commit comments

Comments
 (0)