break: change with_items to loop
This commit is contained in:
parent
b058657992
commit
0598f74443
6 changed files with 11 additions and 10 deletions
|
@ -17,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.7' %>"
|
||||
command: /bin/systemd
|
||||
volume:
|
||||
- /sys/fs/cgroup:/sys/fs/cgroup:ro
|
||||
|
|
|
@ -3,7 +3,6 @@ sudo: required
|
|||
language: ruby
|
||||
|
||||
env:
|
||||
- ANSIBLE_VERSION=2.4
|
||||
- ANSIBLE_VERSION=2.5
|
||||
- ANSIBLE_VERSION=2.6
|
||||
- ANSIBLE_VERSION=2.7
|
||||
|
|
|
@ -4,6 +4,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|||
Which is based on [Keep A Changelog](http://keepachangelog.com/)
|
||||
|
||||
## [Unreleased]
|
||||
* break: change with_items to loop
|
||||
* test: add test with ansible 2.7
|
||||
* test: add ansible-lint
|
||||
* test: add yamllint
|
||||
|
|
|
@ -7,7 +7,7 @@ Install and configure Fail2ban
|
|||
|
||||
## Requirements
|
||||
|
||||
* Ansible >= 2.4
|
||||
* Ansible >= 2.5
|
||||
* Debian Stretch
|
||||
|
||||
## Role variables
|
||||
|
|
|
@ -5,7 +5,7 @@ galaxy_info:
|
|||
company: Adrien Waksberg
|
||||
description: Install and configure fail2ban
|
||||
license: Apache2
|
||||
min_ansible_version: 2.4
|
||||
min_ansible_version: 2.5
|
||||
|
||||
platforms:
|
||||
- name: Debian
|
||||
|
|
|
@ -1,12 +1,13 @@
|
|||
---
|
||||
- name: install fail2ban packages
|
||||
apt:
|
||||
name: '{{ item }}'
|
||||
name: '{{ packages }}'
|
||||
state: present
|
||||
with_items:
|
||||
- fail2ban
|
||||
- whois
|
||||
- bsd-mailx
|
||||
vars:
|
||||
packages:
|
||||
- fail2ban
|
||||
- whois
|
||||
- bsd-mailx
|
||||
tags: fail2ban
|
||||
|
||||
- name: remove default config
|
||||
|
@ -42,7 +43,7 @@
|
|||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
with_items: '{{ fail2ban_filters }}'
|
||||
loop: '{{ fail2ban_filters }}'
|
||||
notify: restart fail2ban
|
||||
tags: fail2ban
|
||||
|
||||
|
|
Loading…
Reference in a new issue