regluit/vagrant/hello2.yml

21 lines
483 B
YAML
Raw Normal View History

- name: Hello Ansible
hosts: just
vars:
user: "{{ ansible_ssh_user }}"
sudo: no
2015-05-11 19:36:48 +00:00
- name: fix known_hosts on jenkins to match new just
hosts: jenkins
sudo: yes
sudo_user: jenkins
tasks:
- name: pwd
command: pwd
- 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