blob: bd5c5b6f2eb632b2a700d6117d8d30f2d3ef50c3 (
plain)
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
|
---
- name: install base rpms
yum:
pkg: "{{ item }}"
state: installed
with_items:
- screen
- htop
- iftop
- iotop
- strace
- vim-enhanced
- tcpdump
- chrony
- yum-cron
- service:
name: "{{ item }}"
state: started
enabled: yes
with_items:
- yum-cron
- chronyd
- copy: dest=/etc/cloud/cloud.cfg.d/06_preserve_hostname.cfg src=06_preserve_hostname.cfg
- name: install firewalld on centos7
yum: pkg=firewalld state=installed
when: ansible_distribution == 'Fedora' or ansible_distribution_major_version == '7'
- service: name=firewalld state=started enabled=yes
when: ansible_distribution == 'Fedora' or ansible_distribution_major_version == '7'
|