Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---
- - hosts: all
- become: true
- tasks:
- - name: Configure firewalld
- systemd: name=firewalld state=started enabled=yes
- - name: Enable EPEL YUM repository
- yum_repository:
- name: epel
- description: EPEL YUM repository
- baseurl: https://download.fedoraproject.org/pub/epel/7/x86_64/
- - name: Configure Ansible "Server"
- yum: name=ansible state=present update_cache=yes
- - name: Configure NFS Server
- yum:
- name: "{{ item }}"
- state: present
- update_cache: yes
- with_items:
- # For nfs Server/Client support
- - nfs-utils
- # For Automounting NFS files
- - autofs
- - mountd
- - rpcbind
- firewalld:
- service: nfs
- permanenet: true
- state: enabled
- systemd:
- name: "{{ item }}"
- state: started
- enabled: yes
- with_items:
- - nfs
- - autofs
- - rpcbind
- - mountd
- - name: Configure Check_MK Monitoring
- # Monitoring using Check_MK
- yum:
- name: "{{ item }}"
- state: present
- update_cache: yes
- with_items:
- - check-mk-agent
- - xinetd
- systemd: name=inetd state=started enabled=yes
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement