volanja / ansible_spec

It's ruby gem that connect Ansible & Serverspec for Test Driven Server Configuration(or TDD).
MIT License
228 stars 57 forks source link

use default user if none specified in playbook #32

Closed rndmh3ro closed 6 years ago

rndmh3ro commented 9 years ago

Currently, if no user is specified in the playbook, tries to connect with an empty user:

[root@server ansible]# rake serverspec:foo
Run serverspec for foo to server
/opt/rh/rh-ruby22/root/usr/bin/ruby -I/opt/rh/rh-ruby22/root/usr/local/share/gems/gems/rspec-support-3.3.0/lib:/opt/rh/rh-ruby22/root/usr/local/share/gems/gems/rspec-core-3.3.1/lib /opt/rh/rh-ruby22/root/usr/local/share/gems/gems/rspec-core-3.3.1/exe/rspec --pattern roles/\{snmpd\}/spec/\*_spec.rb
Text will be echoed in the clear. Please install the HighLine or Termios libraries to suppress echoed text.
@server's password:

If no user is provided in the playbook, ansible_spec should use current user or the user from the ansible.cfg:

# default user to use for playbooks if user is not specified
# (/usr/bin/ansible will use current user as default)
#remote_user = root
volanja commented 6 years ago

I thought that I wanted to correspond in the past, but I have not been able to respond yet. This issue has been marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.