blob: 9505c1d66854146f39aee7d7fe8102cde3d6c23e (
plain)
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
|
---
# ============================================================
# Common Rules
# gelten fuer alle Server
# (koennen aber auch einzeln aufgerufen werden)
# ============================================================
- name: apt
roles:
- apt
hosts: all
tags:
- apt
- common
# ------------------------------------------------------------
- name: packages
hosts: all
roles:
- packages
tags:
- packages
- common
# ------------------------------------------------------------
- name: common-linux
hosts: all
roles:
- common-linux
tags:
- common-linux
- common
# ------------------------------------------------------------
- name: set up zsh for root and horus
hosts: all
become: no
vars:
the_user: "horus"
tasks:
- name: change user shell to zsh
become: yes
user:
name: "{{ the_user }}"
shell: /bin/zsh
- name: change root shell to zsh
become: no
user:
name: "root"
shell: /bin/zsh
tags:
- chsh
- name: copy .zshrc for root and horus
hosts: all
tasks:
- name: copy .zshrc for root
copy:
src: .zshrc
dest: /root/.zshrc
owner: root
- name: copy .zsh_aliases for root
copy:
src: .zsh_aliases
dest: /root/.zsh_aliases
owner: root
- name: copy .zshrc for horus
copy:
src: .zshrc
dest: /home/horus/.zshrc
owner: horus
- name: copy .zsh_aliases for root
copy:
src: .zsh_aliases
dest: /home/horus/.zsh_aliases
owner: horus
tags:
- chsh
# ------------------------------------------------------------
- name: php
hosts: all
roles:
- php
tags:
- php
- common
# ------------------------------------------------------------
- name: ssh
hosts: all
roles:
- ssh
tags:
- ssh
- common
# ------------------------------------------------------------
- name: mostdiscussed
hosts: code
roles:
- mostdiscussed
tags:
- mostdiscussed
- applications
- name: ghrss
hosts: code
roles:
- ghrss
tags:
- ghrss
- applications
# ------------------------------------------------------------
- name: nextcloud
hosts: cloud
roles:
- nextcloud
tags:
- nextcloud
#the_user: "{{ ansible_user_id }}"
|