Remove THIS tag and use unix endlines
[csit.git] / resources / tools / testbed-setup / ansible / roles / common / tasks / main.yaml
index e16a6a7..06058a4 100644 (file)
@@ -1,46 +1,46 @@
----\r
-# file: roles/common/tasks/main.yaml\r
-\r
-- name: Ubuntu specific\r
-  import_tasks: ubuntu_x86_64.yaml\r
-  when: ansible_distribution|lower == 'ubuntu' and ansible_machine == 'x86_64'\r
-\r
-- name: Set hostname\r
-  hostname:\r
-      name: '{{ hostname }}'\r
-  tags: set-hostname\r
-\r
-- name: Ensure hostname is in /etc/hosts\r
-  lineinfile:\r
-    path: '/etc/hosts'\r
-    regexp: '^{{ ansible_default_ipv4.address }}.+$'\r
-    line: '{{ ansible_default_ipv4.address }} {{ hostname }}.linuxfoundation.org'\r
-  tags: set-hostname\r
-\r
-- name: Set sudoers\r
-  lineinfile:\r
-    path: '/etc/sudoers'\r
-    state: 'present'\r
-    regexp: '^%admin ALL='\r
-    line: '%admin ALL=(ALL) ALL'\r
-    validate: '/usr/sbin/visudo -cf %s'\r
-  tags: set-sudoers\r
-\r
-- name: Set sudoers\r
-  lineinfile:\r
-    path: '/etc/sudoers'\r
-    state: 'present'\r
-    regexp: '^%sudo'\r
-    line: '%sudo ALL=(ALL:ALL) NOPASSWD: ALL'\r
-    validate: '/usr/sbin/visudo -cf %s'\r
-  tags: set-sudoers\r
-\r
-- name: Copy grub file\r
-  template:\r
-   src: 'files/grub'\r
-   dest: '/etc/default/grub'\r
-   owner: 'root'\r
-   group: 'root'\r
-   mode: '644'\r
-  notify: ['Update GRUB']\r
-  tags: copy-grub\r
+---
+# file: roles/common/tasks/main.yaml
+
+- name: Ubuntu specific
+  import_tasks: ubuntu_x86_64.yaml
+  when: ansible_distribution|lower == 'ubuntu' and ansible_machine == 'x86_64'
+
+- name: Set hostname
+  hostname:
+      name: '{{ hostname }}'
+  tags: set-hostname
+
+- name: Ensure hostname is in /etc/hosts
+  lineinfile:
+    path: '/etc/hosts'
+    regexp: '^{{ ansible_default_ipv4.address }}.+$'
+    line: '{{ ansible_default_ipv4.address }} {{ hostname }}.linuxfoundation.org'
+  tags: set-hostname
+
+- name: Set sudoers
+  lineinfile:
+    path: '/etc/sudoers'
+    state: 'present'
+    regexp: '^%admin ALL='
+    line: '%admin ALL=(ALL) ALL'
+    validate: '/usr/sbin/visudo -cf %s'
+  tags: set-sudoers
+
+- name: Set sudoers
+  lineinfile:
+    path: '/etc/sudoers'
+    state: 'present'
+    regexp: '^%sudo'
+    line: '%sudo ALL=(ALL:ALL) NOPASSWD: ALL'
+    validate: '/usr/sbin/visudo -cf %s'
+  tags: set-sudoers
+
+- name: Copy grub file
+  template:
+   src: 'files/grub'
+   dest: '/etc/default/grub'
+   owner: 'root'
+   group: 'root'
+   mode: '644'
+  notify: ['Update GRUB']
+  tags: copy-grub