Skip to content
Snippets Groups Projects
Commit 752bf529 authored by Chris Hines's avatar Chris Hines
Browse files

only try to install nhc if its not already isntalled

Former-commit-id: fe260750
parent 4268beb4
No related branches found
No related tags found
No related merge requests found
---
- name: check existing installation
stat: path="{{ nhc_dir }}/sbin/nhc"
register: nhc_binary
- name: install automake
yum: name=automake state=present
become: true
......@@ -18,18 +22,21 @@
copy: no
dest: /tmp
creates: /tmp/nhc-{{ nhc_version }}/autogen.sh
when: not nhc_binary.stat.exists
- name: build nhc
shell: ./autogen.sh && ./configure --prefix={{ nhc_dir }} && make
args:
chdir: /tmp/nhc-{{ nhc_version }}
creates: /tmp/nhc-{{ nhc_version }}/configure
when: not nhc_binary.stat.exists
- name: install nhc
shell: make install
sudo: true
args:
chdir: /tmp/nhc-{{ nhc_version }}
when: not nhc_binary.stat.exists
- name: ensure sysconfig dir exists
file: dest=/etc/sysconfig state=directory owner=root group=root mode=755
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment