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 }}" name: "{{ database_user }}"
state: present state: present
password: "{{ database_password }}" password: "{{ database_password }}"
...@@ -8,13 +9,15 @@ ...@@ -8,13 +9,15 @@
login_unix_socket: /tmp login_unix_socket: /tmp
# login_unix_socket mandatory (else looks it up in /var/run/postgresql) # login_unix_socket mandatory (else looks it up in /var/run/postgresql)
- postgresql_db: - name: Create PostgreSQL iRODS database
postgresql_db:
name: "{{ database_name }}" name: "{{ database_name }}"
state: present state: present
login_user: postgres login_user: postgres
login_unix_socket: /tmp login_unix_socket: /tmp
- postgresql_privs: - name: Set database privileges
postgresql_privs:
database: "{{ database_name }}" database: "{{ database_name }}"
state: present state: present
privs: ALL privs: ALL
......
--- ---
- file: - name: Create database directory
file:
state: directory state: directory
path: "{{path_to_icat}}" path: "{{path_to_icat}}"
owner: postgres owner: postgres
......
--- ---
- pip: - name: Install Python modules
pip:
name: name:
- pip - pip
- psycopg2-binary - psycopg2-binary
......
--- ---
- name: Install PostgreSQL 9.6 packages for CentOS 7 - name: Install PostgreSQL repository for CentOS 7
yum: yum:
conf_file: '/etc/yum.conf' conf_file: '/etc/yum.conf'
name: https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm 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 policy: targeted
state: "{{ selinux_mode }}" state: "{{ selinux_mode }}"
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
group: irods group: irods
state: present state: present
password: "{{irods_unix_password}}" 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 - name: Create postgres user and group on CentOS 7
block: 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