aboutsummaryrefslogtreecommitdiff
path: root/roles/rundeck/tasks/main.yml
blob: ef86fbc230bcb8a91a82b0885ecaea9d73243748 (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
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