Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions resources/opennebula/opennebula.tf.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ resource "opennebula_virtual_machine" "${vm_name}" {
permissions = "660"
group = "${opennebula_vm_group}"
memory = "${vm_ram_size}"
hard_shutdown = true

cpumodel {
model = "host-passthrough"
Expand Down
7 changes: 6 additions & 1 deletion resources/roles/preparation/tasks/deb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,11 @@
apt_repository:
repo: "{{ item.url }}"
filename: 'test_repos'
update_cache: yes
update_cache: no
with_items: "{{ repositories }}"
when: repositories is defined and (repositories | length > 0)

- name: Update apt cache after adding repositories
apt:
update_cache: yes
when: repositories is defined and (repositories | length > 0)
2 changes: 1 addition & 1 deletion resources/roles/preparation/tasks/rhel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@
description: "Repository {{ item.name }}"
enabled: yes
gpgcheck: no
priority: "{{ '10' if (ansible_distribution == 'Amazon' and item.name | regex_search('-br(-|$)')) else omit }}"
priority: "{{ '10' if ansible_distribution == 'Amazon' and (item.name | regex_search('-br(-|$)') or 'koji' in item.url or 'tuxcare' in item.url) else omit }}"
with_items: "{{ repositories }}"
when: repositories is defined and (repositories | length > 0)

Expand Down
Loading