Compare commits
3 Commits
renovate/p
...
c308225b56
| Author | SHA1 | Date | |
|---|---|---|---|
|
c308225b56
|
|||
|
2e3f276433
|
|||
|
c635c489a0
|
@@ -22,11 +22,11 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
path: "palkx.users"
|
path: "palkx.users"
|
||||||
- name: Setup Python 3
|
- name: Setup Python 3
|
||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v6
|
||||||
with:
|
with:
|
||||||
python-version: "3.x"
|
python-version: "3.13"
|
||||||
- name: Intall test dependencies
|
- name: Intall test dependencies
|
||||||
run: pip3 install yamllint ansible-lint
|
run: pip3 install yamllint==1.37.1 ansible-lint==25.12.0
|
||||||
- name: Lint code with yamllint
|
- name: Lint code with yamllint
|
||||||
run: "yamllint ."
|
run: "yamllint ."
|
||||||
- name: Lint code with yamllint
|
- name: Lint code with yamllint
|
||||||
@@ -38,10 +38,12 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
distro:
|
distro:
|
||||||
- rockylinux9
|
- rockylinux9
|
||||||
|
- rockylinux10
|
||||||
- ubuntu2204
|
- ubuntu2204
|
||||||
- ubuntu2404
|
- ubuntu2404
|
||||||
- debian11
|
- debian11
|
||||||
- debian12
|
- debian12
|
||||||
|
- debian13
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout the codebase
|
- name: Checkout the codebase
|
||||||
@@ -49,11 +51,11 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
path: "palkx.users"
|
path: "palkx.users"
|
||||||
- name: Setup Python 3
|
- name: Setup Python 3
|
||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v6
|
||||||
with:
|
with:
|
||||||
python-version: "3.x"
|
python-version: "3.13"
|
||||||
- name: Intall test dependencies
|
- name: Intall test dependencies
|
||||||
run: pip3 install ansible molecule molecule-plugins[docker] docker
|
run: pip3 install ansible-core==2.20.0 molecule==25.12.0 molecule-plugins[docker]==25.8.12 docker==7.1.0
|
||||||
- name: Run Molecule tests
|
- name: Run Molecule tests
|
||||||
run: molecule test
|
run: molecule test
|
||||||
env:
|
env:
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
- name: Create users
|
- name: Create users
|
||||||
ansible.builtin.include_tasks: user.yml
|
ansible.builtin.include_tasks: user.yml
|
||||||
when: ansible_default_ipv4.address in users[username]['passwords'] or users[username]['passwords'].get('default')
|
when: ansible_default_ipv4.address in users[username]['passwords'] or users[username]['passwords'].get('default', None) is not None
|
||||||
with_items: "{{ users.keys() }}"
|
with_items: "{{ users.keys() }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
loop_var: username
|
loop_var: username
|
||||||
|
|||||||
Reference in New Issue
Block a user