diff --git a/roles/security/tasks/main.yml b/roles/security/tasks/main.yml index 4fb5106..b1d4482 100644 --- a/roles/security/tasks/main.yml +++ b/roles/security/tasks/main.yml @@ -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 \ No newline at end of file + ansible_command_timeout: 3600 + changed_when: true