| when: target != "cluster" |
| regexp: "^{{ item.host_ip }}" |
| line: "{{ item.host_ip }} {{ item.host_name }}" |
| with_items: "{{ hosts }}" |
| - name: GlusterFS repository is available |
| repo: 'ppa:gluster/glusterfs-3.13' |
| when: target != "cluster" |
| - name: Latest apt packages |
| with_items: "{{ use_latest_for }}" |
| when: target != "cluster" |
| #- name: Services are not running |
| # with_items: "{{ obsolete_services }}" |
| - name: Ensure there is a .ssh directory for /root |
| path: "{{ ansible_env['HOME'] }}/.ssh" |
| - name: Ensure known_hosts file is absent |
| path: "{{ ansible_env['HOME'] }}/.ssh/known_hosts" |
| - name: Disable Known Host Checking |
| dest: "{{ ansible_env['HOME'] }}/.ssh/config" |