Skip to content

Commit

Permalink
Merge pull request #159 from bartmichu/ansible-role
Browse files Browse the repository at this point in the history
Ansible role: adjust discovery script tasks
  • Loading branch information
v-zhuravlev authored Mar 19, 2021
2 parents cf6a820 + 1ed8f67 commit 333471f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ansible-role-zabbix-smartmontools/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,17 @@
when: zabbix_agent2_result.stat.exists

- name: "Create scripts directory"
file:
file:
path: /etc/zabbix/scripts
state: directory

- name: "Copy script"
copy:
src: ../files/smartctl-disks-discovery.pl
dest: /etc/zabbix/scripts/smartctl-disks-discovery.pl

- name: "Ensure script is executable"
file: dest=/etc/zabbix/scripts/smartctl-disks-discovery.pl mode=a+x
owner: zabbix
group: zabbix
mode: 0744

- name: "Restart zabbix-agent2"
service:
Expand Down

0 comments on commit 333471f

Please sign in to comment.