Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add jenkins-agent role #27

Merged
merged 2 commits into from
Nov 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions roles/jenkins_agent/meta/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
dependencies:
- vega_common
- docker
13 changes: 13 additions & 0 deletions roles/jenkins_agent/tasks/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
daniel1302 marked this conversation as resolved.
Show resolved Hide resolved
- name: Ensure group "jenkins-agent" exists
ansible.builtin.group:
name: jenkins-agent
state: present

- name: Append jenkins-agent user to the sudo group
ansible.builtin.user:
name: jenkins-agent
shell: /bin/bash
groups: sudo,docker,jenkins-agent
append: true
home: /home/jenkins-agent