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:
|
when:
|
||||||
- ansible_os_family == "RedHat"
|
- ansible_os_family == "RedHat"
|
||||||
- ansible_distribution != "Fedora"
|
- ansible_distribution != "Fedora"
|
||||||
- ansible_distribution_major_version|int >= 8
|
|
||||||
|
|
||||||
- name: Install packages
|
- name: Install packages
|
||||||
ansible.builtin.package:
|
ansible.builtin.package:
|
||||||
|
@ -86,25 +85,6 @@
|
||||||
job: /usr/local/sbin/nginx-logrotate
|
job: /usr/local/sbin/nginx-logrotate
|
||||||
when: ansible_os_family == "OpenBSD"
|
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
|
- name: Import sftpuser role
|
||||||
ansible.builtin.import_role:
|
ansible.builtin.import_role:
|
||||||
name: sftpuser
|
name: sftpuser
|
||||||
|
|
Loading…
Add table
Reference in a new issue