yum/dnf switches.
This commit is contained in:
parent
73dfd704cd
commit
f26ff76258
2 changed files with 20 additions and 2 deletions
|
@ -1,13 +1,23 @@
|
||||||
---
|
---
|
||||||
- include: psql_setup.yml
|
- include: psql_setup.yml
|
||||||
|
|
||||||
- name: install needed packages
|
- name: install needed packages (yum)
|
||||||
|
yum: pkg={{ item }} state=present
|
||||||
|
with_items:
|
||||||
|
- waiverdb
|
||||||
|
- gunicorn
|
||||||
|
notify:
|
||||||
|
- restart waiverdb
|
||||||
|
when: ansible_distribution_major_version|int < 22
|
||||||
|
|
||||||
|
- name: install needed packages (dnf)
|
||||||
dnf: pkg={{ item }} state=present
|
dnf: pkg={{ item }} state=present
|
||||||
with_items:
|
with_items:
|
||||||
- waiverdb
|
- waiverdb
|
||||||
- gunicorn
|
- gunicorn
|
||||||
notify:
|
notify:
|
||||||
- restart waiverdb
|
- restart waiverdb
|
||||||
|
when: ansible_distribution_major_version|int > 21
|
||||||
|
|
||||||
- name: start waiverdb on boot
|
- name: start waiverdb on boot
|
||||||
systemd:
|
systemd:
|
||||||
|
|
|
@ -1,8 +1,16 @@
|
||||||
- name: install postresql
|
- name: install postresql (yum)
|
||||||
yum: state=present pkg={{ item }}
|
yum: state=present pkg={{ item }}
|
||||||
with_items:
|
with_items:
|
||||||
- "postgresql-server"
|
- "postgresql-server"
|
||||||
- "postgresql-contrib"
|
- "postgresql-contrib"
|
||||||
|
when: ansible_distribution_major_version|int < 22
|
||||||
|
|
||||||
|
- name: install postresql (dnf)
|
||||||
|
dnf: state=present pkg={{ item }}
|
||||||
|
with_items:
|
||||||
|
- "postgresql-server"
|
||||||
|
- "postgresql-contrib"
|
||||||
|
when: ansible_distribution_major_version|int > 21
|
||||||
|
|
||||||
- name: See if postgreSQL is installed
|
- name: See if postgreSQL is installed
|
||||||
stat: path=/var/lib/pgsql/initdb.log
|
stat: path=/var/lib/pgsql/initdb.log
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue