aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2023-03-11 14:45:25 +0100
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2023-03-11 14:45:25 +0100
commit1445312ed61012d040fd0fb524478d651b8d946b (patch)
tree6087a93f425a59b1526d377ca39852d65385cae7
parent18cdc71f9a55fa50fdb16cfeca5dfd8741375519 (diff)
parentedbfaad3d3026c4a867a9dded6603e92fb832414 (diff)
downloadansible_collection-1445312ed61012d040fd0fb524478d651b8d946b.tar.gz
Merge branch 'dev' of git.jonasgunz.de:repos/ansible_collection into dev
-rw-r--r--galaxy.yml2
-rw-r--r--roles/rundeck/main.yml7
-rw-r--r--roles/rundeck/tasks/main.yml34
-rw-r--r--roles/rundeck/templates/rundeck.list.j25
4 files changed, 47 insertions, 1 deletions
diff --git a/galaxy.yml b/galaxy.yml
index 92a5af0..530c607 100644
--- a/galaxy.yml
+++ b/galaxy.yml
@@ -1,6 +1,6 @@
namespace: kompetenzbolzen
name: stuff
-version: 0.17.2
+version: 0.18.2
readme: README.md
authors:
- Jonas Gunz <himself@jonasgunz.de>
diff --git a/roles/rundeck/main.yml b/roles/rundeck/main.yml
new file mode 100644
index 0000000..9ffb16c
--- /dev/null
+++ b/roles/rundeck/main.yml
@@ -0,0 +1,7 @@
+---
+- name: Enable Rundeck
+ systemd:
+ name: rundeckd
+ state: started
+ enabled: yes
+ become: yes
diff --git a/roles/rundeck/tasks/main.yml b/roles/rundeck/tasks/main.yml
new file mode 100644
index 0000000..ef86fbc
--- /dev/null
+++ b/roles/rundeck/tasks/main.yml
@@ -0,0 +1,34 @@
+---
+- name: Install GnuPG
+ apt:
+ name: gnupg2
+ become: yes
+
+- name: APT Key
+ apt_key:
+ url: 'https://packages.rundeck.com/pagerduty/rundeck/gpgkey'
+ state: present
+ become: yes
+
+- name: Install Rundeck APT Repository
+ template:
+ src: rundeck.list.j2
+ dest: /etc/apt/sources.list.d/rundeck.list
+ become: yes
+ register: install_repo
+
+- name: Update cache
+ apt:
+ update_cache: yes
+ become: yes
+ when: install_repo.changed
+
+- name: Install Packages
+ apt:
+ name:
+ - openjdk-11-jre-headless
+ - rundeck
+ become: yes
+ notify: Enable Rundeck
+
+
diff --git a/roles/rundeck/templates/rundeck.list.j2 b/roles/rundeck/templates/rundeck.list.j2
new file mode 100644
index 0000000..cde8e91
--- /dev/null
+++ b/roles/rundeck/templates/rundeck.list.j2
@@ -0,0 +1,5 @@
+# vi: ft=debsources
+# This file is managed by Ansible. Do NOT change.
+
+deb https://packages.rundeck.com/pagerduty/rundeck/any/ any main
+deb-src https://packages.rundeck.com/pagerduty/rundeck/any/ any main