blob: b66f3e4e4f72cc680bc385b6627f61e828f3e1f4 [file] [log] [blame]
Zsolt Harasztiec7df102016-05-05 13:34:18 -07001- name: JQ is present
2 apt:
3 name: jq
4 force: yes
5 tags: [common]
6
7- name: Host is present
8 lineinfile:
9 dest: /etc/hosts
10 regexp: "^{{ item.host_ip }}"
11 line: "{{ item.host_ip }} {{ item.host_name }}"
12 with_items: hosts
13 tags: [common]
14
Zsolt Haraszti06ecaa42016-05-31 16:46:37 -070015- name: Latest apt packages
16 apt:
17 name: "{{ item }}"
18 with_items: use_latest_for
19 tags: [common]
20
Zsolt Harasztiec7df102016-05-05 13:34:18 -070021- name: Services are not running
22 service:
23 name: "{{ item }}"
24 state: stopped
25 ignore_errors: yes
26 with_items: obsolete_services
27 tags: [common]
David K. Bainbridge97b3f2f2016-06-16 18:08:49 -070028
29- name: Ensure known_hosts file is absent
30 file:
31 path: /home/vagrant/.ssh/known_hosts
32 state: absent
33
34- name: Disable Known Host Checking
35 copy:
36 src: files/ssh_config
37 dest: /home/vagrant/.ssh/config
38 owner: vagrant
39 group: vagrant
40 mode: 0600