blob: f3e3c3d04985583b681c0eab1b1410f3ac7a76c5 [file] [log] [blame]
Zsolt Haraszti3d163532016-09-08 15:57:32 -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 }}"
Zsolt Harasztifa523c62016-11-08 00:35:59 -080012 with_items:
13 - host_ip: "10.100.198.220"
14 host_name: "voltha"
Zsolt Haraszti3d163532016-09-08 15:57:32 -070015 tags: [common]
16
17- name: Latest apt packages
18 apt:
19 name: "{{ item }}"
Zsolt Harasztifa523c62016-11-08 00:35:59 -080020 with_items:
21 - debian-keyring
22 - debian-archive-keyring
23 - python-dev
24 - libssl-dev
25 - libffi-dev
26 - libpcap-dev
27 - python-virtualenv
28 - jq
29 - python-nose
30 - python-flake8
31 - python-scapy
Zsolt Haraszti3d163532016-09-08 15:57:32 -070032 tags: [common]
33
34- name: Services are not running
35 service:
36 name: "{{ item }}"
37 state: stopped
38 ignore_errors: yes
Zsolt Harasztifa523c62016-11-08 00:35:59 -080039 with_items:
40 - puppet
41 - checf-client
Zsolt Haraszti3d163532016-09-08 15:57:32 -070042 tags: [common]
43
44- name: Ensure known_hosts file is absent
45 file:
Zsolt Haraszti15044082016-10-05 00:18:57 -070046 path: "{{ ansible_env['HOME'] }}/.ssh/known_hosts"
Zsolt Haraszti3d163532016-09-08 15:57:32 -070047 state: absent
48
49- name: Disable Known Host Checking
50 copy:
51 src: files/ssh_config
Zsolt Haraszti15044082016-10-05 00:18:57 -070052 dest: "{{ ansible_env['HOME'] }}/.ssh/config"
Zsolt Haraszti3d163532016-09-08 15:57:32 -070053 owner: "{{ ansible_env['SUDO_USER'] }}"
54 group: "{{ ansible_env['SUDO_USER'] }}"
55 mode: 0600