mirror of https://github.com/trailofbits/algo
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
550 B
YAML
31 lines
550 B
YAML
---
|
|
- name: Check the system
|
|
raw: uname -a
|
|
register: OS
|
|
changed_when: false
|
|
tags:
|
|
- update-users
|
|
|
|
- fail:
|
|
when: cloud_test|default(false)|bool
|
|
|
|
- include_tasks: ubuntu.yml
|
|
when: '"Ubuntu" in OS.stdout or "Linux" in OS.stdout'
|
|
tags:
|
|
- update-users
|
|
|
|
- include_tasks: freebsd.yml
|
|
when: '"FreeBSD" in OS.stdout'
|
|
tags:
|
|
- update-users
|
|
|
|
- name: Sysctl tuning
|
|
sysctl: name="{{ item.item }}" value="{{ item.value }}"
|
|
when: item.item
|
|
with_items:
|
|
- "{{ sysctl|default([]) }}"
|
|
tags:
|
|
- always
|
|
|
|
- meta: flush_handlers
|