You've already forked ansible-role-unix-users
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
a4b28d441b
|
|||
|
1ec88f37fb
|
|||
|
09c4173eaf
|
|||
|
14f856fdea
|
|||
|
86d85c431c
|
22
.gitea/workflows/release.yaml
Normal file
22
.gitea/workflows/release.yaml
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
name: Release Ansible Role
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- '**'
|
||||||
|
workflow_dispatch: {}
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
release:
|
||||||
|
name: Release Ansible Role
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Install Ansible Galaxy
|
||||||
|
run: |
|
||||||
|
apt update --yes
|
||||||
|
apt install --yes ansible
|
||||||
|
- env:
|
||||||
|
ANSIBLE_GALAXY_TOKEN: ${{ secrets.ANSIBLE_GALAXY_TOKEN }}
|
||||||
|
name: Update Ansible Role in Ansible Galaxy
|
||||||
|
run: |
|
||||||
|
ansible-galaxy role import --token=${ANSIBLE_GALAXY_TOKEN} volker-raschek ${GITHUB_REPOSITORY#*/}
|
||||||
@@ -103,7 +103,7 @@ unix_users:
|
|||||||
authorized_keys:
|
authorized_keys:
|
||||||
- filename: claire@claire-pc.pub
|
- filename: claire@claire-pc.pub
|
||||||
- command: /usr/local/bin/upload-file.sh
|
- command: /usr/local/bin/upload-file.sh
|
||||||
environments:
|
envs:
|
||||||
- key: SSH_KEY_NAME
|
- key: SSH_KEY_NAME
|
||||||
value: bob@bob-pc
|
value: bob@bob-pc
|
||||||
filename: bob@bob-pc.pub
|
filename: bob@bob-pc.pub
|
||||||
|
|||||||
@@ -7,9 +7,9 @@
|
|||||||
{% if authorized_key.command is defined and authorized_key.command | length > 0 %}
|
{% if authorized_key.command is defined and authorized_key.command | length > 0 %}
|
||||||
{% set _args = _args + [ "command=\"" + authorized_key.command + "\"" ] %}
|
{% set _args = _args + [ "command=\"" + authorized_key.command + "\"" ] %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if authorized_key.environments is defined %}
|
{% if authorized_key.envs is defined %}
|
||||||
{% set ns = namespace(envs=[]) %}
|
{% set ns = namespace(envs=[]) %}
|
||||||
{% for environment in authorized_key.environments %}
|
{% for environment in authorized_key.envs %}
|
||||||
{% if environment.key is defined and environment.key | length > 0 and
|
{% if environment.key is defined and environment.key | length > 0 and
|
||||||
environment.value is defined and environment.value | length > 0
|
environment.value is defined and environment.value | length > 0
|
||||||
%}
|
%}
|
||||||
|
|||||||
Reference in New Issue
Block a user