Add skip_ansible_lint tags for error ANSIBLE0006

When ansible-lint runs it triggers an error for tasks that call
out to the package manager instead of using the package module.
These tasks call out to the dpkg and rpm package applications
to query if a version of rabbitmq is already installed and in
need of an upgrade.

Change-Id: I0ca5b0403562537d2ecfdba0466a87fb0b874933
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
This commit is contained in:
Kevin Carter 2016-05-16 22:26:38 -05:00 committed by Jesse Pretorius (odyssey4me)
parent d6a1f3d619
commit 0f06112eb2

View File

@ -13,6 +13,9 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
# ansible-lint fails on this task due to the detected use of 'dpkg',
# so we skip this task in the ansible-lint check by using the
# 'skip_ansible_lint' tag
- name: Get version of installed RabbitMQ package (deb) - name: Get version of installed RabbitMQ package (deb)
shell: | shell: |
dpkg -l | grep rabbitmq-server dpkg -l | grep rabbitmq-server
@ -24,7 +27,11 @@
tags: tags:
- rabbitmq-package-deb - rabbitmq-package-deb
- rabbitmq-apt-packages - rabbitmq-apt-packages
- skip_ansible_lint
# ansible-lint fails on this task due to the detected use of 'rpm',
# so we skip this task in the ansible-lint check by using the
# 'skip_ansible_lint' tag
- name: Get version of installed RabbitMQ package (rpm) - name: Get version of installed RabbitMQ package (rpm)
shell: | shell: |
rpm -qa | grep rabbitmq-server rpm -qa | grep rabbitmq-server
@ -36,6 +43,7 @@
tags: tags:
- rabbitmq-package-rpm - rabbitmq-package-rpm
- rabbitmq-apt-packages - rabbitmq-apt-packages
- skip_ansible_lint
- name: Register a fact for the installed RabbitMQ version - name: Register a fact for the installed RabbitMQ version
set_fact: set_fact: