Compare commits
9 Commits
role_kuber
...
e5ebc2ad5f
| Author | SHA1 | Date | |
|---|---|---|---|
| e5ebc2ad5f | |||
| 98c51c6fc1 | |||
| 6b59bf6c75 | |||
| 1b2af7cf6c | |||
| d9cf3d2066 | |||
| f42bce9b6b | |||
| 975746e7d7 | |||
| a27ca2c37a | |||
| 247fdec7ae |
1
common/defaults/main.yml
Normal file
1
common/defaults/main.yml
Normal file
@@ -0,0 +1 @@
|
||||
ipv6_stable_secret: 1111:2222:3333:4444:5555:6666:7777:8888
|
||||
@@ -5,3 +5,5 @@
|
||||
- import_tasks: ./packages.yml
|
||||
|
||||
- import_tasks: ./aliases.yml
|
||||
|
||||
- import_tasks: ./networking.yml
|
||||
|
||||
22
common/tasks/networking.yml
Normal file
22
common/tasks/networking.yml
Normal file
@@ -0,0 +1,22 @@
|
||||
- name: Set sysctl settings for ip-forwarding
|
||||
copy:
|
||||
dest: "/etc/sysctl.d/ip-forwarding.conf"
|
||||
content: |
|
||||
net.ipv4.ip_forward = 1
|
||||
net.ipv6.conf.all.forwarding = 1
|
||||
notify: reload_sysctl
|
||||
|
||||
- name: Set sysctl settings for ipv6-address-generation
|
||||
copy:
|
||||
dest: "/etc/sysctl.d/ipv6-slaac-address-generation.conf"
|
||||
content: |
|
||||
net.ipv6.conf.default.addr_gen_mode = 2
|
||||
net.ipv6.conf.default.stable_secret = {{ ipv6_stable_secret }}
|
||||
notify: reload_sysctl
|
||||
|
||||
- name: Set sysctl settings to override ipv6-slaac with enabled forwarding
|
||||
copy:
|
||||
dest: "/etc/sysctl.d/ipv6-slaac-override.conf"
|
||||
content: |
|
||||
net.ipv6.conf.all.accept_ra = 2
|
||||
notify: reload_sysctl
|
||||
@@ -2,4 +2,6 @@
|
||||
when: "netclient.join_network_token is defined"
|
||||
command: "netclient join -t {{ netclient.join_network_token }}"
|
||||
failed_when: command.rc != 0
|
||||
changed_when: "'starting wireguard' in command.stdout"
|
||||
register: command
|
||||
throttle: 1
|
||||
|
||||
@@ -3,3 +3,6 @@
|
||||
- import_tasks: ./install.yml
|
||||
|
||||
- import_tasks: ./join-network.yml
|
||||
|
||||
- name: Gather facts to get changes
|
||||
ansible.builtin.gather_facts:
|
||||
|
||||
@@ -30,7 +30,7 @@ component netmaker_server {
|
||||
component nm_api
|
||||
nm_api -down- nm_api_http
|
||||
ng_http --( nm_api_http
|
||||
nm_api -up-( ng_TLS : db-connection to rqlite-master
|
||||
nm_api .up.( ng_TLS : db-connection to rqlite-master
|
||||
nm_api --( mq_plain
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user