Cs fixes
This commit is contained in:
parent
02c0c85401
commit
7fcd4e83e1
|
@ -1,3 +1,4 @@
|
|||
---
|
||||
warn_list:
|
||||
- '106'
|
||||
- '503'
|
||||
|
|
|
@ -43,6 +43,7 @@ jobs:
|
|||
matrix:
|
||||
include:
|
||||
- distro: debian8
|
||||
ansible-version: '<2.10'
|
||||
- distro: debian9
|
||||
- distro: debian10
|
||||
- distro: ubuntu1604
|
||||
|
|
89
.travis.yml
89
.travis.yml
|
@ -1,89 +0,0 @@
|
|||
---
|
||||
sudo: required
|
||||
dist: xenial
|
||||
|
||||
language: python
|
||||
python:
|
||||
- "2.7"
|
||||
- "3.5"
|
||||
|
||||
env:
|
||||
- ANSIBLE_VERSION=latest
|
||||
- ANSIBLE_VERSION=2.10.2
|
||||
- ANSIBLE_VERSION=2.10.1
|
||||
- ANSIBLE_VERSION=2.10.0
|
||||
- ANSIBLE_VERSION=2.9.14
|
||||
- ANSIBLE_VERSION=2.9.13
|
||||
- ANSIBLE_VERSION=2.9.12
|
||||
- ANSIBLE_VERSION=2.9.11
|
||||
- ANSIBLE_VERSION=2.9.10
|
||||
- ANSIBLE_VERSION=2.9.9
|
||||
- ANSIBLE_VERSION=2.9.8
|
||||
- ANSIBLE_VERSION=2.9.7
|
||||
- ANSIBLE_VERSION=2.9.6
|
||||
- ANSIBLE_VERSION=2.9.5
|
||||
- ANSIBLE_VERSION=2.9.4
|
||||
- ANSIBLE_VERSION=2.9.3
|
||||
- ANSIBLE_VERSION=2.9.2
|
||||
- ANSIBLE_VERSION=2.9.1
|
||||
- ANSIBLE_VERSION=2.9.0
|
||||
- ANSIBLE_VERSION=2.8.16
|
||||
- ANSIBLE_VERSION=2.8.15
|
||||
- ANSIBLE_VERSION=2.8.14
|
||||
- ANSIBLE_VERSION=2.8.13
|
||||
- ANSIBLE_VERSION=2.8.12
|
||||
- ANSIBLE_VERSION=2.8.11
|
||||
- ANSIBLE_VERSION=2.8.10
|
||||
- ANSIBLE_VERSION=2.8.9
|
||||
- ANSIBLE_VERSION=2.8.8
|
||||
- ANSIBLE_VERSION=2.8.7
|
||||
- ANSIBLE_VERSION=2.8.6
|
||||
- ANSIBLE_VERSION=2.8.5
|
||||
- ANSIBLE_VERSION=2.8.4
|
||||
- ANSIBLE_VERSION=2.8.3
|
||||
- ANSIBLE_VERSION=2.8.2
|
||||
- ANSIBLE_VERSION=2.8.1
|
||||
- ANSIBLE_VERSION=2.8.0
|
||||
|
||||
branches:
|
||||
only:
|
||||
- master
|
||||
|
||||
matrix:
|
||||
allow_failures:
|
||||
# https://github.com/ansible/ansible/issues/56674
|
||||
- env: ANSIBLE_VERSION=2.8.0
|
||||
|
||||
before_install:
|
||||
- sudo apt-get update -qq
|
||||
|
||||
# Remove ufw
|
||||
- sudo apt-get remove --purge --yes ufw
|
||||
|
||||
install:
|
||||
# Install Ansible.
|
||||
- if [ "$ANSIBLE_VERSION" = "latest" ]; then pip install ansible; else pip install ansible==$ANSIBLE_VERSION; fi
|
||||
- if [ "$ANSIBLE_VERSION" = "latest" ]; then pip install ansible-lint; fi
|
||||
|
||||
script:
|
||||
# Check the role/playbook's syntax.
|
||||
- ansible-playbook -i tests/inventory tests/test.yml --syntax-check
|
||||
|
||||
# Run the role/playbook with ansible-playbook.
|
||||
- ansible-playbook -i tests/inventory tests/test.yml -vvvv
|
||||
|
||||
# Run the role/playbook again, checking to make sure it's idempotent.
|
||||
- >
|
||||
ansible-playbook -i tests/inventory tests/test.yml
|
||||
| grep -q 'changed=0.*failed=0'
|
||||
&& (echo 'Idempotence test: pass' && exit 0)
|
||||
|| (echo 'Idempotence test: fail' && exit 1)
|
||||
|
||||
- if [ "$ANSIBLE_VERSION" = "latest" ]; then ansible-lint tests/test.yml; fi
|
||||
|
||||
notifications:
|
||||
email: false
|
||||
webhooks: https://galaxy.ansible.com/api/v1/notifications/
|
||||
slack:
|
||||
rooms:
|
||||
secure: "If2mqrqZs5q6yZ9bs9qq+pmgCEMCTv1Nk3vQjax9N+xFoIvnRi1v0drEekibKgns8eg0Mg/Tya7xxXokqFhs3wVY64r43v86HFLS2MVDTaMYAxK3kRd4x8R5INIAN1U7Dtsk8RQbIngzGJPZwOfmOtY1qQ5p3RLMM+6zEBQOO7U="
|
|
@ -2,6 +2,8 @@
|
|||
- name: Converge
|
||||
hosts: all
|
||||
become: true
|
||||
tasks: []
|
||||
pre_tasks:
|
||||
- name: include vars
|
||||
include_vars: "{{ playbook_dir }}/../../tests/vars/main.yml"
|
||||
roles:
|
||||
- ../../../
|
||||
|
|
|
@ -11,6 +11,8 @@ platforms:
|
|||
- /sys/fs/cgroup:/sys/fs/cgroup:ro
|
||||
privileged: true
|
||||
pre_build_image: true
|
||||
capabilities:
|
||||
- NET_ADMIN
|
||||
provisioner:
|
||||
name: ansible
|
||||
playbooks:
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
---
|
||||
- name: facts | set
|
||||
set_fact:
|
||||
kernel_version: "{{ ansible_kernel | regex_search('^([0-9]+\\.[0-9]+\\.[0-9]+)') }}"
|
||||
kernel_version: "{{ ansible_kernel | regex_search('^([0-9]+\\.[0-9]+\\.[0-9]+)') }}"
|
||||
tags:
|
||||
- configuration
|
||||
- ufw
|
||||
|
|
|
@ -3,5 +3,8 @@
|
|||
- hosts: localhost
|
||||
connection: local
|
||||
become: true
|
||||
pre_tasks:
|
||||
- name: include vars
|
||||
include_vars: "{{ playbook_dir }}/vars/main.yml"
|
||||
roles:
|
||||
- ../../
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
# vars file
|
||||
---
|
||||
ufw_etc_default_ipv6: false
|
Loading…
Reference in New Issue