Skip to content

Commit 944594b

Browse files
authored
Merge pull request #54 from bulch/develop
Develop
2 parents c13ec42 + e3d218e commit 944594b

File tree

9 files changed

+45
-19
lines changed

9 files changed

+45
-19
lines changed

Diff for: .ansible-lint

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ exclude_paths:
1313
- .cache/ # implicit unless exclude_paths is defined in config
1414
- test/fixtures/formatting-before/
1515
- test/fixtures/formatting-prettier/
16+
- .ansible/collections
1617
# parseable: true
1718
# quiet: true
1819
# strict: true

Diff for: .github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
run: |
5050
exit_code=0
5151
expected_exit_code=0
52-
ansible-lint || exit_code=$?
52+
ansible-lint --ignore-file .ansible-lint-ignore --config-file .ansible-lint . || exit_code=$?
5353
if [ "$exit_code" != "$expected_exit_code" ]; then echo "Command failed: got '$exit_code', expected '$expected_exit_code'"; exit 1; fi
5454
5555
molecule:

Diff for: README.md

+16-12
Original file line numberDiff line numberDiff line change
@@ -13,26 +13,30 @@ None.
1313

1414
## Role install
1515

16-
```
16+
```bash
1717
ansible-galaxy role install bulch.rsync_server
1818
```
1919

2020
## Role Variables
2121

22-
Default varibles
22+
Default varibles in file [defaults/main.yml](defaults/main.yml)
2323

24-
```
24+
```yaml
25+
---
26+
# defaults file for rsync_server
2527
rsync_config_file: "/etc/rsyncd.conf"
2628
rsync_config_port: 873
2729
rsync_server_timeout: 300
2830
rsync_server_max_connections: 2
31+
rsync_packages:
32+
- rsync
2933
rsync_config_manage: []
3034
```
3135
3236
3337
## Example Playbook
3438
35-
```
39+
```yaml
3640
---
3741
- name: Example Playbook
3842
hosts: all
@@ -49,14 +53,14 @@ rsync_config_manage: []
4953
- rsync_server
5054
vars:
5155
rsync_config_manage:
52-
- name: "example-storage"
53-
configs:
54-
comment: "Example storage"
55-
path: "/var/www/example-storage"
56-
hosts_allow: ["*"]
57-
secrets:
58-
user: "{{ my_secter_rsync_user }}"
59-
password: "{{ my_secter_rsync_password }}"
56+
- name: "example-storage"
57+
configs:
58+
comment: "Example storage"
59+
path: "/var/www/example-storage"
60+
hosts_allow: ["*"]
61+
secrets:
62+
user: "{{ my_secter_rsync_user }}"
63+
password: "{{ my_secter_rsync_password }}"
6064
```
6165
6266
Rsync list for test

Diff for: ansible-lint.yaml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
3+
skip_list:
4+
- 'var-naming'
5+
- 'no-handler'
6+
- '503' # no-handler code
7+
- 'role-name'
8+
- '106'
9+
- 'ignore-errors'
10+
- 'yaml'
11+
- '204' # line length => checked by yamllint
12+
- 'name[template]'
13+
- 'run-once[play]' # only used in molecule
14+
- 'run-once[task]' # only used in molecule

Diff for: molecule/default/converge.yml

+5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
---
22
- name: Fail if molecule group is missing
33
hosts: localhost
4+
vars:
5+
molecule_inventory:
6+
all:
7+
hosts: {}
8+
molecule: {}
49
tasks:
510
- name: Print some info
611
ansible.builtin.debug:

Diff for: molecule/default/molecule.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,4 @@ verifier:
4040
lint: |
4141
set -e
4242
yamllint .
43-
ansible-lint .
43+
ansible-lint

Diff for: molecule/default/verify.yml

+5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
---
22
- name: Fail if molecule group is missing
33
hosts: localhost
4+
vars:
5+
molecule_inventory:
6+
all:
7+
hosts: {}
8+
molecule: {}
49
tasks:
510
- name: Print some info
611
ansible.builtin.debug:

Diff for: requirements.yml

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
---
22
roles: []
3-
collections:
4-
- name: community.docker
5-
version: ">=3.10.4"
6-
- name: community.general
3+
collections: []

Diff for: templates/etc-rsyncd.conf.j2

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
{% for item in rsync_config_manage | default([]) %}
1111
[{{ item.name }}]
1212
path = {{ item.configs.path }}
13-
comment = {{ item.configs.comment | default("{{ item.name }} - server rsync") }}
13+
comment = {{ item.configs.comment | default(item.name + " - server rsync") }}
1414
auth users = {{ item.secrets.user }}
1515
uid = {{ item.configs.uid | default('nobody') }}
1616
gid = {{ item.configs.gid | default('nogroup') }}

0 commit comments

Comments
 (0)