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
|
- 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:
|
||||||
|
|
|
@ -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'
|
||||||
|
|
||||||
|
|
|
@ -1 +1,3 @@
|
||||||
|
---
|
||||||
|
|
||||||
php_default_version: '7.4'
|
php_default_version: '7.4'
|
||||||
|
|
|
@ -1 +1,3 @@
|
||||||
|
---
|
||||||
|
|
||||||
php_default_version: '7.3'
|
php_default_version: '7.3'
|
||||||
|
|
|
@ -1 +1,3 @@
|
||||||
|
---
|
||||||
|
|
||||||
php_default_version: '7.0'
|
php_default_version: '7.0'
|
||||||
|
|
|
@ -1 +1,3 @@
|
||||||
|
---
|
||||||
|
|
||||||
php_default_version: '7.2'
|
php_default_version: '7.2'
|
||||||
|
|
|
@ -1 +1,3 @@
|
||||||
|
---
|
||||||
|
|
||||||
php_default_version: '7.2'
|
php_default_version: '7.2'
|
||||||
|
|
|
@ -1 +1,3 @@
|
||||||
|
---
|
||||||
|
|
||||||
php_default_version: '7.2'
|
php_default_version: '7.2'
|
||||||
|
|
|
@ -1 +1,3 @@
|
||||||
|
---
|
||||||
|
|
||||||
php_default_version: '7.0'
|
php_default_version: '7.0'
|
||||||
|
|
Loading…
Reference in New Issue