diff options
Diffstat (limited to 'roles/rundeck/tasks/main.yml')
-rw-r--r-- | roles/rundeck/tasks/main.yml | 34 |
1 files changed, 34 insertions, 0 deletions
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 + + |