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:
parent
d6a1f3d619
commit
0f06112eb2
@ -13,6 +13,9 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# 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)
|
||||
shell: |
|
||||
dpkg -l | grep rabbitmq-server
|
||||
@ -24,7 +27,11 @@
|
||||
tags:
|
||||
- rabbitmq-package-deb
|
||||
- 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)
|
||||
shell: |
|
||||
rpm -qa | grep rabbitmq-server
|
||||
@ -36,6 +43,7 @@
|
||||
tags:
|
||||
- rabbitmq-package-rpm
|
||||
- rabbitmq-apt-packages
|
||||
- skip_ansible_lint
|
||||
|
||||
- name: Register a fact for the installed RabbitMQ version
|
||||
set_fact:
|
||||
|
Loading…
Reference in New Issue
Block a user