Saturday, 13 July 2019

Ansible Playbook to set FQDN



- name: Set hostname fact
  set_fact:
    ansible_fqdn: "{{ host_name }}"

Ansible playbook to set hostname




- name: Set hostname
  hostname:
    name: "{{ host_name }}"

Ansible Playbook to Install Bind


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

Ansible Playbook to open firewall port (DNS) (firewalld)



- name: Open firewall port
  firewalld:
    service: dns
    permanent: true
    state: enabled
    immediate: yes

Ansible playbook to Install DFS on Windows server




- name: Install DFS
    win_feature:
     name: FS-DFS-Namespace
     include_management_tools: yes
     include_sub_features: yes
     state: present
    register: result

Ansible playbook to Add AD user to OU group





    win_domain_user:
     name: user4
     firstname: mouni
     surname: motam
     company: Netenrich
     password: mouni123
     state: present
     groups:
      - Operatonal Team

Ansible playbook to Add group and specify the AD domain services to use for the create win_domain_group (OU )





     name: Operatonal Team
     domain_username: user123
     domain_password: user123
     domain_server: team1.local
     scope: domainlocal

Git

1 git add ↳ It lets you add changes from the working directory into the staging area 2 git commit ↳ It lets you save a snapshot of currently...