forked from AdopteUnOps/rancher-ansible
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure_host.yml
22 lines (20 loc) · 1.01 KB
/
configure_host.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
---
#first time ./ansible-playbook_wrapper configure_host.yml -u yourgenericaccount -Kk -e "NAME_PROJECT=myproject"
#second time ./ansible-playbook_wrapper configure_host.yml -K -e "NAME_PROJECT=myproject"
- hosts: "{{ NAME_PROJECT }}"
gather_facts: false
tasks:
- name: Make sure python is installed
raw: test -e /usr/bin/python || (apt -y update && apt install -y python-minimal)
become: true
- hosts: "{{ NAME_PROJECT }}"
roles:
- {role: "AdopteUnOps.install-kernel", tags: "kernel"}
- {role: "AdopteUnOps.configure-rsyslog", tags: "rsyslog"}
- {role: "AdopteUnOps.configure-hostname", tags: "configure-hostname"}
- {role: "AdopteUnOps.configure-ssh", tags: "configure-ssh"}
- {role: "AdopteUnOps.install-debugging-tools", tags: "install-tools"}
- {role: "AdopteUnOps.docker", tags: "install-docker"}
- {role: "AdopteUnOps.docker-login", tags: "install-docker"}
- {role: "AdopteUnOps.upgrade-packages", tags: "upgrade-packages"}
- {role: "AdopteUnOps.configure-unix-accounts", tags: "ops"}