Commit 15484d5c authored by Dan Thomson's avatar Dan Thomson

[#2] add TRIUMF repo and install triumf-nagios-client pkg

parent d140e824
......@@ -26,6 +26,7 @@ centos7_test_install:
echo -e "mirror_hostname: ${mirrorHostname}\nmirror_path: ${mirrorPath}\nmirror_protocol: ${mirrorProtocol}\n" > $MIRROR_VALUES_FILE
set -ex
# Basic role syntax check
ansible-galaxy install --force --role-file=requirements.yml
ansible-playbook --list-hosts tests/test-playbook.yml --inventory tests/inventory --connection local
ansible-playbook tests/test-playbook.yml --inventory tests/inventory --syntax-check
......
- src: git+https://gitlab.triumf.ca/ansible/roles/triumf-mirror-repo.git
version: master
name: triumf-mirror-repo
......@@ -7,8 +7,18 @@
loop_var: package
become: yes
- name: Install triumf mirror repo
include_role:
- name: triumf-mirror-repo
- name: Install nrpe package
yum:
name: nrpe
state: latest
become: yes
- name: Install triumf-nagios-client pkg
yum:
name: triumf-nagios-client
state: latest
become: yes
......@@ -22,15 +22,15 @@
loop_control:
loop_var: file
- name: Install custom nrpe.cfg
template:
src: templates/etc/nagios/nrpe.cfg
dest: /etc/nagios/nrpe.cfg
owner: root
group: root
mode: 0644
register: nrpe_cfg_file
become: yes
# - name: Install custom nrpe.cfg
# template:
# src: templates/etc/nagios/nrpe.cfg
# dest: /etc/nagios/nrpe.cfg
# owner: root
# group: root
# mode: 0644
# register: nrpe_cfg_file
# become: yes
- name: Install extra config files
copy:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment