ansible lint clean up
Change-Id: Ia77f90d83998a0569500c39a3bd701b16a63d682
diff --git a/ansible/roles/docker/tasks/centos.yml b/ansible/roles/docker/tasks/centos.yml
index 6bd3d7e..f16315a 100644
--- a/ansible/roles/docker/tasks/centos.yml
+++ b/ansible/roles/docker/tasks/centos.yml
@@ -14,6 +14,7 @@
- name: CentOS Daemon is reloaded
command: systemctl daemon-reload
tags: [docker]
+ changed_when: true
- name: CentOS service is running
service:
diff --git a/ansible/roles/docker/tasks/debian.yml b/ansible/roles/docker/tasks/debian.yml
index f590f17..d2e27f1 100644
--- a/ansible/roles/docker/tasks/debian.yml
+++ b/ansible/roles/docker/tasks/debian.yml
@@ -10,7 +10,7 @@
name: docker-engine
state: latest
force: yes
- tags: [docker]
+ tags: [docker, skip_ansible_lint]
- name: Debian python-pip is present
apt: name=python-pip state=present
diff --git a/ansible/roles/java8-oracle/tasks/main.yml b/ansible/roles/java8-oracle/tasks/main.yml
index e8df193..9bd7af2 100644
--- a/ansible/roles/java8-oracle/tasks/main.yml
+++ b/ansible/roles/java8-oracle/tasks/main.yml
@@ -1,21 +1,29 @@
---
- name: Install add-apt-repository
- sudo: yes
- apt: name=software-properties-common state=latest
+ become: yes
+ apt:
+ name: software-properties-common
+ state: latest
+ tags:
+ - skip_ansible_lint
- name: Add Oracle Java repository
- sudo: yes
+ become: yes
apt_repository:
repo: 'ppa:webupd8team/java'
- name: Accept Java 8 license
- sudo: yes
+ become: yes
debconf: name='oracle-java8-installer' question='shared/accepted-oracle-license-v1-1' value='true' vtype='select'
- name: Install Oracle Java 8
- sudo: yes
- apt: name={{item}} state=latest
+ become: yes
+ apt:
+ name: "{{item}}"
+ state: latest
with_items:
- oracle-java8-installer
- ca-certificates
- oracle-java8-set-default
+ tags:
+ - skip_ansible_lint
diff --git a/ansible/roles/prod/tasks/main.yml b/ansible/roles/prod/tasks/main.yml
index 2599096..1cd9f61 100644
--- a/ansible/roles/prod/tasks/main.yml
+++ b/ansible/roles/prod/tasks/main.yml
@@ -14,4 +14,5 @@
- name: Ensure Management Bridge Up
command: ifup mgmtbr
+ changed_when: true