diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2023-02-24 14:48:55 +0100 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2023-02-24 14:48:55 +0100 |
commit | 6675ec24b0fcd990c631f82932a685b66aaffd83 (patch) | |
tree | 6f08f5078500aa8b7c0c791750c34d7702e95016 /roles | |
parent | d45e17a0b72c6cc160444d0a666cc95b803b6ffc (diff) | |
download | ansible_collection-6675ec24b0fcd990c631f82932a685b66aaffd83.tar.gz |
rundeck
Diffstat (limited to 'roles')
-rw-r--r-- | roles/rundeck/main.yml | 7 | ||||
-rw-r--r-- | roles/rundeck/tasks/main.yml | 33 | ||||
-rw-r--r-- | roles/rundeck/templates/rundeck.list.j2 | 5 |
3 files changed, 45 insertions, 0 deletions
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..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 + + 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 |