From 5f99e25d15c43e318c5126e18d5b46a5965b5eaa Mon Sep 17 00:00:00 2001 From: Roland Thomas Date: Tue, 20 Jun 2023 12:35:26 -0400 Subject: [PATCH] Remove temporary ansible.md --- content/posts/ansible.md | 45 ---------------------------------------- 1 file changed, 45 deletions(-) delete mode 100644 content/posts/ansible.md diff --git a/content/posts/ansible.md b/content/posts/ansible.md deleted file mode 100644 index 5c0b0cd..0000000 --- a/content/posts/ansible.md +++ /dev/null @@ -1,45 +0,0 @@ ---- -author: "Roland Thomas Jr" -title: "Ansible Rocks!" -date: "2023-06-08" -description: "" -tags: ["ansible"] -ShowToc: false -ShowBreadCrumbs: true ---- -What is Ansible? - -Ansible is an open-source configuration management tool that uses a declarative language to automate infrastructure configuration. It can be used for tasks like installing software, configuring services, and managing users and permissions. Ansible is known for its ease of use and has a large community of users who contribute to its development. - -```yml ---- -- name: Update web servers - hosts: webservers - remote_user: root - - tasks: - - name: Ensure apache is at the latest version - ansible.builtin.yum: - name: httpd - state: latest - - name: Write the apache config file - ansible.builtin.template: - src: /srv/httpd.j2 - dest: /etc/httpd.conf - -- name: Update db servers - hosts: databases - remote_user: root - - tasks: - - name: Ensure postgresql is at the latest version - ansible.builtin.yum: - name: postgresql - state: latest - - name: Ensure that postgresql is started - ansible.builtin.service: - name: postgresql - state: started -``` - ---- \ No newline at end of file