Skip to content
Snippets Groups Projects
Commit bd268606 authored by Pietsch, Martin's avatar Pietsch, Martin
Browse files

added script to set hostname via DHCP

parent b1799f23
No related branches found
No related tags found
No related merge requests found
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
- "etc" - "etc"
- "etc/apk" - "etc/apk"
- "etc/conf.d" - "etc/conf.d"
- "etc/udhcpc/post-bound"
loop_control: loop_control:
loop_var: _linux_dir loop_var: _linux_dir
...@@ -45,6 +46,12 @@ ...@@ -45,6 +46,12 @@
dest: "{{ '%s/etc/inittab' | format(linux_build_installer_root) }}" dest: "{{ '%s/etc/inittab' | format(linux_build_installer_root) }}"
mode: "0644" mode: "0644"
- name: install hostname script for udhcpc
copy:
src: hostname
dest: "{{ '%s/etc/udhcpc/post-bound/hostname' | format(linux_build_installer_root) }}"
mode: "0755"
- name: install ssh public key - name: install ssh public key
copy: copy:
src: "{{ '%s/ansible.pub' | format(sdm_sshkeys) }}" src: "{{ '%s/ansible.pub' | format(sdm_sshkeys) }}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment