Mohammed Naser cd14d681a0 tasks: start services on install
Change-Id: I6f87a1c5f905b92a6193bbba63446b8e51a91468
2019-08-13 10:22:47 -04:00

43 lines
1.2 KiB
YAML

# Copyright 2019, VEXXHOST, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
- include_tasks: "setup-repo/{{ ansible_os_family | lower }}.yaml"
- name: Install packages
become: true
package:
name: "{{ openmanage_packages }}"
state: present
- name: Install check_openmanage
become: true
get_url:
url: http://folk.uio.no/trondham/software/check_openmanage-3.7.12/check_openmanage
dest: /usr/local/bin/check_openmanage
checksum: md5:9696bbb3fbc258ffaaa23fff3bd50f97
mode: '0755'
when:
- openmanage_install_monitoring_tools | bool
- name: Start services
become: true
service:
name: "{{ item }}"
state: started
enabled: true
loop:
- instsvcdrv
- dsm_sa_eventmgrd
- dsm_sa_datamgrd