Skip to content

Commit

Permalink
network
Browse files Browse the repository at this point in the history
  • Loading branch information
bbaassssiiee committed Dec 19, 2024
1 parent 03e925c commit 8ab3eff
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions host-initialization.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env ansible-playbook
---

- name: Disable firewall
- name: Network config
hosts: k8s_cluster
become: true
gather_facts: false
Expand All @@ -12,19 +12,19 @@
state: stopped
enabled: false

- name: Disable AD DNS
ansible.builtin.lineinfile:
path: /etc/resolv.conf
regexp: 'nameserver 10.0.0.205'
line: 'nameserver 10.0.0.205'
state: absent
- name: Disable AD DNS
ansible.builtin.lineinfile:
path: /etc/resolv.conf
regexp: 'nameserver 10.0.0.205'
line: 'nameserver 10.0.0.205'
state: absent

- name: Set hostname
ansible.builtin.hostname:
name: "{{ inventory_hostname }}"
use: systemd
- name: Set hostname
ansible.builtin.hostname:
name: "{{ inventory_hostname }}"
use: systemd

- name: Enable proxy
- name: Proxy config
hosts: k8s_cluster
become: true
gather_facts: false
Expand Down

0 comments on commit 8ab3eff

Please sign in to comment.