main.yml 897 Bytes
Newer Older
Alexander Withers's avatar
Alexander Withers committed
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
43
44
---

- name: run yum install epel-release
  package: name=epel-release state=present
  when: (ansible_distribution == "CentOS")

- name: Add apt HTTPS support
  package: name=apt-transport-https state=present
  when: (ansible_distribution == "Ubuntu")

- name: Add HTTPS support
  package: name=ca-certificates state=present

- name: Update apt cache if needed.
  apt: update_cache=yes upgrade=yes
  when: (ansible_distribution == "Ubuntu")

- name: install ubuntu deps
  package:
    state: latest
    pkg: "{{ item }}"
  with_items:
    - linux-image-extra-virtual
    - aptitude
    - tinc
  when: (ansible_distribution == "Ubuntu")

- name: install centos deps
  package:
    state: latest
    pkg: "{{ item }}"
  with_items:
    - tinc
  when: (ansible_distribution == "CentOS")

- include: users.yml
  tags: users

- include: firewall.yml
  tags: firewall

- include: tinc.yml
  tags: tinc