-
Notifications
You must be signed in to change notification settings - Fork 0
/
playbook.yml
44 lines (37 loc) · 915 Bytes
/
playbook.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
---
- name: Update CentOS and Install Application
hosts: dev
become: yes
gather_facts: yes
tasks:
- name: Install the EPEL-release package
yum:
name: epel-release
state: present
- name: Update the package repository cache
yum:
update_cache: yes
- name: Upgrade all packages
yum:
name: '*'
state: latest
- name: Check if git is installed
command: "rpm -q git-core"
register: git_check
ignore_errors: true
- name: Install git
yum:
name: git
state: present
when: git_check.rc != 0
- name: Check if Vim is installed
command: "rpm -q vim-enhanced"
register: vim_check
ignore_errors: true
- name: Configure Vim using role
import_role:
name: vim
when: vim_check.rc != 0
- name: Install DPDK
import_role:
name: dpdk