Skip to content
Snippets Groups Projects
Commit c18a887a 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
parents 1fbb289c fe260750
No related branches found
No related tags found
1 merge request!70only try to install nhc if its not already isntalled
--- ---
- 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