浏览代码

ZNC: don't make install if configure or make fail

ZNC module compilation can fail on memory-limited systems, causing ZNC
to not work properly. But even after the failure, make install still
creates /usr/local/bin/znc. Thus Ansible would skip the ZNC build and
install step on future runs, despite ZNC not being correctly installed,
causing the playbook to appear to complete successfully and requiring
manual troubleshooting.
catern 10 年前
父节点
当前提交
54e62152d2
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      roles/ircbouncer/tasks/znc.yml

+ 1
- 1
roles/ircbouncer/tasks/znc.yml 查看文件

23
   command: tar xzf /root/znc-{{ znc_version }}.tar.gz chdir=/root creates=/root/znc-{{ znc_version }}/configure
23
   command: tar xzf /root/znc-{{ znc_version }}.tar.gz chdir=/root creates=/root/znc-{{ znc_version }}/configure
24
 
24
 
25
 - name: Build and install znc
25
 - name: Build and install znc
26
-  shell: ./configure --enable-python ; make ; make install executable=/bin/bash chdir=/root/znc-{{ znc_version }} creates=/usr/local/bin/znc
26
+  shell: ./configure --enable-python && make && make install executable=/bin/bash chdir=/root/znc-{{ znc_version }} creates=/usr/local/bin/znc
27
   notify: restart znc
27
   notify: restart znc
28
 
28
 
29
 - name: Create znc group
29
 - name: Create znc group

正在加载...
取消
保存