regluit/vagrant/hello2.yml

17 lines
407 B
YAML
Raw Normal View History

- name: Hello Ansible
2015-05-26 18:16:31 +00:00
hosts: localvm
vars:
user: "{{ ansible_ssh_user }}"
2015-05-26 17:44:35 +00:00
sudo: yes
2015-05-11 19:36:48 +00:00
tasks:
2015-05-26 17:44:35 +00:00
- name: Hello server
shell: date > now.txt
- name: add ssh keys from public_key directory
authorized_key: user={{user}} key="{{item}}" state=present
with_items:
- https://github.com/rdhyee.keys
- https://github.com/eshellman.keys
sudo: yes