aboutsummaryrefslogtreecommitdiff
path: root/roles/rundeck/tasks
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2023-02-24 14:52:41 +0100
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2023-02-24 14:52:41 +0100
commitd292508808153b552da60c474decc2c0772377d5 (patch)
treeaf4ee57b01132a9b6e27ec2e9a550b0cea21e341 /roles/rundeck/tasks
parent5d9ad9fcbdb1868a73642889abd5d47d8ec4a135 (diff)
parent6675ec24b0fcd990c631f82932a685b66aaffd83 (diff)
downloadansible_collection-d292508808153b552da60c474decc2c0772377d5.tar.gz
Merge branch 'dev' into lauch
Diffstat (limited to 'roles/rundeck/tasks')
-rw-r--r--roles/rundeck/tasks/main.yml33
1 files changed, 33 insertions, 0 deletions
diff --git a/roles/rundeck/tasks/main.yml b/roles/rundeck/tasks/main.yml
new file mode 100644
index 0000000..b9f9ca5
--- /dev/null
+++ b/roles/rundeck/tasks/main.yml
@@ -0,0 +1,33 @@
+---
+- 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
+ notify: Enable Rundeck
+
+