| regexp: "^{{ item.host_ip }}" |
| line: "{{ item.host_ip }} {{ item.host_name }}" |
| with_items: "{{ hosts }}" |
| - name: Latest apt packages |
| with_items: "{{ use_latest_for }}" |
| - name: Services are not running |
| with_items: "{{ obsolete_services }}" |
| - name: Ensure SSH Directory |
| path: /home/{{ ansible_user }}/.ssh |
| owner: "{{ ansible_user }}" |
| group: "{{ ansible_user }}" |
| - name: Ensure known_hosts file is absent |
| path: /home/vagrant/.ssh/known_hosts |
| - name: Ignore Known Hosts for SSH |
| dest: /home/{{ ansible_user }}/.ssh/config |
| owner: "{{ ansible_user }}" |
| group: "{{ ansible_user }}" |