forked from kdpuvvadi/proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.yml
43 lines (34 loc) · 874 Bytes
/
main.yml
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
---
- hosts: all
become: true
pre_tasks:
- name: Config
include_vars: vars.yml
- name: apt cache update
apt:
update_cache: yes
cache_valid_time: 3600
when:
- ansible_facts.os_family == "Debian"
- name: apt Upgrade
apt:
upgrade: yes
when:
- ansible_facts.os_family == "Debian"
- name: yum cache update & upgrade
yum:
name: "*"
state: latest
update_cache: yes
when:
- ansible_facts.os_family == "RedHat"
tasks:
- name: Install packages/prerequisites
import_tasks: tasks/packages.yml
- name: Setup Docker.
import_tasks: tasks/docker.yml
- name: Install Nginx Proxy Manager
import_tasks: tasks/proxy.yml
- name: install portainer
import_tasks: tasks/portainer.yml
when: portainer_enable