Import ansible-role-ssh into OpenStack
Change-Id: I909a781822754862d1db832fe225ee47ff244b3b Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
parent
dc31df08b9
commit
897f7ffd49
4
.gitreview
Normal file
4
.gitreview
Normal file
@ -0,0 +1,4 @@
|
||||
[gerrit]
|
||||
host=review.openstack.org
|
||||
port=29418
|
||||
project=openstack/ansible-role-ssh.git
|
@ -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'
|
||||
|
2
tox.ini
2
tox.ini
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user