Shashikant shah

Thursday, 29 October 2020

Ansible terms details part-11

 

1.Ad-Hoc :- Ansible ad-hoc commands are the commands that we can directly run from the terminal on one or more managed clients.

2.playbboks:- Ansible playbook is a file that contains a set of instructions or configurations that needs to be applied on a specific server or a group of servers. It is written in YAML.

3.Role:- Roles provide a framework for fully independent or interdependent collections of files, tasks, templates, variables, and modules.

4.tags :- Ansible tags are another great feature which can help you execute respective tasks from the playbook.

5.apt :-  Ansible Apt is one of the modules of Ansible that is used to manage packages on Debian or Ubuntu-based OS. package installing.

6.facts :- Ansible facts are the information of remote hosts which is gathered by the Ansible controller. This information is stored in predefined variables on the controller node and the whole set of this information is prepared in JSON format.

7.anisble Tower :- Ansible Tower is an enterprise solution for Ansible by RedHat. It has a web console and REST API to operate Ansible across our team, organization, and enterprise.

8.ansible Galaxy :- Ansible Galaxy is a web-based online and open-source repository for sharing and finding Ansible content mostly roles and collections.

9.handlers :- based on notify do something specified. Triggers restart service.

10.Loop :- Ansible loop is used to repeat any task or a part of code multiple times in an Ansible-playbook.

11.Block / error handling :- getting error single task then skip error task and run other task.

12.Conditional :-

13.debug :- debug module with a verbosity parameter that transforms it from a print line.

14.synchronize :- this module use for copy and update ansible server to remote node.

15.template :- In Ansible, template module is used to copy data from controller nodes to remote hosts, this data is generated based on jinja2 templates.

16.lookup:-

17.group_vars :- missing 

18.yum :- for package install (latest, present, installed, absent, removed)

19.shell :- we have a shell module that is used to run commands on /bin/shell on target remote machines.

20.lineinfile :- We can insert a line in a file using the ‘lineinfile’ module.

21.service :- service start/stop (reloaded, restarted, running, started, stopped) 

22.user :- we create a user on remote machines.

23.ansible-doc :-  we will see how to get documentation for the Ansible module.

24.filters :- 

25.Register :- These are the variables in which the output of your task will be stored on the Ansible Control Server. In simple words, when you want to run a command on a remote computer and then store the output in a variable and use a piece of information. 

26.set Fact :- The variable assignment under set_fact is done by using key-pair values where the key is the variable name and value is the assignment to it.

27.hosts file :- Ansible environment, though the default location for hosts file is /etc/ansible/hosts.

28.dynamic inventory :- Dynamic Inventory, which fetches the list of nodes from infrastructure environment in real time based on some criteria.

29.local_action :- When delegate_to is used to delegate a task on the local machine either using hostname localhost.

30.sudo :-

31.Run_once :- run_once parameter is used with a task, which you want to run once on first host.

32.unarchave :-

33.firewalld :-

No comments:

Post a Comment