main.yml
717 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
- name: bridge-utils is present
apt:
name: bridge-utils
force: yes
tags: [common]
- name: lxc is present
apt:
name: lxc
force: yes
tags: [common]
- name: python-dev is present
apt:
name: python-dev
force: yes
tags: [common]
- name: lxc-dev is present
apt:
name: lxc-dev
force: yes
tags: [common]
- name: python-pip is present
apt:
name: python-pip
force: yes
tags: [common]
- name: python3-lxc is present
pip:
name: lxc-python2
state: present
tags: [common]
- name: Host is present
lineinfile:
dest: /etc/hosts
regexp: "^{{ item.host_ip }}"
line: "{{ item.host_ip }} {{ item.host_name }}"
with_items: hosts
tags: [common]