2015-05-08 22:37:55 +00:00
|
|
|
- name: Hello Ansible
|
2015-05-18 23:39:14 +00:00
|
|
|
hosts: just
|
2015-05-08 22:37:55 +00:00
|
|
|
vars:
|
|
|
|
user: "{{ ansible_ssh_user }}"
|
2015-05-13 23:08:42 +00:00
|
|
|
sudo: no
|
2015-05-11 19:36:48 +00:00
|
|
|
|
2015-05-18 23:39:14 +00:00
|
|
|
|
|
|
|
- name: fix known_hosts on jenkins to match new just
|
|
|
|
hosts: jenkins
|
|
|
|
sudo: yes
|
|
|
|
sudo_user: jenkins
|
2015-05-08 22:37:55 +00:00
|
|
|
tasks:
|
2015-05-18 23:39:14 +00:00
|
|
|
- name: pwd
|
|
|
|
command: pwd
|
2015-05-08 22:37:55 +00:00
|
|
|
|
2015-05-18 23:39:14 +00:00
|
|
|
- name: make new known_hosts
|
|
|
|
raw: ssh-keyscan -t rsa just.unglue.it > /var/lib/jenkins/.ssh/known_hosts
|
|
|
|
|
|
|
|
#local_action: command sudo -i jenkins ssh-keyscan -t rsa just.unglue.it > /var/lib/jenkins/.ssh/known_hosts
|
|
|
|
|