Fix YAML linter

new_release
Emilien Mantel 2021-08-31 11:05:00 +02:00
parent 2f4bc96d6a
commit 57aee1fbc4
10 changed files with 35 additions and 15 deletions

6
.yamllint.yml 100644
View File

@ -0,0 +1,6 @@
---
extends: default
rules:
line-length: disable

View File

@ -7,7 +7,7 @@
- name: APT | Install packages - name: APT | Install packages
apt: apt:
pkg: "{{ p }}" pkg: "{{ p }}"
update_cache: yes update_cache: true
cache_valid_time: 3600 cache_valid_time: 3600
vars: vars:
p: p:

View File

@ -37,8 +37,8 @@
- name: USER | Create PHP user - name: USER | Create PHP user
user: user:
name: 'foo' name: 'foo'
system: yes system: true
create_home: no create_home: false
shell: '/usr/sbin/nologin' shell: '/usr/sbin/nologin'
tasks: tasks:
@ -70,19 +70,19 @@
- block: - block:
- name: COMMAND | Docker nginx status - name: COMMAND | Docker nginx status
command: service nginx status command: service nginx status
args: args:
warn: false warn: false
changed_when: false changed_when: false
failed_when: false failed_when: false
register: ngs register: ngs
- name: COMMAND | Docker start nginx - name: COMMAND | Docker start nginx
command: service nginx start command: service nginx start
args: args:
warn: false warn: false
when: ngs.stdout.find('nginx is not running') != -1 when: ngs.stdout.find('nginx is not running') != -1
when: ansible_virtualization_type == 'docker' when: ansible_virtualization_type == 'docker'

View File

@ -1 +1,3 @@
---
php_default_version: '7.4' php_default_version: '7.4'

View File

@ -1 +1,3 @@
---
php_default_version: '7.3' php_default_version: '7.3'

View File

@ -1 +1,3 @@
---
php_default_version: '7.0' php_default_version: '7.0'

View File

@ -1 +1,3 @@
---
php_default_version: '7.2' php_default_version: '7.2'

View File

@ -1 +1,3 @@
---
php_default_version: '7.2' php_default_version: '7.2'

View File

@ -1 +1,3 @@
---
php_default_version: '7.2' php_default_version: '7.2'

View File

@ -1 +1,3 @@
---
php_default_version: '7.0' php_default_version: '7.0'