Skip to content

Commit 708cb29

Browse files
authored
Update Ansible to 2.9.12 and explicitly set mode on relevant tasks (#16)
1 parent 9a71970 commit 708cb29

File tree

18 files changed

+53
-18
lines changed

18 files changed

+53
-18
lines changed

.ansible-lint

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
skip_list:
2+
- '106'

.travis.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,16 @@ jobs:
3030
- name: "(CentOS) Install Stable Branch and Push Configuration"
3131
env:
3232
scenario: stable_push_centos
33-
before_install: sudo apt-get -qq update
33+
before_install:
34+
- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
35+
- sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
36+
- sudo apt-get update
37+
- sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-ce
3438
install:
35-
- pip install ansible==2.9.11
36-
- pip install molecule==3.0.6
37-
- pip install docker==4.2.2
38-
- pip install ansible-lint==4.2.0
39+
- pip install ansible==2.9.12
40+
- pip install ansible-lint==4.3.3
41+
- pip install molecule==3.0.8
42+
- pip install docker==4.3.1
3943
script:
4044
- molecule --version
4145
- ansible --version

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
# Changelog
22

3-
## 0.x (Unreleased)
3+
## 0.1.1 (Unreleased)
44

55
ENHANCEMENTS:
66

7+
* Update Ansible to `2.9.12` and Ansible Lint to `4.3.3`.
8+
* Explicitly defined `mode` in relevant tasks.
79
* Improve configuration templating capabilities:
810
* Allow setting `access_log`/`access_log_location` to `off`.
911
* Add IP restriction for web servers

molecule/common/playbooks/default_verify.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,21 @@
2626
- name: Check default.conf exists
2727
stat:
2828
path: /etc/nginx/conf.d/default.conf
29+
check_mode: yes
2930
register: stat_result
3031
failed_when: not stat_result.stat.exists
3132

3233
- name: Check frontend_default.conf exists
3334
stat:
3435
path: /etc/nginx/conf.d/frontend_default.conf
36+
check_mode: yes
3537
register: stat_result
3638
failed_when: not stat_result.stat.exists
3739

3840
- name: Check backend_default.conf exists
3941
stat:
4042
path: /etc/nginx/conf.d/backend_default.conf
43+
check_mode: yes
4144
register: stat_result
4245
failed_when: not stat_result.stat.exists
4346

molecule/common/playbooks/module_verify.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,6 @@
2121
- name: Check default.conf does not exist
2222
stat:
2323
path: /etc/nginx/conf.d/default.conf
24+
check_mode: yes
2425
register: stat_result
2526
failed_when: stat_result.stat.exists

molecule/common/playbooks/stable_push_verify.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
- name: Check default.conf exists
2727
stat:
2828
path: /etc/nginx/conf.d/default.conf
29+
check_mode: yes
2930
register: stat_result
3031
failed_when: not stat_result.stat.exists
3132

molecule/common/requirements.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
---
22
roles:
3-
- nginxinc.nginx
3+
- name: nginxinc.nginx
4+
version: 0.16.0

molecule/default/molecule.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ driver:
88
lint: |
99
set -e
1010
yamllint .
11-
ansible-lint
11+
ansible-lint --force-color
1212
platforms:
1313
- name: debian-stretch
1414
image: debian:stretch-slim

molecule/default_alpine/molecule.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ driver:
88
lint: |
99
set -e
1010
yamllint .
11-
ansible-lint
11+
ansible-lint --force-color
1212
platforms:
1313
- name: alpine-3.8
1414
image: alpine:3.8

molecule/default_centos/molecule.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ driver:
88
lint: |
99
set -e
1010
yamllint .
11-
ansible-lint
11+
ansible-lint --force-color
1212
platforms:
1313
- name: centos-6
1414
image: centos:6

0 commit comments

Comments
 (0)