Run functional tests against 127.0.0.2

Both connection local and 127.0.0.1 have special meaning for ansible,
where will use the local filesystem vs SSH to the loopback adapter.

So, we use 127.0.0.2 to force ansible to make an SSH connection.

Change-Id: I642b1d409cbb683960b83e3582ac9fb53ffc6f81
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2016-09-05 21:17:58 -04:00
parent afd0a7e703
commit 53e9afa80e
No known key found for this signature in database
GPG Key ID: 611A80832067AF38
2 changed files with 3 additions and 3 deletions

View File

@ -1,2 +1,2 @@
[all]
localhost
[test]
test01 ansible_host=127.0.0.2

View File

@ -12,7 +12,7 @@
# License for the specific language governing permissions and limitations
# under the License.
---
- hosts: localhost
- hosts: test
become: yes
vars:
rolename: "{{ lookup('pipe', 'pwd') | dirname | basename }}"