Fix linter

This commit is contained in:
Emilien Mantel
2022-11-25 09:52:40 +01:00
parent 55e075ac2b
commit 9f727adcb5
15 changed files with 61 additions and 59 deletions

View File

@@ -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 }}"

View File

@@ -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: