Import ansible-role-ssh into OpenStack

Change-Id: I909a781822754862d1db832fe225ee47ff244b3b
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2016-02-19 11:47:58 -05:00
parent dc31df08b9
commit 897f7ffd49
3 changed files with 10 additions and 2 deletions

4
.gitreview Normal file
View File

@ -0,0 +1,4 @@
[gerrit]
host=review.openstack.org
port=29418
project=openstack/ansible-role-ssh.git

View File

@ -13,12 +13,16 @@
# under the License.
---
- hosts: localhost
become: yes
vars:
rolename: "{{ lookup('pipe', 'pwd') | dirname | basename }}"
ssh_user_name: "{{ ansible_user }}"
ssh_user_home: /tmp/.ssh
pre_tasks:
# Make sure OS does not have a stale package cache.
- name: Update apt cache.
become: yes
apt:
update_cache: yes
when: ansible_os_family == 'Debian'

View File

@ -12,7 +12,7 @@ commands = python setup.py build_sphinx
[testenv:functional]
commands =
ansible-playbook -i tests/inventory tests/test.yaml
ansible-playbook -i tests/inventory tests/test.yaml -e ansible_user={env:USER}
passenv = HOME
setenv =
ANSIBLE_CONFIG = {toxinidir}/tests/ansible.cfg