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
651 B
YAML

8 years ago
---
- block:
- include_tasks: ubuntu.yml
when: ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu'
8 years ago
- include_tasks: freebsd.yml
when: ansible_distribution == 'FreeBSD'
8 years ago
- name: Install tools
package: name="{{ item }}" state=present
with_items:
- "{{ tools|default([]) }}"
tags:
- always
8 years ago
- name: Sysctl tuning
sysctl: name="{{ item.item }}" value="{{ item.value }}"
with_items:
- "{{ sysctl|default([]) }}"
tags:
- always
8 years ago
- meta: flush_handlers
rescue:
- debug: var=fail_hint
tags: always
- fail:
tags: always