whitespace removal
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
- name: Install required packages
|
- name: Install required packages
|
||||||
apt:
|
apt:
|
||||||
name:
|
name:
|
||||||
- curl
|
- curl
|
||||||
@@ -7,7 +7,7 @@
|
|||||||
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 }}"
|
||||||
@@ -18,7 +18,7 @@
|
|||||||
- { 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]
|
||||||
@@ -29,26 +29,26 @@
|
|||||||
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:
|
||||||
|
|||||||
Reference in New Issue
Block a user