-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/test-and-lint' into test-and-lint
- Loading branch information
Showing
11 changed files
with
91 additions
and
48 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,20 +1,16 @@ | ||
--- | ||
name: Release to Ansible Galaxy | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
schedule: | ||
- cron: '1 10 14 * *' | ||
on: # yamllint disable-line rule:truthy | ||
workflow_dispatch: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v4 | ||
- name: galaxy | ||
uses: robertdebock/[email protected] | ||
- name: publish to galaxy | ||
uses: ansible-actions/[email protected] | ||
with: | ||
galaxy_version: ${{ github.ref_name }} | ||
galaxy_api_key: ${{ secrets.galaxy_api_key }} |
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 @@ | ||
--- | ||
name: Ansible Molecule | ||
|
||
on: | ||
on: # yamllint disable-line rule:truthy | ||
workflow_dispatch: | ||
push: | ||
tags_ignore: | ||
- '*' | ||
|
@@ -20,30 +20,28 @@ jobs: | |
test: | ||
needs: | ||
- lint | ||
runs-on: ubuntu-latest | ||
# services: | ||
# nginx: | ||
# image: nginx | ||
# ports: | ||
# - 80:80 | ||
# volumes: | ||
# - "${GITHUB_WORKSPACE}/molecule/default/files:/usr/share/nginx/html:ro" | ||
runs-on: ubuntu | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
config: | ||
- image: amazonlinux | ||
tag: latest | ||
- image: amazonlinux2 | ||
- image: ubuntu2204 | ||
- image: rockylinux8 | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
path: "${{ github.repository }}" | ||
- name: molecule | ||
uses: robertdebock/[email protected] | ||
- name: Set up Python 3. | ||
uses: actions/setup-python@v5 | ||
with: | ||
image: ${{ matrix.config.image }} | ||
tag: ${{ matrix.config.tag }} | ||
options: "--parallel all" | ||
python-version: '3.x' | ||
- name: Install test dependencies. | ||
run: pip3 install ansible molecule-docker docker | ||
- name: molecule | ||
run: molecule test | ||
env: | ||
TOX_PARALLEL_NO_SPINNER: 1 | ||
PY_COLORS: '1' | ||
ANSIBLE_FORCE_COLOR: '1' | ||
image: ${{ matrix.image }} |
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,40 @@ | ||
--- | ||
# Based on ansible-lint config | ||
extends: default | ||
ignore: | | ||
venv/ | ||
scripts/ | ||
molecule.yml | ||
rules: | ||
line-length: | ||
max: 120 | ||
level: warning | ||
rulesa: | ||
braces: | ||
max-spaces-inside: 1 | ||
level: error | ||
brackets: | ||
max-spaces-inside: 1 | ||
level: error | ||
colons: | ||
max-spaces-after: -1 | ||
level: error | ||
commas: | ||
max-spaces-after: -1 | ||
level: error | ||
comments: disable | ||
comments-indentation: disable | ||
document-start: disable | ||
empty-lines: | ||
max: 3 | ||
level: error | ||
hyphens: | ||
level: error | ||
indentation: disable | ||
key-duplicates: enable | ||
line-length: disable | ||
new-line-at-end-of-file: disable | ||
new-lines: | ||
type: unix | ||
trailing-spaces: disable | ||
truthy: disable |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
- name: Restart bigfix-client | ||
ansible.builtin.service: | ||
name: "{{ bigfix_client_service_name }}" | ||
state: restarted | ||
enabled: true |
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 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,5 +1,5 @@ | ||
--- | ||
|
||
- name: Install BigFix Client | ||
ansible.builtin.command: # noqa: no-changed-when | ||
ansible.builtin.command: # noqa: no-changed-when | ||
cmd: "/usr/sbin/swinstall -s {{ ansible_hostname }}:/tmp/{{ bigfix_client_file_name }} BESAgent" |
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,6 +1,6 @@ | ||
--- | ||
|
||
- name: Install BigFix Client | ||
community.general.svr4pkg: # noqa: args[module] | ||
community.general.svr4pkg: # noqa: args[module] | ||
src: "/tmp/{{ bigfix_client_file_name }}" | ||
state: present |
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