123456789101112131415161718192021222324252627282930313233343536 |
- ---
- - name: Set Facts
- set_fact:
- ansible_ssh_common_args: '-o StrictHostKeyChecking=no'
- - name: Disable host key checking
- replace:
- path: /etc/ssh/ssh_config
- regexp: '# StrictHostKeyChecking ask'
- replace: 'StrictHostKeyChecking no'
- - name: Install sshpass
- package:
- name: sshpass
- state: present
- - name: Verify and set passwordless ssh from manager to compute nodes
- block:
- - name: Execute on individual hosts
- include_tasks: passwordless_ssh.yml
- with_items: "{{ ssh_to }}"
- loop_control:
- pause: 5
|