Fixes new line bug in update-grub task - tests passing
Change-Id: If247c7ca93cbf9e767b236d37708265e3fc6a258
diff --git a/README.md b/README.md
index 0ca44f7..3db710d 100644
--- a/README.md
+++ b/README.md
@@ -27,7 +27,7 @@
```yaml
- name: Configure aether compute nodes
- hosts: aethercomputeusrp
+ hosts: aetherusrp
become: true
roles:
- usrp
diff --git a/tasks/Debian.yml b/tasks/Debian.yml
index a4368df..3319166 100644
--- a/tasks/Debian.yml
+++ b/tasks/Debian.yml
@@ -16,7 +16,7 @@
- name: Add ettusresearch apt repo
apt_repository:
- repo: 'ppa:ettusresearch/uhd'
+ repo: "ppa:ettusresearch/uhd"
mode: 0644
update_cache: true
@@ -46,12 +46,12 @@
update_cache: true
- name: Update grub
- replace:
+ lineinfile:
path: /etc/default/grub
- regexp: '(^GRUB_CMDLINE_LINUX_DEFAULT=)(.*)$'
- replace: |
- '\1"quiet intel_pstate=disable processor.max_cstate=1 intel_idle.max_cstate=0 idle=poll"'
- backup: true
+ regexp: "^GRUB_CMDLINE_LINUX_DEFAULT=.*"
+ line: >
+ GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_pstate=disable
+ processor.max_cstate=1 intel_idle.max_cstate=0 idle=poll"
notify:
- update-grub2
@@ -75,7 +75,7 @@
state: touch
owner: root
group: root
- mode: '0644'
+ mode: "0644"
- name: Set cpufrequtils
blockinfile: