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