File tree Expand file tree Collapse file tree 2 files changed +16
-2
lines changed
images/capi/ansible/roles Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change 2626 allow_downgrade : true
2727 state : present
2828 lock_timeout : 60
29+ disable_excludes : " kubernetes"
30+ disable_plugin : " priorities"
2931 vars :
3032 packages :
3133 - kubelet-{{ kubernetes_rpm_version }}
Original file line number Diff line number Diff line change 2626- name : Perform dnf clean
2727 ansible.builtin.command : /usr/bin/yum -y clean all
2828
29+ - name : Enable the EPEL repository
30+ ansible.builtin.command : amazon-linux-extras enable epel
31+ args :
32+ creates : /etc/yum.repos.d/epel.repo
33+ when : packer_builder_type.startswith('amazon')
34+
35+ - name : Install EPEL package
36+ ansible.builtin.yum :
37+ name : epel-release
38+ state : present
39+ when : packer_builder_type.startswith('amazon')
40+
2941- name : Import epel gpg key
3042 ansible.builtin.rpm_key :
3143 state : present
3244 key : " {{ epel_rpm_gpg_key }}"
33- when : epel_rpm_gpg_key != ""
45+ when : epel_rpm_gpg_key != "" and not packer_builder_type.startswith('amazon')
3446
3547- name : Add epel repo
3648 ansible.builtin.yum :
3749 name : " {{ redhat_epel_rpm }}"
3850 state : present
3951 lock_timeout : 60
40- when : redhat_epel_rpm != ""
52+ when : redhat_epel_rpm != "" and not packer_builder_type.startswith('amazon')
4153
4254- ansible.builtin.import_tasks : rpm_repos.yml
4355
You can’t perform that action at this time.
0 commit comments