From 79f6da2af41f7c7eb9bd9828259cae8f9206490a Mon Sep 17 00:00:00 2001 From: Yacine31 Date: Sun, 20 Jun 2021 16:30:54 +0200 Subject: [PATCH] Update users_configuration.yml --- configure-host-oel7/tasks/users_configuration.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/configure-host-oel7/tasks/users_configuration.yml b/configure-host-oel7/tasks/users_configuration.yml index c64d719..3ce65a0 100755 --- a/configure-host-oel7/tasks/users_configuration.yml +++ b/configure-host-oel7/tasks/users_configuration.yml @@ -5,11 +5,13 @@ - name: Creation des groupes group: name={{ item.group }} gid={{ item.gid }} state=present + ignore_errors: true with_items: - { group: asmdba, gid: 1004 } - { group: asmoper, gid: 1005 } - { group: asmadmin, gid: 1003 } - { group: oinstall, gid: 1000} + - { group: orainstall, gid: 1009} - { group: dba, gid: 1001 } - { group: backupdba, gid: 1006 } - { group: oper, gid: 1002 } @@ -21,8 +23,8 @@ user: name={{ item.username }} group={{ item.primgroup }} groups={{ item.othergroups }} uid={{ item.uid }} generate_ssh_key=yes append=yes state=present password={{ item.passwd }} ignore_errors: true with_items: - - { username: oracle, uid: 1001, primgroup: oinstall, othergroups: "dba,asmdba,backupdba,dgdba,kmdba,oper", passwd: "$6$0xHoAXXF$K75HKb64Hcb/CEcr3YEj2LGERi/U2moJgsCK.ztGxLsKoaXc4UBiNZPL0hlxB5ng6GL.gyipfQOOXplzcdgvD0" } - - { username: grid, uid: 1000, primgroup: oinstall, othergroups: "asmadmin,asmdba,asmoper,dba", passwd: "$6$0xHoAXXF$K75HKb64Hcb/CEcr3YEj2LGERi/U2moJgsCK.ztGxLsKoaXc4UBiNZPL0hlxB5ng6GL.gyipfQOOXplzcdgvD0" } + - { username: oracle, uid: 1001, primgroup: orainstall, othergroups: "dba,asmdba,backupdba,dgdba,kmdba,oper", passwd: "$6$0xHoAXXF$K75HKb64Hcb/CEcr3YEj2LGERi/U2moJgsCK.ztGxLsKoaXc4UBiNZPL0hlxB5ng6GL.gyipfQOOXplzcdgvD0" } + - { username: grid, uid: 1000, primgroup: orainstall, othergroups: "asmadmin,asmdba,asmoper,dba", passwd: "$6$0xHoAXXF$K75HKb64Hcb/CEcr3YEj2LGERi/U2moJgsCK.ztGxLsKoaXc4UBiNZPL0hlxB5ng6GL.gyipfQOOXplzcdgvD0" } tags: create_users - name: Ajout du compte oracle et grid au sudoers