ajout instal_oracle_sw
This commit is contained in:
42
install-oracle-sw/tasks/users_configuration.yml
Normal file
42
install-oracle-sw/tasks/users_configuration.yml
Normal file
@@ -0,0 +1,42 @@
|
||||
---
|
||||
# ---------------------------------------------------
|
||||
# configuration Linux : Utilisateurs et groupes
|
||||
# ---------------------------------------------------
|
||||
|
||||
- name: Création des groupes
|
||||
group: name={{ item.group }} gid={{ item.gid }} state=present
|
||||
with_items: "{{ oracle_groups }}"
|
||||
tags: group
|
||||
|
||||
- name: Création du compte Oracle
|
||||
user:
|
||||
name={{ item.username }} group={{ item.primgroup }}
|
||||
groups={{ item.othergroups }} uid={{ item.uid }}
|
||||
generate_ssh_key=yes append=yes state=present password={{ item.passwd }}
|
||||
with_items: "{{ oracle_users }}"
|
||||
ignore_errors: true
|
||||
tags: user
|
||||
|
||||
- name: Création du compte grid
|
||||
user:
|
||||
name={{ item.username }} group={{ item.primgroup }}
|
||||
groups={{ item.othergroups }} uid={{ item.uid }}
|
||||
generate_ssh_key=yes append=yes state=present password={{ item.passwd }}
|
||||
with_items: "{{ grid_users }}"
|
||||
when: role_separation
|
||||
ignore_errors: true
|
||||
tags: user
|
||||
|
||||
# ---------------------------------------------------
|
||||
# configuration Linux : config oracle pour logrotate
|
||||
# ---------------------------------------------------
|
||||
- name: Gestion des logs Oracle - copie du fichier de configuration pour logrotate
|
||||
template: src=logrotate_oracle.j2 dest=/etc/logrotate.d/oracle mode=644 owner=root group=root
|
||||
tags: logrotate
|
||||
|
||||
# ---------------------------------------------------
|
||||
# copy du fichier oracledb dans /etc/init.d pour redémmarage auto
|
||||
# ---------------------------------------------------
|
||||
- name: Copy du fichier oracledb dans /etc/init.d pour redémmarage auto
|
||||
template: src=oracledb_initd.j2 dest=/etc/init.d/oracledb mode=755 owner=root group=root
|
||||
tags: init.d
|
||||
Reference in New Issue
Block a user