You've already forked ansible-role-sudo
Compare commits
15 Commits
e46a576674
...
0.1.0
Author | SHA1 | Date | |
---|---|---|---|
ebb37be03f
|
|||
e6ea326d15
|
|||
db72babee6 | |||
799950400a
|
|||
c8efde5d27
|
|||
27f2105e0e
|
|||
55c0d11edf
|
|||
fadd9ae492
|
|||
64fae2667a
|
|||
5a03c4cfcb
|
|||
7aeda4145c
|
|||
c7477a9c2a
|
|||
f74836f533
|
|||
ed3f2098d9
|
|||
1e2bcabc7f
|
@ -14,7 +14,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Run ansible-lint
|
- name: Run ansible-lint
|
||||||
uses: ansible/ansible-lint@v25.2.1
|
uses: ansible/ansible-lint@v25.7.0
|
||||||
with:
|
with:
|
||||||
args: "--config-file .ansible-lint"
|
args: "--config-file .ansible-lint"
|
||||||
setup_python: "true"
|
setup_python: "true"
|
||||||
|
@ -9,11 +9,10 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
markdown-lint:
|
markdown-lint:
|
||||||
container:
|
|
||||||
image: git.cryptic.systems/volker.raschek/markdownlint:0.44.0
|
|
||||||
runs-on:
|
runs-on:
|
||||||
- ubuntu-latest
|
- ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4.2.2
|
- uses: actions/checkout@v4.2.2
|
||||||
- name: Lint Markdown files
|
- uses: DavidAnson/markdownlint-cli2-action@v20.0.0
|
||||||
run: markdownlint --config .markdownlint.yaml .
|
with:
|
||||||
|
globs: '**/*.md'
|
||||||
|
14
.vscode/settings.json
vendored
Normal file
14
.vscode/settings.json
vendored
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
"ansible.python.interpreterPath": "/bin/python",
|
||||||
|
"files.associations": {
|
||||||
|
"**/.gitea/**/*.yml": "yaml",
|
||||||
|
"**/.gitea/**/*.yaml": "yaml",
|
||||||
|
".drone.yml": "yaml",
|
||||||
|
"docker-compose*.yml": "dockercompose",
|
||||||
|
"*.yml": "ansible",
|
||||||
|
"*.yaml": "ansible",
|
||||||
|
".yamllint": "yaml",
|
||||||
|
".yamllint.yml": "yaml",
|
||||||
|
".yamllint.yaml": "yaml"
|
||||||
|
}
|
||||||
|
}
|
@ -1,6 +1,5 @@
|
|||||||
# sudo_users
|
# sudo_users
|
||||||
|
|
||||||
[](https://drone.cryptic.systems/volker.raschek/sudo_users)
|
|
||||||
[](https://galaxy.ansible.com/volker_raschek/networking_role)
|
[](https://galaxy.ansible.com/volker_raschek/networking_role)
|
||||||
|
|
||||||
With following role can be created sudoers files in `/etc/sudoers.d`. For
|
With following role can be created sudoers files in `/etc/sudoers.d`. For
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
sudo_users_sudoers: {}
|
sudo_users_sudoers: []
|
||||||
# - commands:
|
# - commands:
|
||||||
# - ALL
|
# - ALL
|
||||||
# filename: "" # Optional: Default to user or group
|
# filename: "" # Optional: Default to user or group
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
galaxy_info:
|
galaxy_info:
|
||||||
namespace: volker_raschek
|
|
||||||
role_name: "sudo"
|
role_name: "sudo"
|
||||||
author: "Markus Pesch"
|
author: "Markus Pesch"
|
||||||
description: Role to configure sudoers on different distributions
|
description: Role to configure sudoers on different distributions
|
||||||
@ -10,12 +9,15 @@ galaxy_info:
|
|||||||
- name: ArchLinux
|
- name: ArchLinux
|
||||||
versions:
|
versions:
|
||||||
- all
|
- all
|
||||||
- name: Ubuntu
|
- name: EL
|
||||||
versions:
|
versions:
|
||||||
- all
|
- all
|
||||||
- name: Fedora
|
- name: Fedora
|
||||||
versions:
|
versions:
|
||||||
- "35"
|
- all
|
||||||
|
- name: Ubuntu
|
||||||
|
versions:
|
||||||
|
- all
|
||||||
|
|
||||||
galaxy_tags:
|
galaxy_tags:
|
||||||
- sudo
|
- sudo
|
||||||
|
@ -1,9 +1,8 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- name: Verify if not user and group exists for each entry
|
# - name: Verify if not user and group exists for each entry
|
||||||
ansible.builtin.assert:
|
# ansible.builtin.assert:
|
||||||
that:
|
# that:
|
||||||
- (item.user is defined and item.group is not defined) or
|
# - (item.user is defined and item.group is not defined) or
|
||||||
(item.user is not defined and item.group is defined)
|
# (item.user is not defined and item.group is defined)
|
||||||
with_items:
|
# with_items: "{{ sudo_users_sudoers }}"
|
||||||
- "{{ sudo_users_sudoers }}"
|
|
||||||
|
Reference in New Issue
Block a user