{"id":1162,"date":"2024-08-25T11:57:47","date_gmt":"2024-08-25T11:57:47","guid":{"rendered":"https:\/\/www.linuxsystems.ovh\/?p=1162"},"modified":"2024-08-26T11:15:54","modified_gmt":"2024-08-26T11:15:54","slug":"dodanie-ip-w-grubie-w-rocky-linux-9","status":"publish","type":"post","link":"https:\/\/www.linuxsystems.ovh\/?p=1162","title":{"rendered":"Dodanie IP w grubie w rocky linux 9"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">W nowym rocky linux 9 zmieni\u0142o si\u0119 dodawanie argument\u00f3w do gruba.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Zamiast edycji pliku w \/etc\/default\/grub robi si\u0119 to nast\u0119puj\u0105co:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>grubby --update-kernel=ALL --args=\"rd.neednet=1 ip=1.2.3.4::1.2.3.1:255.255.255.0:hostname:eth0:none\"<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">W ansible mo\u017cemy to uzyska\u0107 poprzez:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>- name: Add IP to grub\n  ansible.builtin.command:\n    cmd: grubby --update-kernel=ALL --args='ip={{ ansible_default_ipv4.address }}::{{ ansible_default_ipv4.gateway }}:{{ ansible_default_ipv4.netmask }}::{{ ansible_default_ipv4.alias }}:none\"'\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>W nowym rocky linux 9 zmieni\u0142o si\u0119 dodawanie argument\u00f3w do gruba. Zamiast edycji pliku w \/etc\/default\/grub robi si\u0119 to nast\u0119puj\u0105co: W ansible mo\u017cemy to uzyska\u0107 poprzez:<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[38],"tags":[],"class_list":["post-1162","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.linuxsystems.ovh\/index.php?rest_route=\/wp\/v2\/posts\/1162","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.linuxsystems.ovh\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxsystems.ovh\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxsystems.ovh\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxsystems.ovh\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1162"}],"version-history":[{"count":4,"href":"https:\/\/www.linuxsystems.ovh\/index.php?rest_route=\/wp\/v2\/posts\/1162\/revisions"}],"predecessor-version":[{"id":1167,"href":"https:\/\/www.linuxsystems.ovh\/index.php?rest_route=\/wp\/v2\/posts\/1162\/revisions\/1167"}],"wp:attachment":[{"href":"https:\/\/www.linuxsystems.ovh\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1162"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxsystems.ovh\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1162"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxsystems.ovh\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1162"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}