Menu

Ansible Replace Module
📰

Ansible Replace Module

DEV Community: ansible·Janak Shrestha·11 days ago
#hvWsci4j
#devtoansible#devto#dev#replace#ansible
Long article (1877 words) — no AI summary yet.
Reading 0:00
15s threshold

There is some data on all app servers in Stratos DC . The Nautilus development team shared some requirement with the DevOps team to alter some of the data as per recent changes they made. The DevOps team is working to prepare an Ansible playbook to accomplish the same. Below you can find more details about the task.

Write a playbook.yml under /home/thor/ansible on jump host , an inventory is already present under /home/thor/ansible directory on Jump host itself. Perform below given tasks using this playbook:

We have a file /opt/finance/blog.txt on app server 1. Using Ansible replace module replace string xFusionCorp to Nautilus in that file.

We have a file /opt/finance/story.txt on app server 2. Using Ansible replace module replace the string Nautilus to KodeKloud in that file.

We have a file /opt/finance/media.txt on app server 3.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.