Skip to content

Commit 36112bc

Browse files
committed
added ansible test
1 parent 6807416 commit 36112bc

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

ansible_test/playbook.yml

+34
Original file line numberDiff line numberDiff line change
@@ -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+
groups: ['hpcnow']
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+
XXXXXXX
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+
XXXXXXX
34+

0 commit comments

Comments
 (0)