exam 12


  • 02
  • 03

Using an Ansible playbook install firewalld on node00 node, start its service as well. Name the playbook as firewall.yml and keep it under ~/playbooksand also white list node01 host's IP address 172.20.1.101 on node00




Use the following YAML file to create a playbook called firewall.yml as follows:-

---
- hosts: node00
  tasks:
   - yum: name=firewalld state=installed
   - service: name=firewalld state=started
   - firewalld:
      source: 172.20.1.101
      state: enabled
      zone: internal
      permanent: yes
      immediate: yes

Comments

Popular posts from this blog

exam 16

ansible 5

practical 3