style: fix to conform yamllint test

This commit is contained in:
Adrien Waksberg 2018-11-29 18:55:28 +01:00
parent 4aed7e86c8
commit cd68ec7b1d
9 changed files with 13 additions and 4 deletions

View file

@ -1,3 +1,4 @@
---
driver:
name: docker_cli
@ -16,7 +17,7 @@ provisioner:
platforms:
- name: debian-9
driver_config:
image: nishiki/debian9:ansible-<%= ENV['ANSIBLE_VERSION'] ? ENV['ANSIBLE_VERSION'] : '2.6' %>
image: "nishiki/debian9:ansible-<%= ENV['ANSIBLE_VERSION'] ? ENV['ANSIBLE_VERSION'] : '2.6' %>"
command: /bin/systemd
volume:
- /sys/fs/cgroup:/sys/fs/cgroup:ro

View file

@ -1,4 +1,4 @@
---
AllCops:
Exclude:
- db/**/*

View file

@ -1,3 +1,4 @@
---
sudo: required
language: ruby

View file

@ -1,3 +1,4 @@
---
certbot_mail: ssl@host.local
certbot_key_size: 4096
certbot_path: /var/www/acme

View file

@ -1,3 +1,4 @@
---
galaxy_info:
role_name: certbot
author: Adrien Waksberg

View file

@ -1,3 +1,4 @@
---
- name: install certbot package
apt:
name: '{{ packages }}'

View file

@ -1,3 +1,4 @@
---
- name: check if certificate exist
stat:
path: '/etc/letsencrypt/live/{{ item.name }}'

View file

@ -1,3 +1,4 @@
---
- import_tasks: base.yml
tags: certbot

View file

@ -1,8 +1,10 @@
---
- hosts: certbot
connection: local
vars:
certbot_role: slave
certbot_domains:
- { name: test.local, command: 'echo OK > /tmp/test.txt'}
- name: test.local
command: 'echo OK > /tmp/test.txt'
roles:
- ansible-role-certbot
- ansible-role-certbot