summaryrefslogtreecommitdiffstats
path: root/roles/base/tasks/main.yml
blob: 7fb59ac5da84efe66fdaddf997b1d627693e899c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
---
- name: install base rpms
  yum: pkg={{ item }} state=installed
  with_items:
  - screen
  - htop
  - iftop
  - iotop
  - strace
  - vim-enhanced
  - tcpdump
  - chrony

- service: name=chronyd state=running enabled=yes

- 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'