Skip to content
Snippets Groups Projects
Commit d6e1d50c authored by jurgenhaas's avatar jurgenhaas
Browse files

ansible-playbooks/general#19 Set role header

parent 674655b6
No related branches found
No related tags found
No related merge requests found
--- ---
# file: roles/netdata/tasks/main.yml # file: roles/netdata/tasks/main.yml
- name: "Install required packages" - name: "NetData Role"
apt: set_fact: role_netdata_started=true
pkg={{ item }} tags: always
state=installed
update_cache=yes
with_items:
- zlib1g-dev
- gcc
- make
- git
- autoconf
- autogen
- automake
- pkg-config
- uuid-dev
#FireQOS available from 15.04
#- firehol
- name: "Clone NetData" - block:
git:
accept_hostkey: true
repo: "https://github.com/firehol/netdata.git"
dest: "/opt/netdata"
force: yes
depth: 1
notify:
- "Install and configure NetData"
- name: "Install startup script" - name: "Install required packages"
template: apt:
src=etc_init_d_netdata pkg={{ item }}
dest=/etc/init.d/netdata state=installed
owner=root update_cache=yes
group=root with_items:
mode=755 - zlib1g-dev
notify: - gcc
- "Include NetData to Boot-List" - make
- "Start NetData" - git
- autoconf
- autogen
- automake
- pkg-config
- uuid-dev
#FireQOS available from 15.04
#- firehol
- name: "Configure FireQoS" - name: "Clone NetData"
template: git:
src=etc_fireqos_fireqos.conf accept_hostkey: true
dest=/etc/fireqos/fireqos.conf repo: "https://github.com/firehol/netdata.git"
owner=root dest: "/opt/netdata"
group=root force: yes
mode=755 depth: 1
when: false notify:
notify: - "Install and configure NetData"
- "Start FireQoS"
- name: "Install startup script"
template:
src=etc_init_d_netdata
dest=/etc/init.d/netdata
owner=root
group=root
mode=755
notify:
- "Include NetData to Boot-List"
- "Start NetData"
- name: "Configure FireQoS"
template:
src=etc_fireqos_fireqos.conf
dest=/etc/fireqos/fireqos.conf
owner=root
group=root
mode=755
when: false
notify:
- "Start FireQoS"
when: '"netdata" not in excluded_roles'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment