liniting errors.
This commit is contained in:
@@ -61,18 +61,18 @@
|
||||
apt:
|
||||
name:
|
||||
- curl
|
||||
- gnupg
|
||||
- gnupg
|
||||
- ca-certificates
|
||||
state: present
|
||||
update_cache: no
|
||||
update_cache: false
|
||||
|
||||
- name: Configure network buffer sizes (increased speed)
|
||||
ansible.posix.sysctl:
|
||||
name: "{{ item.key }}"
|
||||
value: "{{ item.value }}"
|
||||
state: present
|
||||
reload: yes
|
||||
ignoreerrors: yes
|
||||
reload: true
|
||||
ignoreerrors: true
|
||||
loop:
|
||||
- { key: 'net.core.rmem_max', value: '7500000' }
|
||||
- { key: 'net.core.wmem_max', value: '7500000' }
|
||||
@@ -88,27 +88,28 @@
|
||||
state: present
|
||||
enabled: true
|
||||
|
||||
- name: Install netbird
|
||||
apt:
|
||||
- name: Install netbird
|
||||
ansible.builtin.apt:
|
||||
name:
|
||||
- netbird
|
||||
state: present
|
||||
update_cache: yes
|
||||
update_cache: true
|
||||
|
||||
- name: Enable netbird service
|
||||
systemd:
|
||||
ansible.builtin.systemd:
|
||||
name: netbird
|
||||
state: started
|
||||
enabled: yes
|
||||
enabled: true
|
||||
|
||||
- name: Check NetBird status
|
||||
ansible.builtin.command: netbird status
|
||||
register: netbird_status
|
||||
ignore_errors: yes
|
||||
changed_when: False
|
||||
ignore_errors: true
|
||||
changed_when: false
|
||||
|
||||
- name: Start NetBird if needed
|
||||
ansible.builtin.command: netbird up --management-url https://api.netbird.io --setup-key "{{ netbird_setup_key }}"
|
||||
when: netbird_status.stdout is search("NeedsLogin")
|
||||
vars:
|
||||
ansible_command_timeout: 3600
|
||||
ansible_command_timeout: 3600
|
||||
changed_when: true
|
||||
|
||||
Reference in New Issue
Block a user