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

Merge branch 'nhc' into 'master'

only try to install nhc if its not already isntalled



See merge request !70

Former-commit-id: c18a887a
parents abc3fb2d 752bf529
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 - name: install automake
yum: name=automake state=present yum: name=automake state=present
become: true become: true
...@@ -18,18 +22,21 @@ ...@@ -18,18 +22,21 @@
copy: no copy: no
dest: /tmp dest: /tmp
creates: /tmp/nhc-{{ nhc_version }}/autogen.sh creates: /tmp/nhc-{{ nhc_version }}/autogen.sh
when: not nhc_binary.stat.exists
- name: build nhc - name: build nhc
shell: ./autogen.sh && ./configure --prefix={{ nhc_dir }} && make shell: ./autogen.sh && ./configure --prefix={{ nhc_dir }} && make
args: args:
chdir: /tmp/nhc-{{ nhc_version }} chdir: /tmp/nhc-{{ nhc_version }}
creates: /tmp/nhc-{{ nhc_version }}/configure creates: /tmp/nhc-{{ nhc_version }}/configure
when: not nhc_binary.stat.exists
- name: install nhc - name: install nhc
shell: make install shell: make install
sudo: true sudo: true
args: args:
chdir: /tmp/nhc-{{ nhc_version }} chdir: /tmp/nhc-{{ nhc_version }}
when: not nhc_binary.stat.exists
- name: ensure sysconfig dir exists - name: ensure sysconfig dir exists
file: dest=/etc/sysconfig state=directory owner=root group=root mode=755 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