Fix YAML linter
parent
2f4bc96d6a
commit
57aee1fbc4
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
|
||||
extends: default
|
||||
|
||||
rules:
|
||||
line-length: disable
|
|
@ -7,7 +7,7 @@
|
|||
- name: APT | Install packages
|
||||
apt:
|
||||
pkg: "{{ p }}"
|
||||
update_cache: yes
|
||||
update_cache: true
|
||||
cache_valid_time: 3600
|
||||
vars:
|
||||
p:
|
||||
|
|
|
@ -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'
|
||||
|
||||
|
|
|
@ -1 +1,3 @@
|
|||
---
|
||||
|
||||
php_default_version: '7.4'
|
||||
|
|
|
@ -1 +1,3 @@
|
|||
---
|
||||
|
||||
php_default_version: '7.3'
|
||||
|
|
|
@ -1 +1,3 @@
|
|||
---
|
||||
|
||||
php_default_version: '7.0'
|
||||
|
|
|
@ -1 +1,3 @@
|
|||
---
|
||||
|
||||
php_default_version: '7.2'
|
||||
|
|
|
@ -1 +1,3 @@
|
|||
---
|
||||
|
||||
php_default_version: '7.2'
|
||||
|
|
|
@ -1 +1,3 @@
|
|||
---
|
||||
|
||||
php_default_version: '7.2'
|
||||
|
|
|
@ -1 +1,3 @@
|
|||
---
|
||||
|
||||
php_default_version: '7.0'
|
||||
|
|
Loading…
Reference in New Issue