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.
algo/roles/common/tasks/main.yml

29 lines
568 B
YAML

---
- block:
- name: Check the system
raw: uname -a
register: OS
- include_tasks: ubuntu.yml
when: '"Ubuntu" in OS.stdout or "Linux" in OS.stdout'
- include_tasks: freebsd.yml
when: '"FreeBSD" in OS.stdout'
- name: Gather additional facts
import_tasks: facts.yml
- name: Sysctl tuning
sysctl: name="{{ item.item }}" value="{{ item.value }}"
with_items:
- "{{ sysctl|default([]) }}"
tags:
- always
- meta: flush_handlers
rescue:
- debug: var=fail_hint
tags: always
- fail:
tags: always