You've already forked ansible-role-git
Compare commits
9 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
4739b8cd6f
|
|||
| 87a7156f3c | |||
|
74ae86bfb3
|
|||
| ed4d6b0b7e | |||
|
4ce688b775
|
|||
|
c1cf978c42
|
|||
|
c097c3f192
|
|||
|
107744ad18
|
|||
|
f4c2926f96
|
@@ -12,9 +12,9 @@ jobs:
|
|||||||
runs-on:
|
runs-on:
|
||||||
- ubuntu-latest
|
- ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v6.0.1
|
- uses: actions/checkout@v6.0.2
|
||||||
- name: Run ansible-lint
|
- name: Run ansible-lint
|
||||||
uses: ansible/ansible-lint@v25.12.2
|
uses: ansible/ansible-lint@v26.1.1
|
||||||
with:
|
with:
|
||||||
args: "--config-file .ansible-lint"
|
args: "--config-file .ansible-lint"
|
||||||
setup_python: "true"
|
setup_python: "true"
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ jobs:
|
|||||||
runs-on:
|
runs-on:
|
||||||
- ubuntu-latest
|
- ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v6.0.1
|
- uses: actions/checkout@v6.0.2
|
||||||
- uses: DavidAnson/markdownlint-cli2-action@v21.0.0
|
- uses: DavidAnson/markdownlint-cli2-action@v21.0.0
|
||||||
with:
|
with:
|
||||||
globs: '**/*.md'
|
globs: '**/*.md'
|
||||||
|
|||||||
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#*/}
|
||||||
@@ -7,18 +7,18 @@
|
|||||||
|
|
||||||
- name: "Create git config directory for unix user: {{ item.key }}"
|
- name: "Create git config directory for unix user: {{ item.key }}"
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
dest: "{{ getent_passwd[item.key][4] }}/.config/git"
|
dest: "{{ ansible_facts['getent_passwd'][item.key][4] }}/.config/git"
|
||||||
owner: "{{ item.key }}"
|
owner: "{{ item.key }}"
|
||||||
group: "{{ getent_passwd[item.key][2] }}"
|
group: "{{ ansible_facts['getent_passwd'][item.key][2] }}"
|
||||||
state: directory
|
state: directory
|
||||||
mode: "0755"
|
mode: "0755"
|
||||||
|
|
||||||
- name: Create global git config files
|
- name: Create global git config files
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: "{{ filename }}.j2"
|
src: "{{ filename }}.j2"
|
||||||
dest: "{{ getent_passwd[item.key][4] }}/{{ filename }}"
|
dest: "{{ ansible_facts['getent_passwd'][item.key][4] }}/{{ filename }}"
|
||||||
owner: "{{ item.key }}"
|
owner: "{{ item.key }}"
|
||||||
group: "{{ getent_passwd[item.key][2] }}"
|
group: "{{ ansible_facts['getent_passwd'][item.key][2] }}"
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
with_items:
|
with_items:
|
||||||
- .config/git/allowedSignersFile
|
- .config/git/allowedSignersFile
|
||||||
|
|||||||
Reference in New Issue
Block a user