]> arthur.barton.de Git - AnsibleRoles.git/blob - roles/git-nagcollect/tasks/main.yml
ansible-lint: Fix "Octal file permissions must contain leading zero" warnings
[AnsibleRoles.git] / roles / git-nagcollect / tasks / main.yml
1 ---
2 # git-nagcollect tasks
3
4 - name: setup "NagCollect" configuration
5   tags:
6     - monitoring
7   template: >
8     dest=/usr/local/etc/nagcollect.conf
9     group=root
10     mode=600
11     owner=root
12     src=nagcollect.conf.j2
13   when: nagcollect_server_url != "" and nagcollect_client_key != "" and nagcollect_client_id != ""
14
15 - name: clone "NagCollect" GIT repository
16   tags:
17     - git
18     - source
19     - monitoring
20   git: >
21     accept_hostkey=True
22     dest=/usr/local/src/NagCollect
23     repo="git://arthur.barton.de/nagcollect.git"
24     update=yes
25   notify:
26     - install "NagCollect" client
27   when: nagcollect_server_url != "" and nagcollect_client_key != "" and nagcollect_client_id != ""
28
29 - name: setup "NagCollect" to run periodically
30   tags:
31     - monitoring
32   template: >
33     dest=/etc/cron.d/nagcollect
34     group=root
35     mode=0644
36     owner=root
37     src=nagcollect.cron.j2
38   when: nagcollect_server_url != "" and nagcollect_client_key != "" and nagcollect_client_id != ""