whitespace removal
This commit is contained in:
@@ -1,55 +1,55 @@
|
|||||||
- name: Install required packages
|
- name: Install required packages
|
||||||
apt:
|
apt:
|
||||||
name:
|
name:
|
||||||
- curl
|
- curl
|
||||||
- gnupg
|
- gnupg
|
||||||
- ca-certificates
|
- ca-certificates
|
||||||
state: present
|
state: present
|
||||||
update_cache: no
|
update_cache: no
|
||||||
|
|
||||||
- name: Configure network buffer sizes
|
- name: Configure network buffer sizes
|
||||||
ansible.posix.sysctl:
|
ansible.posix.sysctl:
|
||||||
name: "{{ item.key }}"
|
name: "{{ item.key }}"
|
||||||
value: "{{ item.value }}"
|
value: "{{ item.value }}"
|
||||||
state: present
|
state: present
|
||||||
reload: yes
|
reload: yes
|
||||||
ignoreerrors: yes
|
ignoreerrors: yes
|
||||||
loop:
|
loop:
|
||||||
- { key: 'net.core.rmem_max', value: '7500000' }
|
- { key: 'net.core.rmem_max', value: '7500000' }
|
||||||
- { key: 'net.core.wmem_max', value: '7500000' }
|
- { key: 'net.core.wmem_max', value: '7500000' }
|
||||||
|
|
||||||
- name: Add repository with key
|
- name: Add repository with key
|
||||||
ansible.builtin.deb822_repository:
|
ansible.builtin.deb822_repository:
|
||||||
name: netbird
|
name: netbird
|
||||||
types: [deb]
|
types: [deb]
|
||||||
uris: "https://pkgs.netbird.io/debian"
|
uris: "https://pkgs.netbird.io/debian"
|
||||||
components: [main]
|
components: [main]
|
||||||
suites: ["stable"]
|
suites: ["stable"]
|
||||||
signed_by: https://pkgs.netbird.io/debian/public.key
|
signed_by: https://pkgs.netbird.io/debian/public.key
|
||||||
state: present
|
state: present
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|
||||||
- name: Install netbird
|
- name: Install netbird
|
||||||
apt:
|
apt:
|
||||||
name:
|
name:
|
||||||
- netbird
|
- netbird
|
||||||
state: present
|
state: present
|
||||||
update_cache: yes
|
update_cache: yes
|
||||||
|
|
||||||
- name: Enable netbird service
|
- name: Enable netbird service
|
||||||
systemd:
|
systemd:
|
||||||
name: netbird
|
name: netbird
|
||||||
state: started
|
state: started
|
||||||
enabled: yes
|
enabled: yes
|
||||||
|
|
||||||
- name: Check NetBird status
|
- name: Check NetBird status
|
||||||
ansible.builtin.command: netbird status
|
ansible.builtin.command: netbird status
|
||||||
register: netbird_status
|
register: netbird_status
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
changed_when: False
|
changed_when: False
|
||||||
|
|
||||||
- name: Start NetBird if needed
|
- name: Start NetBird if needed
|
||||||
ansible.builtin.command: netbird up --management-url https://api.netbird.io --setup-key "{{ netbird_setup_key }}"
|
ansible.builtin.command: netbird up --management-url https://api.netbird.io --setup-key "{{ netbird_setup_key }}"
|
||||||
when: netbird_status.stdout is search("NeedsLogin")
|
when: netbird_status.stdout is search("NeedsLogin")
|
||||||
vars:
|
vars:
|
||||||
ansible_command_timeout: 3600
|
ansible_command_timeout: 3600
|
||||||
Reference in New Issue
Block a user