forked from clusterinthecloud/ansible
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsite.yml
44 lines (41 loc) · 929 Bytes
/
site.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
44
---
- name: finisher script
hosts: management
tasks:
- name: copy example users file
copy:
src: roles/finalise/files/users.yml.example
dest: /home/opc/users.yml.example
mode: 0666
- name: copy over finisher script
copy:
src: roles/finalise/files/finish.py
dest: /home/opc/finish
mode: 0755
- name: set motd
copy:
content: |
######################
Welcome to the cluster
In order to create users, run the script "./finish" and follow the instructions
######################
dest: /etc/motd
- name: common
hosts: all
tags: common
roles:
- dhcp
- filesystem
- ssh
- epel
- security-updates
- ntp
- users
- monitoring
- import_playbook: management.yml
- import_playbook: compute.yml
- name: finalise
hosts: all
tags: finalise
roles:
- finalise