|
@@ -107,6 +107,27 @@
|
|
|
regexp: '^ install: http://ip/cblr/links/leap-x86_64/'
|
|
|
replace: ' install: http://{{ hpc_ip }}/cblr/links/leap-x86_64/'
|
|
|
tags: install
|
|
|
+
|
|
|
+ - name: Configure kickstart file leap - nic
|
|
|
+ lineinfile:
|
|
|
+ path: "{{ role_path }}/files/{{ cobbler_kickstart_file }}"
|
|
|
+ insertafter: ' </interface>'
|
|
|
+ line: >4
|
|
|
+ <interface>
|
|
|
+ <bootproto>dhcp</bootproto>
|
|
|
+ <name>{{ item }}</name>
|
|
|
+ <startmode>auto</startmode>
|
|
|
+ </interface>
|
|
|
+ tags: install
|
|
|
+ with_items: "{{ centos_host_nic }}"
|
|
|
+
|
|
|
+ - name: Remove blank lines
|
|
|
+ lineinfile:
|
|
|
+ path: "{{ role_path }}/files/{{ cobbler_kickstart_file }}"
|
|
|
+ regexp: '^\s*$'
|
|
|
+ state: absent
|
|
|
+ changed_when: false
|
|
|
+ tags: install
|
|
|
when: provision_os == os_supported_leap
|
|
|
|
|
|
- name: Random phrase generation
|