Looks like we upload these for all distros, so moving them out of the
redhat specific setup tasks. I've also put them into their own yaml
file.
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
--- /dev/null
+---
+# We use these scripts to check to see if any of our test nodes have bad disks
+
+- name: Upload megacli and cli64 for raid monitoring and smart.pl to /usr/sbin/.
+ copy:
+ src: "../files/sbin/{{ item }}"
+ dest: "/usr/sbin/{{ item }}"
+ owner: root
+ group: root
+ mode: 0755
+ with_items:
+ - megacli
+ - cli64
+
+- name: Create /usr/libexec.
+ file:
+ path: /usr/libexec
+ owner: root
+ group: root
+ mode: 0755
+ state: directory
+
+- name: Upload custom netsaint scripts for raid/disk/smart/monitoring to /usr/libexec/.
+ copy:
+ src: "../files/libexec/{{ item }}"
+ dest: "/usr/libexec/{{ item }}"
+ owner: root
+ group: root
+ mode: 0755
+ with_items:
+ - smart.pl
+ - raid.pl
+ - diskusage.pl
tags:
- ntp-client
+# upload custom disk monitoring scripts
+- include: disk_monitoring.yml
+ tags:
+ - monitoring-scripts
+
# configure red hat specific things
- include: setup-redhat.yml
when: ansible_os_family == 'RedHat'
name: ubuntu
group: kvm
-- name: Upload megacli and cli64 for raid monitoring and smart.pl to /usr/sbin/.
- copy:
- src: "../files/sbin/{{ item }}"
- dest: "/usr/sbin/{{ item }}"
- owner: root
- group: root
- mode: 0755
- with_items:
- - megacli
- - cli64
-
-- name: Create /usr/libexec.
- file:
- path: /usr/libexec
- owner: root
- group: root
- mode: 0755
- state: directory
-
-- name: Upload custom netsaint scripts for raid/disk/smart/monitoring to /usr/libexec/.
- copy:
- src: "../files/libexec/{{ item }}"
- dest: "/usr/libexec/{{ item }}"
- owner: root
- group: root
- mode: 0755
- with_items:
- - smart.pl
- - raid.pl
- - diskusage.pl
-
- name: Upload rhel version specific sshd_config.
template:
src: "ssh/sshd_config_rhel_{{ ansible_distribution_version }}"