style(flucky): name of tasks, use built in module
Some checks reported errors
continuous-integration/drone/push Build was killed

This commit is contained in:
Markus Pesch 2023-02-12 14:43:12 +01:00
parent 898d396d3e
commit add9a91d00
Signed by: volker.raschek
GPG Key ID: 852BCC170D81A982
3 changed files with 5 additions and 57 deletions

View File

@ -40,55 +40,3 @@ trigger:
event: event:
exclude: exclude:
- tag - tag
---
kind: pipeline
type: kubernetes
name: sync
platform:
os: linux
arch: amd64
steps:
- name: github
image: docker.io/appleboy/drone-git-push:latest
resources:
limits:
cpu: 50
memory: 25M
settings:
branch: master
remote: ssh://git@github.com/volker-raschek/git-role.git
force: true
ssh_key:
from_secret: ssh_key
- name: email-notification
environment:
PLUGIN_HOST:
from_secret: smtp_host
PLUGIN_USERNAME:
from_secret: smtp_username
PLUGIN_PASSWORD:
from_secret: smtp_password
PLUGIN_FROM:
from_secret: smtp_mail_address
image: docker.io/drillster/drone-email:latest
resources:
limits:
cpu: 50
memory: 25M
when:
status:
- changed
- failure
trigger:
branch:
- master
event:
- cron
- push
repo:
- volker.raschek/git-role

View File

@ -1,11 +1,11 @@
--- ---
- name: Get entity for user {{ item.key }} - name: "Determine entries via NSS for unix user: {{ item.key }}"
getent: ansible.builtin.getent:
database: passwd database: passwd
key: "{{ item.key }}" key: "{{ item.key }}"
- name: Create git config directory for {{ 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: "{{ getent_passwd[item.key][4] }}/.config/git"
owner: "{{ item.key }}" owner: "{{ item.key }}"

View File

@ -1,7 +1,7 @@
--- ---
- name: Include OS-specific variables - name: Include OS-specific variables
include_vars: "{{ ansible_os_family }}.yml" ansible.builtin.include_vars: "{{ ansible_os_family }}.yml"
- name: Install git and dependencies - name: Install git and dependencies
ansible.builtin.package: ansible.builtin.package:
@ -10,6 +10,6 @@
with_items: "{{ git_package_names }}" with_items: "{{ git_package_names }}"
- name: Configure git - name: Configure git
include_tasks: git_user.yml ansible.builtin.include_tasks: git_user.yml
with_dict: with_dict:
- "{{ git_users }}" - "{{ git_users }}"