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
apt:
pkg: "{{ p }}"
update_cache: yes
update_cache: true
cache_valid_time: 3600
vars:
p:

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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