-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #45 from bulch/develop
Develop
- Loading branch information
Showing
12 changed files
with
46 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- | ||
skip_list: | ||
- 'yaml' | ||
- 'risky-shell-pipe' | ||
- 'role-name' | ||
# skip_list: | ||
# - 'yaml' | ||
# - 'risky-shell-pipe' | ||
# - 'role-name' | ||
use_default_rules: true | ||
verbosity: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ jobs: | |
|
||
lint: | ||
name: Lint | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- name: Check out the codebase. | ||
uses: actions/[email protected] | ||
|
@@ -45,39 +45,23 @@ jobs: | |
run: | | ||
yamllint -c=.yamllint . | ||
- name: Lint code ansible-lint. | ||
- name: Run ansible-lint | ||
run: | | ||
ansible-lint | ||
exit_code=0 | ||
expected_exit_code=0 | ||
ansible-lint || exit_code=$? | ||
if [ "$exit_code" != "$expected_exit_code" ]; then echo "Command failed: got '$exit_code', expected '$expected_exit_code'"; exit 1; fi | ||
molecule: | ||
name: Molecule | ||
needs: lint | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-24.04 | ||
strategy: | ||
matrix: | ||
distro: | ||
- ubuntu2404 | ||
- ubuntu2204 | ||
- ubuntu2004 | ||
# - ubuntu1804 # TODO: WARNING Driver docker does not provide a schema | ||
# - ubuntu1604 # TODO: fatal: [instance]: FAILED! => | ||
# { | ||
# "ansible_facts": {}, | ||
# "changed": false, | ||
# "failed_modules": { | ||
# "ansible.legacy.setup": { | ||
# "ansible_facts": { | ||
# "discovered_interpreter_python": "/usr/bin/python3" | ||
# }, | ||
# "failed": true, | ||
# "msg": "ansible-core requires a minimum of Python2 version 2.7 or Python3 version 3.6. Current version: 3.5.2 (default, Jan 26 2021, 13:30:48) [GCC 5.4.0 20160609]" | ||
# } | ||
# }, | ||
# "msg": "The following modules failed to execute: ansible.legacy.setup\n" | ||
# } | ||
# - ubuntu1404 # TODO: ansible-core requires a minimum of Python2 version 2.7 or Python3 version 3.6. Current version: 3.4.3 (default, Nov 28 2017, 16:41:13) [GCC 4.8.4] | ||
# - ubuntu1204 # DEPRECATED https://hub.docker.com/r/geerlingguy/docker-ubuntu1204-ansible | ||
|
||
steps: | ||
- name: Check out the codebase. | ||
uses: actions/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ jobs: | |
|
||
release-ansible-galaxy: | ||
name: Release ansible-galaxy | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- name: Check out the codebase. | ||
uses: actions/[email protected] | ||
|
@@ -41,7 +41,7 @@ jobs: | |
srelease-git: | ||
name: Release github | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-24.04 | ||
needs: release-ansible-galaxy | ||
steps: | ||
- name: 🚀 Create Release version | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,21 @@ | ||
--- | ||
# This is an example playbook to execute Ansible tests. | ||
- name: Fail if molecule group is missing | ||
hosts: localhost | ||
tasks: | ||
- name: Print some info | ||
ansible.builtin.debug: | ||
msg: "{{ groups }}" | ||
|
||
- name: Assert group existence | ||
ansible.builtin.assert: | ||
that: "'molecule' in groups" | ||
fail_msg: | | ||
molecule group was not found inside inventory groups: {{ groups }} | ||
- name: Verify | ||
hosts: all | ||
hosts: molecule | ||
gather_facts: false | ||
tasks: | ||
- name: Include test-rsync_server | ||
ansible.legacy.include_role: | ||
name: "test-rsync_server" | ||
name: testrsync_server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
testrsync_server_path_default_config_rsync: "/etc/default/rsync" | ||
testrsync_server_path_secret_rsync: "/etc/rsyncd.secrets" | ||
testrsync_server_path_rsync_config: "/etc/rsyncd.conf" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ | |
hosts: molecule-ubuntu | ||
remote_user: root | ||
roles: | ||
- bulch.rsync_server | ||
- testrsync_server |