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

View File

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