Skip to content

Commit a221c65

Browse files
committed
initial commit
1 parent ce88653 commit a221c65

File tree

7 files changed

+18
-10
lines changed

7 files changed

+18
-10
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ Debian:
7575
- 9.10
7676
- 9.11
7777
- 9.12
78+
Ubuntu:
79+
versions:
80+
- 18.04
7881
```
7982
8083
Role Variables

defaults/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ app_protect_linux_families:
8282
- 9.10
8383
- 9.11
8484
- 9.12
85+
Ubuntu:
86+
- 18.04
8587

8688
app_protect_security_policy_template_enable: true
8789
app_protect_security_policy_template:

meta/main.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ galaxy_info:
1616
- name: Debian
1717
versions:
1818
- stretch
19+
- name: Ubuntu
20+
versions:
21+
- bionic
1922

2023
galaxy_tags:
2124
- waf
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
22
- hosts: wafs
3-
remote_user: centos
3+
remote_user: centos
44
pre_tasks:
55
- name: load the vars
6-
include_vars:
6+
include_vars:
77
file: "{{playbook_dir}}/nginx-app-protect-vars.yml"
88
roles:
9-
- nginxinc.nginx_app_protect
9+
- nginxinc.nginx_app_protect

tasks/prerequisites/install-prerequisites.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
msg: "ansible_distribution {{ ansible_distribution }}"
55
verbosity: 2
66

7-
- name: "(Setup: Debian) Install Prerequisites"
7+
- name: "(Setup: Debian/Ubuntu) Install Prerequisites"
88
import_tasks: setup-debian.yml
9-
when: ansible_distribution == "Debian"
9+
when: ansible_distribution == "Debian" or ansible_distribution == "Ubuntu"
1010

1111
- name: "(Setup: CentOS) Install Prerequisites"
1212
import_tasks: setup-centos.yml

tasks/prerequisites/setup-debian.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
- name: "(Install: Debian) Install Required Debian Dependencies"
2+
- name: "(Setup: Debian/Ubuntu) Install Required Debian and Ubuntu Dependencies"
33
package:
4-
name: apt-transport-https, lsb-release, ca-certificates
4+
name: apt-transport-https, lsb-release, ca-certificates, wget
55
state: present

tasks/setup-debian-repos.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
2-
- name: "(Setup: Debian) Setup NGINX App Protect Repository"
2+
- name: "(Setup: Debian/Ubuntu) Setup NGINX App Protect Repository"
33
apt_repository:
44
repo: deb [arch=amd64] https://plus-pkgs.nginx.com/{{ ansible_distribution | lower }} {{ ansible_distribution_release }} nginx-plus
55
filename: nginx-plus
66
update_cache: false
77
state: "{{ nginx_license_status | default ('present') }}"
88

9-
- name: "(Setup: Debian) Setup NGINX App Protect Signatures Repository"
9+
- name: "(Setup: Debian/Ubuntu) Setup NGINX App Protect Signatures Repository"
1010
apt_repository:
1111
repo: deb [arch=amd64] https://app-protect-sigs.nginx.com/{{ ansible_distribution | lower }} {{ ansible_distribution_release }} nginx-plus
1212
filename: app-protect-sigs
@@ -35,6 +35,6 @@
3535
Acquire::https::app-protect-sigs.nginx.com::SslKey "/etc/ssl/nginx/{{ nginx_license.key | basename }}";
3636
state: "{{ nginx_license_status | default ('present') }}"
3737

38-
- name: "(Setup: Debian) Update APT Cache"
38+
- name: "(Setup: Debian/Ubuntu) Update APT Cache"
3939
apt:
4040
update_cache: true

0 commit comments

Comments
 (0)