{"id":1651,"date":"2021-09-10T21:02:05","date_gmt":"2021-09-10T20:02:05","guid":{"rendered":"http:\/\/ve2cuy.com\/420-3c3\/?page_id=1651"},"modified":"2024-03-18T16:43:36","modified_gmt":"2024-03-18T15:43:36","slug":"ansible-introduction","status":"publish","type":"page","link":"https:\/\/ve2cuy.com\/420-3c3\/?page_id=1651","title":{"rendered":"Ansible &#8211; Introduction"},"content":{"rendered":"\n<p>Ansible est un outils d\u2019orchestration pour la configuration, la modification, la gestion et la mise \u00e0 jour de serveurs distants.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"has-vivid-red-color has-text-color wp-block-heading\">Document en cours de r\u00e9daction<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code># Note: srv02 est d\u00e9fini dans ~\/.ssh\/config avec une cl\u00e9 priv\u00e9e\n# \"srv02,\" all = tous les noeuds de la liste, -m = module \u00e0 ex\u00e9cuter \nansible -i \"srv02,\" all -m ping\n\n# Ex\u00e9cuter une commande sur le noeud\nansible -i \"srv02,\" all -m command -a ps\n# ou bien\nansible -i \"srv02,\" all -m shell -a \u00a8 ps | grep chaine | \u2026\u00a8\n\n\n# Installer python avec le module raw\nansible -i \u00a8node,\u00a8 all -u username -b -K -m raw -a \u00a8apt install -y python3\u00a8\n\n# ansible -i \"srv02,\" all -m apt -a \u00a8name=nginx state=latest\u00a8<\/code><\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ansible est un outils d\u2019orchestration pour la configuration, la modification, la gestion et la mise \u00e0 jour de serveurs distants. Document en cours de r\u00e9daction<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"_links":{"self":[{"href":"https:\/\/ve2cuy.com\/420-3c3\/index.php?rest_route=\/wp\/v2\/pages\/1651"}],"collection":[{"href":"https:\/\/ve2cuy.com\/420-3c3\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/ve2cuy.com\/420-3c3\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/ve2cuy.com\/420-3c3\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ve2cuy.com\/420-3c3\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1651"}],"version-history":[{"count":9,"href":"https:\/\/ve2cuy.com\/420-3c3\/index.php?rest_route=\/wp\/v2\/pages\/1651\/revisions"}],"predecessor-version":[{"id":1662,"href":"https:\/\/ve2cuy.com\/420-3c3\/index.php?rest_route=\/wp\/v2\/pages\/1651\/revisions\/1662"}],"wp:attachment":[{"href":"https:\/\/ve2cuy.com\/420-3c3\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1651"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}