Skip to content

Commit

Permalink
Merge pull request #316 from codenrhoden/ami-ubuntu-hyperv
Browse files Browse the repository at this point in the history
Disable Hyper-V KVP daemon for Ubuntu AMI
  • Loading branch information
k8s-ci-robot authored Aug 5, 2020
2 parents c5f78e3 + 0277723 commit eafe59d
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions images/capi/ansible/roles/providers/tasks/aws.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
state: present
with_items:
- https://s3.amazonaws.com/ec2-downloads-windows/SSMAgent/latest/linux_amd64/amazon-ssm-agent.rpm
when:
- ansible_os_family == "RedHat"
when:
- ansible_os_family == "RedHat"
- ansible_distribution != "Amazon"

- name: install aws agents RPM
Expand Down Expand Up @@ -57,3 +57,10 @@
state: started
enabled: yes
when: ansible_distribution == "Ubuntu"

- name: Disable Hyper-V KVP protocol daemon on Ubuntu
systemd:
name: hv-kvp-daemon
state: stopped
enabled: false
when: ansible_os_family == "Debian"

0 comments on commit eafe59d

Please sign in to comment.