liniting errors.

This commit is contained in:
tolerryan
2026-09-01 22:30:09 +00:00
parent e4a7e6e6e1
commit 1ec27052f9

View File

@@ -64,15 +64,15 @@
- 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' }
@@ -89,26 +89,27 @@
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