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:
parent
afd0a7e703
commit
53e9afa80e
|
@ -1,2 +1,2 @@
|
|||
[all]
|
||||
localhost
|
||||
[test]
|
||||
test01 ansible_host=127.0.0.2
|
||||
|
|
|
@ -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 }}"
|
||||
|
|
Loading…
Reference in New Issue