Skip to content

Commit

Permalink
Merge pull request #27 from ehh-why-its-so-hard/jenkins-agent-role
Browse files Browse the repository at this point in the history
feat: add jenkins-agent role
  • Loading branch information
daniel1302 authored Nov 18, 2024
2 parents 6f635fa + 16eb6ad commit f9ec53b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
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 @@
---
- 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

0 comments on commit f9ec53b

Please sign in to comment.