We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6807416 commit 36112bcCopy full SHA for 36112bc
ansible_test/playbook.yml
@@ -0,0 +1,34 @@
1
+---
2
+- hosts: localhost
3
+ connection: local
4
+
5
+ vars:
6
+ - users_details:
7
+ - name: 'user01'
8
+ uid: 1001
9
+ groups: ['hpcnow']
10
+ - name: 'user02'
11
+ uid: 1002
12
13
14
+ tasks:
15
16
+ - name: Install EPEL repository
17
+ yum: name=epel-release state=present
18
+ when: ansible_os_family == "RedHat"
19
20
+ - name: Install packages | RedHat
21
+ XXXXXXX
22
23
+ - name: Install devel tools | RedHat
24
25
26
+ - name: Ensure group "hpcnow" exists with correct gid
27
+ ansible.builtin.group:
28
+ name: hpcnow
29
+ state: present
30
+ gid: 1001
31
32
+ - name: Create users
33
34
0 commit comments