diff options
author | Jan Malanik <janx.malanik@intel.com> | 2017-11-21 11:05:07 -0800 |
---|---|---|
committer | Ross Brattain <ross.b.brattain@intel.com> | 2017-12-22 10:43:44 +0000 |
commit | d2c4c4f8a798506ee88d0412ee1ab7cae5f394e5 (patch) | |
tree | 3645ff8087e11638abf7a50aa107ed99c10471fb /ansible/roles/enable_hugepages_on_boot/vars | |
parent | 057b1a79717c12eb283baeed94963cda2ff26df8 (diff) |
Bugfix in role enable_hugepages_on_boot
Make role idempotent.
Current regex doesn't match for:
linux /boot/vmlinuz-4.10.0-30-generic root=/dev/nvme0n1p1 ro vga=788 text
Change-Id: If5eb20fce4ddc35bb109c00eb7565853b3763950
Signed-off-by: Jan Malanik <janx.malanik@intel.com>
Signed-off-by: Malanik Jan <janx.malanik@intel.com>
Diffstat (limited to 'ansible/roles/enable_hugepages_on_boot/vars')
-rw-r--r-- | ansible/roles/enable_hugepages_on_boot/vars/main.yml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ansible/roles/enable_hugepages_on_boot/vars/main.yml b/ansible/roles/enable_hugepages_on_boot/vars/main.yml index acdf02509..6fec347b2 100644 --- a/ansible/roles/enable_hugepages_on_boot/vars/main.yml +++ b/ansible/roles/enable_hugepages_on_boot/vars/main.yml @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. --- -hugepage_param_regex: '^GRUB_CMDLINE_LINUX="\$GRUB_CMDLINE_LINUX.*# added by hugepages role' +hugepage_param_regex: '^GRUB_CMDLINE_LINUX="\$GRUB_CMDLINE_LINUX.*" # added by hugepages role' hugepage_param: 'GRUB_CMDLINE_LINUX="$GRUB_CMDLINE_LINUX default_hugepagesz={{ huge_pagesize_short[huge_pagesize_mb] }} hugepagesz={{ huge_pagesize_short[huge_pagesize_mb] }} hugepages={{ num_hugepages }}" # added by hugepages role' update_grub: |