Skip to content

Commit 67edc93

Browse files
committed
Rename modules to use Ansible FQCNs (#231)
1 parent aaf471a commit 67edc93

File tree

5 files changed

+24
-12
lines changed

5 files changed

+24
-12
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
22
collections:
33
- name: community.general
4-
version: 4.4.0
4+
version: 4.6.1
55
- name: ansible.posix
66
version: 1.3.0
77
- name: community.docker
8-
version: 2.1.1
8+
version: 2.2.1

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
## 0.5.1 (Unreleased)
44

5+
FEATURES:
6+
7+
Rename all modules to use the fully qualified collection name (FQCN) per Ansible guidelines.
8+
9+
ENHANCEMENTS:
10+
11+
Bump the Ansible `community.general` collection to `4.6.1` and `community.docker` collection to `2.2.1`.
12+
513
BUG FIXES:
614

715
Ansible check mode runs will no longer fail if NGINX has not yet been installed.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ This role configures NGINX Open Source and NGINX Plus on your target host.
2121
---
2222
collections:
2323
- name: community.general
24-
version: 4.4.0
24+
version: 4.6.1
2525
- name: ansible.posix
2626
version: 1.3.0
2727
- name: community.docker # Only required if you plan to use Molecule (see below)
28-
version: 2.1.1
28+
version: 2.2.1
2929
```
3030
3131
**Note:** You can alternatively install the Ansible community distribution (what is known as the "old" Ansible) if you don't want to manage individual collections.

meta/main.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,7 @@ galaxy_info:
4747
- server
4848
- development
4949
- configuration
50+
51+
collections:
52+
- ansible.posix
53+
- community.general

tasks/prerequisites/setup-selinux.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,57 +18,57 @@
1818
when: ansible_facts['os_family'] == "RedHat"
1919

2020
- name: Set SELinux mode to permissive
21-
selinux:
21+
ansible.posix.selinux:
2222
state: permissive
2323
policy: targeted
2424
when: not (ansible_check_mode and nginx_config_selinux_enforcing)
2525

2626
- name: Allow SELinux HTTP network connections
27-
seboolean:
27+
ansible.posix.seboolean:
2828
name: httpd_can_network_connect
2929
state: true
3030
persistent: true
3131

3232
- name: Allow SELinux HTTP network connections
33-
seboolean:
33+
ansible.posix.seboolean:
3434
name: httpd_can_network_relay
3535
state: true
3636
persistent: true
3737

3838
- name: Allow SELinux TCP connections on status ports
39-
seport:
39+
community.general.selinux:
4040
ports: "{{ nginx_config_status_port }}"
4141
proto: tcp
4242
setype: http_port_t
4343
state: present
4444
when: nginx_config_status_port is defined
4545

4646
- name: Allow SELinux TCP connections on Rest API ports
47-
seport:
47+
community.general.selinux:
4848
ports: "{{ nginx_config_rest_api_port }}"
4949
proto: tcp
5050
setype: http_port_t
5151
state: present
5252
when: nginx_config_rest_api_port is defined
5353

5454
- name: Allow SELinux TCP connections on specific ports
55-
seport:
55+
community.general.selinux:
5656
ports: "{{ nginx_config_selinux_tcp_ports }}"
5757
proto: tcp
5858
setype: http_port_t
5959
state: present
6060
when: nginx_config_selinux_tcp_ports is defined
6161

6262
- name: Allow SELinux UDP connections on specific ports
63-
seport:
63+
community.general.selinux:
6464
ports: "{{ nginx_config_selinux_udp_ports }}"
6565
proto: udp
6666
setype: http_port_t
6767
state: present
6868
when: nginx_config_selinux_udp_ports is defined
6969

7070
- name: Set SELinux mode to enforcing
71-
selinux:
71+
ansible.posix.selinux:
7272
state: enforcing
7373
policy: targeted
7474
when: nginx_config_selinux_enforcing

0 commit comments

Comments
 (0)