Drop the tag, it's in the playbook and create /etc/ccsdb
This commit is contained in:
parent
b3621d5b63
commit
6eb8e901e2
1 changed files with 5 additions and 20 deletions
|
@ -7,8 +7,6 @@
|
||||||
- python-psycopg2
|
- python-psycopg2
|
||||||
- libsemanage-python
|
- libsemanage-python
|
||||||
when: ansible_distribution_major_version|int < 22
|
when: ansible_distribution_major_version|int < 22
|
||||||
tags:
|
|
||||||
- ccsdb
|
|
||||||
|
|
||||||
- name: install ccsdb and its dependencies
|
- name: install ccsdb and its dependencies
|
||||||
dnf: name={{ item }} state=present enablerepo={{ extra_enablerepos }}
|
dnf: name={{ item }} state=present enablerepo={{ extra_enablerepos }}
|
||||||
|
@ -18,16 +16,12 @@
|
||||||
- python-psycopg2
|
- python-psycopg2
|
||||||
- libsemanage-python
|
- libsemanage-python
|
||||||
when: ansible_distribution_major_version|int > 21 and ansible_cmdline.ostree is not defined
|
when: ansible_distribution_major_version|int > 21 and ansible_cmdline.ostree is not defined
|
||||||
tags:
|
|
||||||
- ccsdb
|
|
||||||
|
|
||||||
- name: ensure database is created
|
- name: ensure database is created
|
||||||
delegate_to: "{{ ccsdb_db_host_machine }}"
|
delegate_to: "{{ ccsdb_db_host_machine }}"
|
||||||
become_user: postgres
|
become_user: postgres
|
||||||
become: true
|
become: true
|
||||||
postgresql_db: db={{ ccsdb_db_name }}
|
postgresql_db: db={{ ccsdb_db_name }}
|
||||||
tags:
|
|
||||||
- ccsdb
|
|
||||||
|
|
||||||
- name: ensure ccsdb db user has access to database
|
- name: ensure ccsdb db user has access to database
|
||||||
delegate_to: "{{ ccsdb_db_host_machine }}"
|
delegate_to: "{{ ccsdb_db_host_machine }}"
|
||||||
|
@ -37,46 +31,37 @@
|
||||||
user={{ ccsdb_db_user }}
|
user={{ ccsdb_db_user }}
|
||||||
password={{ ccsdb_db_password }}
|
password={{ ccsdb_db_password }}
|
||||||
role_attr_flags=NOSUPERUSER
|
role_attr_flags=NOSUPERUSER
|
||||||
tags:
|
|
||||||
- ccsdb
|
|
||||||
|
|
||||||
- name: ensure selinux lets httpd talk to postgres
|
- name: ensure selinux lets httpd talk to postgres
|
||||||
seboolean: name=httpd_can_network_connect_db persistent=yes state=yes
|
seboolean: name=httpd_can_network_connect_db persistent=yes state=yes
|
||||||
tags:
|
|
||||||
- ccsdb
|
- name: create the /etc/ccsdb folder
|
||||||
|
file: state=directory
|
||||||
|
path=/etc/ccsdb
|
||||||
|
owner=root group=root mode=0755
|
||||||
|
|
||||||
- name: generate ccsdb config
|
- name: generate ccsdb config
|
||||||
template: src=ccsdb.cfg dest=/etc/ccsdb/ccsdb.cfg
|
template: src=ccsdb.cfg dest=/etc/ccsdb/ccsdb.cfg
|
||||||
owner=root group=root mode=0644
|
owner=root group=root mode=0644
|
||||||
notify:
|
notify:
|
||||||
- reload httpd
|
- reload httpd
|
||||||
tags:
|
|
||||||
- ccsdb
|
|
||||||
|
|
||||||
- name: generate ccsdb apache config
|
- name: generate ccsdb apache config
|
||||||
template: src=ccsdb.conf dest=/etc/httpd/conf.d/ccsdb.conf
|
template: src=ccsdb.conf dest=/etc/httpd/conf.d/ccsdb.conf
|
||||||
owner=root group=root mode=0644
|
owner=root group=root mode=0644
|
||||||
notify:
|
notify:
|
||||||
- reload httpd
|
- reload httpd
|
||||||
tags:
|
|
||||||
- ccsdb
|
|
||||||
|
|
||||||
- name: create the /usr/share/ccsdb folder
|
- name: create the /usr/share/ccsdb folder
|
||||||
file: state=directory
|
file: state=directory
|
||||||
path=/usr/share/ccsdb
|
path=/usr/share/ccsdb
|
||||||
owner=root group=root mode=0755
|
owner=root group=root mode=0755
|
||||||
tags:
|
|
||||||
- ccsdb
|
|
||||||
|
|
||||||
- name: install the wsgi file
|
- name: install the wsgi file
|
||||||
template: src=ccsdb.wsgi dest=/usr/share/ccsdb/ccsdb.wsgi
|
template: src=ccsdb.wsgi dest=/usr/share/ccsdb/ccsdb.wsgi
|
||||||
owner=root group=root mode=0644
|
owner=root group=root mode=0644
|
||||||
notify:
|
notify:
|
||||||
- reload httpd
|
- reload httpd
|
||||||
tags:
|
|
||||||
- ccsdb
|
|
||||||
|
|
||||||
- name: initialize execdb database
|
- name: initialize execdb database
|
||||||
shell: ccsdb-cli init_db
|
shell: ccsdb-cli init_db
|
||||||
tags:
|
|
||||||
- ccsdb
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue