Skip to content

Commit

Permalink
fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
bodsch committed Aug 25, 2021
1 parent 1739627 commit 5aaa3be
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 32 deletions.
42 changes: 13 additions & 29 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,40 +14,24 @@ defaults:
working-directory: 'ansible-urbanterror'

jobs:

lint:
name: Lint
runs-on: ubuntu-18.04
name: linting
runs-on: ubuntu-latest
steps:
- name: check out the codebase.
- name: checkout
uses: actions/checkout@v2
with:
path: 'ansible-urbanterror'

- name: set up python.
uses: actions/setup-python@v2
with:
python-version: '3.x'
fetch-depth: 0

- name: install dependencies.
run: |
set +e
sudo apt-get update
sudo apt-get install -y python3-pip python3-setuptools
sudo pip3 install ansible==2.10.6 ansible-lint==5.0.0 yamllint==1.26.0 flake8==3.8.4 PyYAML==5.3.1
- name: YAMLlint
run: |
yamllint --version
yamllint .
- name: ansible-lint
run: |
ansible-lint --version
ansible-lint .
- name: flake8
run: |
flake8 --version
flake8 .
- name: lint
uses: docker://ghcr.io/github/super-linter:slim-v4
env:
# DEFAULT_BRANCH: master
GITHUB_TOKEN: ${{ secrets.GH_REGISTRY_TOKEN }}
VALIDATE_ALL_CODEBASE: true
VALIDATE_ANSIBLE: true
# VALIDATE_MARKDOWN: trues
VALIDATE_YAML: true

test:
name: "${{ matrix.image }} / python: ${{ matrix.python-version }}, ansible: ${{ matrix.ansible-version }}"
Expand Down
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@

# Ansible Role: `urbanterror`


installs and configure an [Urbanterror](https://www.urbanterror.info/home) server.


Expand All @@ -21,7 +24,7 @@ Tested on

### default configration

```
```yaml
urbanterror_admin_password: s3cr3T-are-p0ssiBL3

urbanterror_start_map: ut4_riyadh
Expand Down Expand Up @@ -99,7 +102,6 @@ urbanterror_custom_maps:
- `FreezeTag`
- `GunGame`

```
```yaml
urbanterror_game_type: CaptureTheFlag
```

0 comments on commit 5aaa3be

Please sign in to comment.