40 lines
931 B
YAML
40 lines
931 B
YAML
---
|
|
- name: Install more nginx build deps
|
|
become: true
|
|
ansible.builtin.package:
|
|
name:
|
|
- build-essential
|
|
- libpcre3
|
|
- libpcre3-dev
|
|
- zlib1g
|
|
- zlib1g-dev
|
|
- libssl-dev
|
|
- libgd-dev
|
|
- libxml2
|
|
- libxml2-dev
|
|
- uuid-dev
|
|
default_release: unstable
|
|
state: present
|
|
|
|
- name: Compile NginX
|
|
become: true
|
|
ansible.builtin.command:
|
|
cmd: "./configure --with-http_ssl_module --add-module=/srv/checkout/rtmp_{{ rtmp_module_git_version }}/"
|
|
chdir: "/srv/checkout/nginx_{{ nginx_version }}"
|
|
register: _compile
|
|
|
|
- name: Compile Output
|
|
ansible.builtin.debug:
|
|
msg: "{{ _compile.msg }}"
|
|
verbosity: 1
|
|
|
|
- name: Make nginx
|
|
become: true
|
|
community.general.make:
|
|
chdir: "/srv/checkout/nginx_{{ nginx_version }}"
|
|
|
|
- name: Make install nginx
|
|
become: true
|
|
community.general.make:
|
|
chdir: "/srv/checkout/nginx_{{ nginx_version }}"
|
|
target: 'install'
|