From dc7b943bebd0b5921f71eb316fffe89b8fb3b349 Mon Sep 17 00:00:00 2001 From: Logan V Date: Wed, 2 Nov 2016 01:43:24 +0000 Subject: [PATCH] Fix linting issues for ansible-lint 3.4.1 Preparing this role for the ansible-lint version bump Change-Id: Ia6085c4f38006da11bd1a73d776d6c1842787699 --- tasks/container_create.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tasks/container_create.yml b/tasks/container_create.yml index 51d23e6..fcbe460 100644 --- a/tasks/container_create.yml +++ b/tasks/container_create.yml @@ -200,8 +200,9 @@ # file and a lookup is being used in the container-interface.ini template to render # the static hardware address as expected. - name: Set unique interface mac address + environment: + hexchars: "0123456789abcdef" shell: | - hexchars="0123456789abcdef" echo "00:16:3e$( for i in {1..6}; do echo -n ${hexchars:$(( $RANDOM % 16 )):1} @@ -355,7 +356,7 @@ - lxc-container-networks - name: Run container veth wiring script - shell: > + command: > /usr/local/bin/lxc-veth-wiring "{{ inventory_hostname }}" "{{ lxc_container_network_veth_pair[-15:] }}" @@ -464,6 +465,7 @@ - name: Setup hostname command: hostname -F /etc/hostname + changed_when: false remote_user: root tags: - lxc-container-hostname