2015-05-08 22:37:55 +00:00
|
|
|
- name: Hello Ansible
|
2015-05-26 18:16:31 +00:00
|
|
|
hosts: localvm
|
2015-05-08 22:37:55 +00:00
|
|
|
vars:
|
|
|
|
user: "{{ ansible_ssh_user }}"
|
2015-05-26 17:44:35 +00:00
|
|
|
sudo: yes
|
2015-05-11 19:36:48 +00:00
|
|
|
|
2015-05-18 23:39:14 +00:00
|
|
|
|
2015-05-08 22:37:55 +00:00
|
|
|
tasks:
|
2015-05-26 17:44:35 +00:00
|
|
|
- name: Hello server
|
|
|
|
shell: date > now.txt
|
|
|
|
|
2015-05-27 01:48:42 +00:00
|
|
|
- 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
|