summaryrefslogtreecommitdiffstats
path: root/roles/base_os/tasks/main.yaml
blob: b18f5c40d88a957454f3826d2bbfeb9143861bcb (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
33
34
35
36
---
# basic role, configures irbrc, vimrc

- name: Ensure irbrc is installed for user root
  copy:
    src: irbrc
    dest: /root/.irbrc

- name: Ensure vimrc is installed for user root
  copy:
    src: vimrc
    dest: /root/.vimrc

- name: Add KUBECONFIG to .bash_profile for user root
  lineinfile:
    dest: /root/.bash_profile
    regexp: "KUBECONFIG="
    line: "export KUBECONFIG={{ openshift_master_credentials_dir }}.kubeconfig"
    state: present
    insertafter: EOF

- name: Install firewalld
  yum:
    pkg: firewalld
    state: installed

- name: start and enable firewalld service
  service:
    name: firewalld
    state: started
    enabled: yes
  register: result

- name: need to pause here, otherwise the firewalld service starting can sometimes cause ssh to fail
  pause: seconds=10
  when: result | changed