packages.yml 2 KB
Newer Older
U-PALLAS\krasinski's avatar
U-PALLAS\krasinski committed
1
2
---

3
- name: Install ancillary packages for CentOS 7
U-PALLAS\krasinski's avatar
U-PALLAS\krasinski committed
4
5
  yum:
    conf_file: '/etc/yum.conf'
6
    name:
U-PALLAS\krasinski's avatar
U-PALLAS\krasinski committed
7
8
      - libselinux-python
      - python-pip
viscapi's avatar
viscapi committed
9
10
  when: (ansible_facts['distribution'] == "CentOS" and ansible_facts['distribution_major_version'] == "7")

11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
- name: Install PostgreSQL {{ external_postgresql_version }} packages for CentOS 7
  yum:
    conf_file: '/etc/yum.conf'
    name: 
      - 'postgresql{{ external_postgresql_version | replace(".", "") }}'
      - 'postgresql{{ external_postgresql_version | replace(".", "") }}-server'
    state: present
  when: (ansible_facts['distribution'] == "CentOS" and ansible_facts['distribution_major_version'] == "7" and not use_distribution_postgresql)

- name: Install PostgreSQL 9.2 packages for CentOS 7
  yum:
    conf_file: '/etc/yum.conf'
    name:
      - postgresql
      - postgresql-server
    state: present
  when: (ansible_facts['distribution'] == "CentOS" and ansible_facts['distribution_major_version'] == "7" and use_distribution_postgresql)

- name: Install ancillary packages for CentOS 8
viscapi's avatar
viscapi committed
30
31
32
33
34
  dnf:
    conf_file: '/etc/dnf/dnf.conf'
    name:
      - python3-libselinux
      - python3-pip
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
    state: present
  when: (ansible_facts['distribution'] == "CentOS" and ansible_facts['distribution_major_version'] == "8")

- name: Install PostgreSQL {{ external_postgresql_version }} packages for CentOS 8
  dnf:
    conf_file: '/etc/dnf/dnf.conf'
    name:
      - 'postgresql{{ external_postgresql_version | replace(".", "") }}'
      - 'postgresql{{ external_postgresql_version | replace(".", "") }}-server'
    state: present
  when: (ansible_facts['distribution'] == "CentOS" and ansible_facts['distribution_major_version'] == "8" and not use_distribution_postgresql)

- name: Install PostgreSQL 10 packages for CentOS 8
  dnf:
    conf_file: '/etc/dnf/dnf.conf'
    name:
viscapi's avatar
viscapi committed
51
52
53
      - postgresql
      - postgresql-server
    state: present
54
  when: (ansible_facts['distribution'] == "CentOS" and ansible_facts['distribution_major_version'] == "8" and use_distribution_postgresql)
U-PALLAS\krasinski's avatar
U-PALLAS\krasinski committed
55
56

...