liniting errors.
This commit is contained in:
@@ -61,18 +61,18 @@
|
|||||||
apt:
|
apt:
|
||||||
name:
|
name:
|
||||||
- curl
|
- curl
|
||||||
- gnupg
|
- gnupg
|
||||||
- ca-certificates
|
- ca-certificates
|
||||||
state: present
|
state: present
|
||||||
update_cache: no
|
update_cache: false
|
||||||
|
|
||||||
- name: Configure network buffer sizes (increased speed)
|
- name: Configure network buffer sizes (increased speed)
|
||||||
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: true
|
||||||
ignoreerrors: yes
|
ignoreerrors: true
|
||||||
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' }
|
||||||
@@ -88,27 +88,28 @@
|
|||||||
state: present
|
state: present
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|
||||||
- name: Install netbird
|
- name: Install netbird
|
||||||
apt:
|
ansible.builtin.apt:
|
||||||
name:
|
name:
|
||||||
- netbird
|
- netbird
|
||||||
state: present
|
state: present
|
||||||
update_cache: yes
|
update_cache: true
|
||||||
|
|
||||||
- name: Enable netbird service
|
- name: Enable netbird service
|
||||||
systemd:
|
ansible.builtin.systemd:
|
||||||
name: netbird
|
name: netbird
|
||||||
state: started
|
state: started
|
||||||
enabled: yes
|
enabled: true
|
||||||
|
|
||||||
- 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: true
|
||||||
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
|
||||||
|
changed_when: true
|
||||||
|
|||||||
Reference in New Issue
Block a user