aboutsummaryrefslogtreecommitdiffstats
path: root/ansible/roles/enable_iommu_on_boot/tasks/manual_modify_grub.yml
diff options
context:
space:
mode:
authorVolodymyr Mytnyk <volodymyrx.mytnyk@intel.com>2018-12-06 13:26:43 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-12-06 13:26:43 +0000
commit09360f2133b0b9bfe5449cc340af63aaab2d0c96 (patch)
treebf9047fd748785a0c3a030ac1b86829bda692e9c /ansible/roles/enable_iommu_on_boot/tasks/manual_modify_grub.yml
parent470029d121ad332b5b7aa388bdb211eb4b47cfb9 (diff)
parent5875c74b0b63f4e04549e4d9933cf702d29dae8b (diff)
Merge "Add IOMMU to grub to support OVS/SRIOV SA contexts"
Diffstat (limited to 'ansible/roles/enable_iommu_on_boot/tasks/manual_modify_grub.yml')
-rw-r--r--ansible/roles/enable_iommu_on_boot/tasks/manual_modify_grub.yml12
1 files changed, 5 insertions, 7 deletions
diff --git a/ansible/roles/enable_iommu_on_boot/tasks/manual_modify_grub.yml b/ansible/roles/enable_iommu_on_boot/tasks/manual_modify_grub.yml
index 6760c3f9d..e0c880912 100644
--- a/ansible/roles/enable_iommu_on_boot/tasks/manual_modify_grub.yml
+++ b/ansible/roles/enable_iommu_on_boot/tasks/manual_modify_grub.yml
@@ -1,4 +1,4 @@
-# Copyright (c) 2017 Intel Corporation
+# Copyright (c) 2017-2018 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -12,14 +12,12 @@
# See the License for the specific language governing permissions and
# limitations under the License.
---
-
-
- name: check if iommu is set by this role in /boot grub.cfg files
lineinfile:
path: "{{ item.path }}"
- regexp: '{{ hugepages_params }}{{ iommu_boot_params }}'
- line: ''
- #changed_when: no
+ regexp: '{{ iommu_boot_params }}'
+ line: '{{ iommu_boot_params }}'
+ state: absent
check_mode: yes
register: is_mine_iommu_boot_grub
ignore_errors: True
@@ -29,6 +27,6 @@
path: "{{ item.path }}"
regexp: '(.*linux\s+/boot/vmlinuz.*)$'
replace: '\1{{ iommu_boot_params }}'
- when: is_mine_iommu_boot_grub.msg != "line replaced"
+ when: not is_mine_iommu_boot_grub.changed
- debug: var=ansible_kernel