File tree 8 files changed +117
-35
lines changed
8 files changed +117
-35
lines changed Original file line number Diff line number Diff line change
1
+ name : CI
2
+ on :
3
+ pull_request :
4
+ push :
5
+ branches :
6
+ - master
7
+ - main
8
+
9
+ jobs :
10
+
11
+ yaml :
12
+ name : YAML lint
13
+ runs-on : ubuntu-latest
14
+ steps :
15
+ - name : Check out
16
+ uses : actions/checkout@v4
17
+
18
+ - name : Set up Python
19
+ uses : actions/setup-python@v5
20
+ with :
21
+ python-version : ' 3.x'
22
+
23
+ - name : Install dependencies
24
+ run : pip3 install yamllint
25
+
26
+ - name : Lint the code
27
+ run : |
28
+ yamllint */*.yml
29
+
30
+ playbook :
31
+ name : ansible-playbook lint
32
+ runs-on : ubuntu-latest
33
+ steps :
34
+ - name : Check out
35
+ uses : actions/checkout@v4
36
+
37
+ - name : Set up Python
38
+ uses : actions/setup-python@v5
39
+ with :
40
+ python-version : ' 3.x'
41
+
42
+ - name : Install dependencies
43
+ run : pip3 install ansible
44
+
45
+ - name : Lint
46
+ run : |
47
+ ansible-galaxy role install geerlingguy.ntp
48
+ ansible-playbook --syntax-check ansible.yml
49
+
50
+ ansible-lint :
51
+ name : ansible-lint
52
+ runs-on : ubuntu-latest
53
+ steps :
54
+ - name : Check out
55
+ uses : actions/checkout@v4
56
+
57
+ - name : Set up Python
58
+ uses : actions/setup-python@v5
59
+ with :
60
+ python-version : ' 3.x'
61
+
62
+ - name : Install dependencies
63
+ run : pip3 install ansible-lint
64
+
65
+ - name : Lint
66
+ run : |
67
+ ansible-lint .
Original file line number Diff line number Diff line change
1
+ venv
Original file line number Diff line number Diff line change 1
- freitag.base
2
- ============
1
+ # freitag.base
2
+
3
3
Ansible role to install system wide utilities.
4
4
5
- Requirements
6
- ------------
5
+ ## Requirements
6
+
7
7
None
8
8
9
- Role Variables
10
- --------------
9
+ ## Role Variables
10
+
11
11
None
12
12
13
- Dependencies
14
- ------------
13
+ ## Dependencies
14
+
15
15
Depends on `` geerlingguy.ntp `` .
16
16
17
- Example Playbook
18
- ----------------
17
+ ## Example Playbook
18
+
19
+ ``` yml
19
20
- hosts : servers
20
21
roles :
21
22
- { role: freitag.base }
23
+ ` ` `
24
+
25
+ ## License
22
26
23
- License
24
- -------
25
27
GPLv3
26
28
27
- Author Information
28
- ------------------
29
+ ## Author Information
30
+
29
31
Gil Forcada Codinachs (der Freitag)
Original file line number Diff line number Diff line change
1
+ [defaults]
2
+ roles_path = ..
Original file line number Diff line number Diff line change
1
+ ---
2
+ - hosts : all
3
+ roles :
4
+ - freitag.base
Original file line number Diff line number Diff line change
1
+ ---
2
+
3
+ dependencies :
4
+ - role : geerlingguy.ntp
5
+
1
6
galaxy_info :
2
- author : Gil Forcada
3
- description : Ansible role to install system wide utilities
7
+ author : Gil Forcada Codinachs
8
+ description : Install system wide utilities
4
9
company : der Freitag
10
+ role_name : base
11
+ namespace : freitag
5
12
license : license (GPLv3)
6
- min_ansible_version : 2.1
13
+ min_ansible_version : ' 2.2 '
7
14
platforms :
8
15
- name : Ubuntu
9
16
versions :
10
- - xenial
17
+ - jammy
11
18
galaxy_tags :
12
19
- system
13
20
- development
14
- dependencies :
15
- - { role: geerlingguy.ntp, ntp_timezone: Europe/Berlin }
Original file line number Diff line number Diff line change 1
1
---
2
2
3
3
- name : Update
4
- become : yes
5
- apt :
6
- update_cache=yes
4
+ become : true
5
+ ansible.builtin. apt :
6
+ update_cache : true
7
7
8
8
- name : Install system dependencies
9
- become : yes
10
- apt :
11
- name : " {{item}}"
9
+ become : true
10
+ ansible.builtin. apt :
11
+ name : " {{ item }}"
12
12
state : present
13
13
with_items :
14
14
- vim
19
19
- strace
20
20
21
21
- name : Install German locale
22
- become : yes
23
- locale_gen :
24
- name= de_DE.UTF-8
25
- state= present
22
+ become : true
23
+ community.general. locale_gen :
24
+ name : de_DE.UTF-8
25
+ state : present
26
26
27
- # XXX use the newer synatx on ansible >= 2.2.0
28
27
- name : Set timezone to Europe/Berlin
29
- become : yes
30
- shell : timedatectl set-timezone Europe/Berlin
31
- # timezone:
32
- # name=Europe/Berlin
28
+ become : true
29
+ community.general.timezone :
30
+ name : Europe/Berlin
Original file line number Diff line number Diff line change
1
+ ---
2
+
3
+ ntp_timezone : Europe/Berlin
You can’t perform that action at this time.
0 commit comments