From f59b82c65c26bf8309ad8d4e6814d09303d1c04f Mon Sep 17 00:00:00 2001 From: L3D Date: Mon, 11 Apr 2022 17:51:43 +0200 Subject: [PATCH 1/2] update github actions --- .github/workflows/ansible-archlinux-latest.yml | 6 +++--- .github/workflows/ansible-centos-centos7.yml | 6 +++--- .github/workflows/ansible-centos-centos8.yml | 6 +++--- .github/workflows/ansible-centos-centos9.yml | 18 ++++++++++++++++++ .github/workflows/ansible-centos-latest.yml | 6 +++--- .github/workflows/ansible-debian-bullseye.yml | 6 +++--- .github/workflows/ansible-debian-buster.yml | 6 +++--- .github/workflows/ansible-debian-latest.yml | 6 +++--- .github/workflows/ansible-debian-sid.yml | 6 +++--- .github/workflows/ansible-debian-stable.yml | 5 +++-- .github/workflows/ansible-debian-stretch.yml | 6 +++--- .github/workflows/ansible-fedora-31.yml | 6 +++--- .github/workflows/ansible-fedora-32.yml | 6 +++--- .github/workflows/ansible-fedora-33.yml | 6 +++--- .github/workflows/ansible-fedora-latest.yml | 6 +++--- .github/workflows/ansible-linting-check.yml | 12 ++++-------- .github/workflows/ansible-ubuntu-bionic.yml | 6 +++--- .github/workflows/ansible-ubuntu-latest.yml | 4 ++-- .github/workflows/ansible-ubuntu-trusty.yml | 4 ++-- .github/workflows/galaxy.yml | 10 ++++++---- .github/workflows/yamllint.yaml | 7 ++++--- 21 files changed, 81 insertions(+), 63 deletions(-) create mode 100644 .github/workflows/ansible-centos-centos9.yml diff --git a/.github/workflows/ansible-archlinux-latest.yml b/.github/workflows/ansible-archlinux-latest.yml index e823f0c..edcd8c8 100644 --- a/.github/workflows/ansible-archlinux-latest.yml +++ b/.github/workflows/ansible-archlinux-latest.yml @@ -6,13 +6,13 @@ on: [push, pull_request] jobs: build: - runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - name: 'checkout git repo' + uses: actions/checkout@v3 - - name: ansible check with archlinux:latest + - name: 'ansible check with archlinux:latest' uses: roles-ansible/check-ansible-archlinux-latest-action@master with: targets: "./" diff --git a/.github/workflows/ansible-centos-centos7.yml b/.github/workflows/ansible-centos-centos7.yml index 401d2c0..f7990c9 100644 --- a/.github/workflows/ansible-centos-centos7.yml +++ b/.github/workflows/ansible-centos-centos7.yml @@ -6,13 +6,13 @@ on: [push, pull_request] jobs: build: - runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - name: 'checkout git repo' + uses: actions/checkout@v3 - - name: ansible check with ubuntu:centos7 + - name: 'ansible check with ubuntu:centos7' uses: roles-ansible/check-ansible-centos-centos7-action@master with: targets: "./" diff --git a/.github/workflows/ansible-centos-centos8.yml b/.github/workflows/ansible-centos-centos8.yml index f20097b..5dc597e 100644 --- a/.github/workflows/ansible-centos-centos8.yml +++ b/.github/workflows/ansible-centos-centos8.yml @@ -6,13 +6,13 @@ on: [push, pull_request] jobs: build: - runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - name: 'checkout git repo' + uses: actions/checkout@v3 - - name: ansible check with ubuntu:centos8 + - name: 'ansible check with ubuntu:centos8' uses: roles-ansible/check-ansible-centos-centos8-action@master with: targets: "./" diff --git a/.github/workflows/ansible-centos-centos9.yml b/.github/workflows/ansible-centos-centos9.yml new file mode 100644 index 0000000..4e95a06 --- /dev/null +++ b/.github/workflows/ansible-centos-centos9.yml @@ -0,0 +1,18 @@ +--- +name: Ansible check centos:stream9 + +# yamllint disable-line rule:truthy +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: 'checkout git repo' + uses: actions/checkout@v3 + + - name: 'ansible check with quay.io/centos/centos:stream9' + uses: roles-ansible/check-ansible-centos-centos9-action@main + with: + targets: "./" diff --git a/.github/workflows/ansible-centos-latest.yml b/.github/workflows/ansible-centos-latest.yml index 94eb54b..16bb4e7 100644 --- a/.github/workflows/ansible-centos-latest.yml +++ b/.github/workflows/ansible-centos-latest.yml @@ -6,13 +6,13 @@ on: [push, pull_request] jobs: build: - runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - name: 'checkout git repo' + uses: actions/checkout@v3 - - name: ansible check with ubuntu:latest + - name: 'ansible check with ubuntu:latest' uses: roles-ansible/check-ansible-centos-latest-action@master with: targets: "./" diff --git a/.github/workflows/ansible-debian-bullseye.yml b/.github/workflows/ansible-debian-bullseye.yml index 4b7c45d..b50d111 100644 --- a/.github/workflows/ansible-debian-bullseye.yml +++ b/.github/workflows/ansible-debian-bullseye.yml @@ -6,13 +6,13 @@ on: [push, pull_request] jobs: build: - runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - name: 'checkout git repo' + uses: actions/checkout@v3 - - name: ansible check with debian:bullseye + - name: 'ansible check with debian:bullseye' uses: roles-ansible/check-ansible-debian-bullseye-action@main with: targets: "./" diff --git a/.github/workflows/ansible-debian-buster.yml b/.github/workflows/ansible-debian-buster.yml index d76b02c..a819e89 100644 --- a/.github/workflows/ansible-debian-buster.yml +++ b/.github/workflows/ansible-debian-buster.yml @@ -6,13 +6,13 @@ on: [push, pull_request] jobs: build: - runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - name: 'checkout git repo' + uses: actions/checkout@v3 - - name: ansible check with debian:buster + - name: 'ansible check with debian:buster' uses: roles-ansible/check-ansible-debian-buster-action@master with: targets: "./" diff --git a/.github/workflows/ansible-debian-latest.yml b/.github/workflows/ansible-debian-latest.yml index f7eb5b6..d06a132 100644 --- a/.github/workflows/ansible-debian-latest.yml +++ b/.github/workflows/ansible-debian-latest.yml @@ -6,13 +6,13 @@ on: [push, pull_request] jobs: build: - runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - name: 'checkout git repo' + uses: actions/checkout@v3 - - name: ansible check with debian:latest + - name: 'ansible check with debian:latest' uses: roles-ansible/check-ansible-debian-latest-action@master with: targets: "./" diff --git a/.github/workflows/ansible-debian-sid.yml b/.github/workflows/ansible-debian-sid.yml index 2e3215a..22cbbfb 100644 --- a/.github/workflows/ansible-debian-sid.yml +++ b/.github/workflows/ansible-debian-sid.yml @@ -6,13 +6,13 @@ on: [push, pull_request] jobs: build: - runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - name: 'checkout git repo' + uses: actions/checkout@v3 - - name: ansible check with debian:sid + - name: 'ansible check with debian:sid' uses: roles-ansible/check-ansible-debian-sid-action@master with: targets: "./" diff --git a/.github/workflows/ansible-debian-stable.yml b/.github/workflows/ansible-debian-stable.yml index 38a456d..bf06f77 100644 --- a/.github/workflows/ansible-debian-stable.yml +++ b/.github/workflows/ansible-debian-stable.yml @@ -14,9 +14,10 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - name: 'checkout git repo' + uses: actions/checkout@v3 - - name: ansible check with debian:stable + - name: 'ansible check with debian:stable' uses: roles-ansible/check-ansible-debian-stable-action@master with: targets: "./" diff --git a/.github/workflows/ansible-debian-stretch.yml b/.github/workflows/ansible-debian-stretch.yml index c947cae..c291320 100644 --- a/.github/workflows/ansible-debian-stretch.yml +++ b/.github/workflows/ansible-debian-stretch.yml @@ -6,13 +6,13 @@ on: [push, pull_request] jobs: build: - runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - name: 'checkout git repo' + uses: actions/checkout@v3 - - name: ansible check with debian:stretch + - name: 'ansible check with debian:stretch' uses: roles-ansible/check-ansible-debian-stretch-action@master with: targets: "./" diff --git a/.github/workflows/ansible-fedora-31.yml b/.github/workflows/ansible-fedora-31.yml index 08502fe..707e816 100644 --- a/.github/workflows/ansible-fedora-31.yml +++ b/.github/workflows/ansible-fedora-31.yml @@ -6,13 +6,13 @@ on: [push, pull_request] jobs: build: - runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - name: 'checkout git repo' + uses: actions/checkout@v3 - - name: ansible check with fedora:31 + - name: 'ansible check with fedora:31' uses: roles-ansible/check-ansible-fedora-31-action@master with: targets: "./" diff --git a/.github/workflows/ansible-fedora-32.yml b/.github/workflows/ansible-fedora-32.yml index e362dd4..4376180 100644 --- a/.github/workflows/ansible-fedora-32.yml +++ b/.github/workflows/ansible-fedora-32.yml @@ -6,13 +6,13 @@ on: [push, pull_request] jobs: build: - runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - name: 'checkout git repo' + uses: actions/checkout@v3 - - name: ansible check with fedora:32 + - name: 'ansible check with fedora:32' uses: roles-ansible/check-ansible-fedora-32-action@master with: targets: "./" diff --git a/.github/workflows/ansible-fedora-33.yml b/.github/workflows/ansible-fedora-33.yml index 70c52ad..e2809ba 100644 --- a/.github/workflows/ansible-fedora-33.yml +++ b/.github/workflows/ansible-fedora-33.yml @@ -6,13 +6,13 @@ on: [push, pull_request] jobs: build: - runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - name: 'checkout git repo' + uses: actions/checkout@v3 - - name: ansible check with fedora:33 + - name: 'ansible check with fedora:33' uses: roles-ansible/check-ansible-fedora-33-action@master with: targets: "./" diff --git a/.github/workflows/ansible-fedora-latest.yml b/.github/workflows/ansible-fedora-latest.yml index 7cfbdf7..78fa27f 100644 --- a/.github/workflows/ansible-fedora-latest.yml +++ b/.github/workflows/ansible-fedora-latest.yml @@ -6,13 +6,13 @@ on: [push, pull_request] jobs: build: - runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - name: 'checkout git repo' + uses: actions/checkout@v3 - - name: ansible check with fedora:latest + - name: 'ansible check with fedora:latest' uses: roles-ansible/check-ansible-fedora-latest-action@master with: targets: "./" diff --git a/.github/workflows/ansible-linting-check.yml b/.github/workflows/ansible-linting-check.yml index ab63487..4d7dc8e 100644 --- a/.github/workflows/ansible-linting-check.yml +++ b/.github/workflows/ansible-linting-check.yml @@ -10,17 +10,13 @@ on: jobs: build: - runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - name: 'checkout git repo' + uses: actions/checkout@v3 - - name: Lint Ansible Playbook - uses: ansible/ansible-lint-action@master + - name: 'Lint Ansible Playbook' + uses: ansible/ansible-lint-action@v6 with: targets: "." - # [required] - # Paths to ansible files (i.e., playbooks, tasks, handlers etc..) - args: "" - # [optional] diff --git a/.github/workflows/ansible-ubuntu-bionic.yml b/.github/workflows/ansible-ubuntu-bionic.yml index 0f9edd8..0b07870 100644 --- a/.github/workflows/ansible-ubuntu-bionic.yml +++ b/.github/workflows/ansible-ubuntu-bionic.yml @@ -6,13 +6,13 @@ on: [push, pull_request] jobs: build: - runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - name: 'checkout git repo' + uses: actions/checkout@v3 - - name: ansible check with ubuntu:bionic + - name: 'ansible check with ubuntu:bionic' uses: roles-ansible/check-ansible-ubuntu-bionic-action@master with: targets: "./" diff --git a/.github/workflows/ansible-ubuntu-latest.yml b/.github/workflows/ansible-ubuntu-latest.yml index b9544a5..583b6ad 100644 --- a/.github/workflows/ansible-ubuntu-latest.yml +++ b/.github/workflows/ansible-ubuntu-latest.yml @@ -6,11 +6,11 @@ on: [push, pull_request] jobs: build: - runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - name: 'checkout git repo' + uses: actions/checkout@v3 - name: ansible check with ubuntu:latest uses: roles-ansible/check-ansible-ubuntu-latest-action@master diff --git a/.github/workflows/ansible-ubuntu-trusty.yml b/.github/workflows/ansible-ubuntu-trusty.yml index 6cde8b8..3c265a3 100644 --- a/.github/workflows/ansible-ubuntu-trusty.yml +++ b/.github/workflows/ansible-ubuntu-trusty.yml @@ -6,11 +6,11 @@ on: [push, pull_request] jobs: build: - runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - name: 'checkout git repo' + uses: actions/checkout@v3 - name: ansible check with ubuntu:trusty uses: roles-ansible/check-ansible-ubuntu-trusty-action@master diff --git a/.github/workflows/galaxy.yml b/.github/workflows/galaxy.yml index b5dc0ec..adcecbd 100644 --- a/.github/workflows/galaxy.yml +++ b/.github/workflows/galaxy.yml @@ -12,9 +12,11 @@ jobs: build: runs-on: ubuntu-latest steps: - - name: checkout - uses: actions/checkout@v2 - - name: galaxy - uses: robertdebock/galaxy-action@1.1.0 + - name: 'checkout git repo' + uses: actions/checkout@v3 + + - name: 'release on galaxy' + uses: robertdebock/galaxy-action@1.2.0 with: galaxy_api_key: ${{ secrets.galaxy_api_key }} + git_branch: 'main' diff --git a/.github/workflows/yamllint.yaml b/.github/workflows/yamllint.yaml index d4ad029..d744e9c 100644 --- a/.github/workflows/yamllint.yaml +++ b/.github/workflows/yamllint.yaml @@ -13,10 +13,11 @@ jobs: name: 'Yamllint' runs-on: ubuntu-latest steps: - - name: 'Checkout' - uses: actions/checkout@master + - name: 'checkout git repo' + uses: actions/checkout@v3 + - name: 'Yamllint' - uses: karancode/yamllint-github-action@master + uses: karancode/yamllint-github-action@v2.0.0 with: yamllint_file_or_dir: '.' yamllint_config_filepath: './.yamllint' From cb6815f23c2602632a4be1305ba6f208a604a4cf Mon Sep 17 00:00:00 2001 From: L3D Date: Mon, 11 Apr 2022 17:57:56 +0200 Subject: [PATCH 2/2] improeve README --- README.md | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 0628823..20c2689 100644 --- a/README.md +++ b/README.md @@ -23,23 +23,20 @@ For a good overview about possible variables, please have a look into ``defaults Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too: -```bash - - hosts: all +```yaml + - name: install i3wm on localhost + hosts: localhost vars_files: - vars/main.yml roles: - - { role: i3, tags[i3,i3wm] } + - {role: do1jlr.i3wm, tags[i3,i3wm]} ``` *`vars/main.yml`* -```bash +```yaml # background image i3_desktop_background: "~/Bilder/wallpaper.jpg" - # additional programms you need - i3_packages_extra: - - ranger - # you want additional keybindings? i3_keybindings_extra: - keybinding: @@ -55,18 +52,18 @@ Including an example of how to use your role (for instance, with variables passe i3_monitors: - monitor: id: 1 - output: "VGA-1" + output: "HDMI-A-0" mode: "1920x1080" pos: "0x0" rotate: "normal" - workspaces: [1,2,3,4,5,6] + workspaces: [0,1,2,3,4,5,6] - monitor: id: 2 - output: "HDMI-1" + output: "DisplayPort-0" mode: "1920x1080" pos: "1920x0" rotate: "normal" - workspaces: [7,8,9,0] + workspaces: [7,8,9] # startup applications i3_applications: