mirror of
https://github.com/HanXHX/ansible-nginx.git
synced 2026-04-15 13:12:10 +07:00
Fix linter
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
---
|
||||
|
||||
- name: PKGNG | Install nginx and related tools
|
||||
pkgng:
|
||||
community.general.pkgng:
|
||||
name: "{{ item }}"
|
||||
state: present
|
||||
loop:
|
||||
@@ -13,7 +13,9 @@
|
||||
#
|
||||
# Bypass https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=224166#c1
|
||||
#
|
||||
- block:
|
||||
- name: Bypass https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=224166#c1
|
||||
when: true
|
||||
block:
|
||||
|
||||
- name: COMMAND | Create /usr/local/etc/fdfs/http.conf
|
||||
ansible.builtin.command: touch /usr/local/etc/fdfs/http.conf
|
||||
@@ -34,8 +36,6 @@
|
||||
state: restarted
|
||||
when: fd1.changed or fd2.changed
|
||||
|
||||
when: true
|
||||
|
||||
- name: FILE | Create configuration dir (like Debian)
|
||||
ansible.builtin.file:
|
||||
path: "{{ nginx_etc_dir }}/{{ item }}"
|
||||
|
||||
@@ -5,7 +5,9 @@
|
||||
path: "{{ nginx_acmesh_dir }}"
|
||||
register: acme
|
||||
|
||||
- block:
|
||||
- name: Install acme.sh if needed
|
||||
when: not acme.stat.exists
|
||||
block:
|
||||
|
||||
- name: APT | Install git
|
||||
ansible.builtin.apt:
|
||||
@@ -26,8 +28,7 @@
|
||||
|
||||
- name: COMMAND | Force acme.sh to use letsencrypt (instead of zerossl)
|
||||
ansible.builtin.command: '{{ nginx_acmesh_dir }}/acme.sh --set-default-ca --server letsencrypt --home "{{ nginx_acmesh_dir }}"'
|
||||
|
||||
when: not acme.stat.exists
|
||||
changed_when: true
|
||||
|
||||
- name: FILE | Remove temp acme.sh dir
|
||||
ansible.builtin.file:
|
||||
|
||||
Reference in New Issue
Block a user