aboutsummaryrefslogtreecommitdiff
path: root/roles/rundeck/tasks/main.yml
blob: b9f9ca52be92fc7113259f57a58594a596836468 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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