Skip to content

Commit

Permalink
fixed bug that failed to pin pre-4.0 VSD OS before yum update
Browse files Browse the repository at this point in the history
  • Loading branch information
Bria Castelli committed Mar 10, 2017
1 parent 221758b commit 8d96271
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions roles/vsd-deploy/tasks/non_heat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@
state: link
remote_user: root

- name: Copy files to pin OS version on {{ inventory_hostname }} when CentOS 6.6
- name: Copy files to pin OS version on {{ inventory_hostname }} when CentOS 6.6 or 6.5
copy:
src: ./roles/vsd-deploy/files/
dest: /etc/yum.repos.d/
remote_user: root
when:
remote_user: "root"
when:
- yum_pin
- "{{ ansible_distribution_version }} == 6.6"
- "({{ ansible_distribution_version }} == 6.6) or ({{ ansible_distribution_version }} == 6.5)"

- name: Configure yum proxy on {{ inventory_hostname }}
lineinfile:
Expand Down

0 comments on commit 8d96271

Please sign in to comment.