Commit 4f6edb20 authored by viscapi's avatar viscapi
Browse files

Added names to many actions

parent 74bdbe15
---
- postgresql_user:
- name: Create PostgreSQL iRODS user
postgresql_user:
name: "{{ database_user }}"
state: present
password: "{{ database_password }}"
......@@ -8,13 +9,15 @@
login_unix_socket: /tmp
# login_unix_socket mandatory (else looks it up in /var/run/postgresql)
- postgresql_db:
- name: Create PostgreSQL iRODS database
postgresql_db:
name: "{{ database_name }}"
state: present
login_user: postgres
login_unix_socket: /tmp
- postgresql_privs:
- name: Set database privileges
postgresql_privs:
database: "{{ database_name }}"
state: present
privs: ALL
......
---
- file:
- name: Create database directory
file:
state: directory
path: "{{path_to_icat}}"
owner: postgres
......
---
- pip:
- name: Install Python modules
pip:
name:
- pip
- psycopg2-binary
......
---
- name: Install PostgreSQL 9.6 packages for CentOS 7
- name: Install PostgreSQL repository for CentOS 7
yum:
conf_file: '/etc/yum.conf'
name: https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
......
---
- selinux:
- name: Set SELinux mode
selinux:
policy: targeted
state: "{{ selinux_mode }}"
......
......@@ -13,7 +13,7 @@
group: irods
state: present
password: "{{irods_unix_password}}"
#password: voir docs.ansible.com/ansible/latest/user_module.html
#password: see docs.ansible.com/ansible/latest/user_module.html
- name: Create postgres user and group on CentOS 7
block:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment