{"id":21160,"date":"2021-04-25T18:03:15","date_gmt":"2021-04-25T18:03:15","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=21160"},"modified":"2021-10-28T06:38:25","modified_gmt":"2021-10-28T06:38:25","slug":"ansible-tools-and-commands","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/ansible-tools-and-commands\/","title":{"rendered":"Ansible Tools and Commands"},"content":{"rendered":"\n<p>Before going further deep into Ansible, it is time to get familiar with some important Ansible commands:<\/p>\n\n\n\n<p>ansible: It is an extra \u2013 simple root \/ framework \/API for doing \u201c remote Execution\u201c. This is the ad\u2013hoc command utility that allows for a \u201csingle task\u201d run.<\/p>\n\n\n\n<p>ansible-doc: It displays information on modules installed in Ansible Libraries . It displays a listing of modules and their short description, provides a printout of their documentation strings , and creates a short \u201c snippet \u201c which can be pasted into a Playbook.<\/p>\n\n\n\n<p>ansible\u2013playbook: It is a toot used to execute sequential set of instruction written in a YAML structured file called \u201cplaybook\u201d.<\/p>\n\n\n\n<p>ansible\u2013vault: It can encrypt any structured data file used By Ansible.<\/p>\n\n\n\n<p>ansible\u2013galaxy: it is a Shared repository for Ansible roles. The Ansible-galaxy Command can manage these roles or create a skeleton framework for roles you would like to upload to Galaxy.<\/p>\n\n\n\n<p>ansible\u2013pull: It sets up a remote copy of Ansible on each managed node; each set runs through cron and updates Playbook source Through a source repository. This inverts the default push architecture of Ansible into a pull architecture.<\/p>\n\n\n\n<p>ansible\u2013console: It is an REPL that allows for running ad\u2013hoc tasks against a chosen inventory (based on dominis ansible\u2013shell).<\/p>\n\n\n<div class=\"epyt-gallery\" data-currpage=\"1\" id=\"epyt_gallery_58069\"><iframe loading=\"lazy\"  id=\"_ytid_44059\"  width=\"760\" height=\"427\"  data-origwidth=\"760\" data-origheight=\"427\" src=\"https:\/\/www.youtube.com\/embed\/?enablejsapi=1&#038;autoplay=0&#038;cc_load_policy=0&#038;cc_lang_pref=&#038;iv_load_policy=1&#038;loop=0&#038;rel=1&#038;fs=1&#038;playsinline=0&#038;autohide=2&#038;theme=dark&#038;color=red&#038;controls=1&#038;disablekb=0&#038;\" class=\"__youtube_prefs__  no-lazyload\" title=\"YouTube player\"  data-epytgalleryid=\"epyt_gallery_58069\"  allow=\"fullscreen; accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen data-no-lazy=\"1\" data-skipgform_ajax_framebjll=\"\"><\/iframe><div class=\"epyt-gallery-list\"><div>Sorry, there was a YouTube error.<\/div><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>Before going further deep into Ansible, it is time to get familiar with some important Ansible commands: ansible: It is an extra \u2013 simple root \/ framework \/API for doing&#8230; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[2],"tags":[],"class_list":["post-21160","post","type-post","status-publish","format-standard","hentry","category-uncategorised"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/21160","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=21160"}],"version-history":[{"count":3,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/21160\/revisions"}],"predecessor-version":[{"id":24429,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/21160\/revisions\/24429"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=21160"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=21160"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=21160"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}