Commit 384a932e authored by Lars Beckers's avatar Lars Beckers
Browse files

lint yaml files

parent d32bc532
---
extends: default
rules:
comments-indentation:
level: warning
document-start:
level: error
empty-lines:
max: 1
empty-values:
forbid-in-flow-mappings: true
forbid-in-block-mappings: true
line-length:
level: warning
octal-values:
forbid-implicit-octal: true
level: warning
......@@ -26,7 +26,10 @@
- mysql
- name: ensure mysql is started
service: name=mysql state=started enabled=yes
service:
name: mysql
state: started
enabled: true
tags:
- service
- mysql
......@@ -34,12 +37,14 @@
- name: ensure the mysql root user exists and has the correct password
mysql_user:
name: root
# yamllint disable-line rule:line-length
password: "{{ lookup('passwordstore', 'db/{{ ansible_hostname }}-mysql create=true length=20') }}"
login_user: root
# yamllint disable-line rule:line-length
login_password: "{{ lookup('passwordstore', 'db/{{ ansible_hostname }}-mysql create=true length=20') }}"
register: mysql_root_creation_result
no_log: True
ignore_errors: yes
no_log: true
ignore_errors: true
tags:
- mysql
- config
......@@ -47,8 +52,9 @@
- name: initialize the mysql root user
mysql_user:
name: root
# yamllint disable-line rule:line-length
password: "{{ lookup('passwordstore', 'db/{{ ansible_hostname }}-mysql create=true length=20') }}"
no_log: True
no_log: true
when: mysql_root_creation_result|failed
tags:
- mysql
......
---
postgres_enable_frequently: True
postgres_enable_frequently: true
......@@ -15,7 +15,7 @@
service:
name: postgresql
state: started
enabled: yes
enabled: true
tags:
- postgres
......@@ -34,7 +34,7 @@
dest: /usr/local/bin/
owner: root
group: root
mode: 0755
mode: '0755'
tags:
- postgres
- rsnapshot
......@@ -46,7 +46,7 @@
dest: /etc/
owner: root
group: root
mode: 0644
mode: '0644'
tags:
- postgres
- rsnapshot
......@@ -58,7 +58,7 @@
dest: /etc/cron.d/postgres-snapshot
owner: root
group: root
mode: 0644
mode: '0644'
tags:
- postgres
- rsnapshot
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment