nginx: Drop CentOS 7 support
This commit is contained in:
parent
de1f67e0cf
commit
a29a3ad19a
1 changed files with 0 additions and 20 deletions
|
@ -15,7 +15,6 @@
|
|||
when:
|
||||
- ansible_os_family == "RedHat"
|
||||
- ansible_distribution != "Fedora"
|
||||
- ansible_distribution_major_version|int >= 8
|
||||
|
||||
- name: Install packages
|
||||
ansible.builtin.package:
|
||||
|
@ -86,25 +85,6 @@
|
|||
job: /usr/local/sbin/nginx-logrotate
|
||||
when: ansible_os_family == "OpenBSD"
|
||||
|
||||
- name: Set logdir permissions
|
||||
ansible.builtin.file:
|
||||
path: /var/log/nginx
|
||||
mode: 0755
|
||||
owner: root
|
||||
group: root
|
||||
when:
|
||||
- ansible_distribution == "CentOS"
|
||||
- ansible_distribution_major_version == "7"
|
||||
|
||||
- name: Set logfile permissions
|
||||
ansible.builtin.lineinfile:
|
||||
path: /etc/logrotate.d/nginx
|
||||
regexp: '^\s+create '
|
||||
line: " create 0644 nginx root"
|
||||
when:
|
||||
- ansible_distribution == "CentOS"
|
||||
- ansible_distribution_major_version == "7"
|
||||
|
||||
- name: Import sftpuser role
|
||||
ansible.builtin.import_role:
|
||||
name: sftpuser
|
||||
|
|
Loading…
Add table
Reference in a new issue