Change value in config file (manifest) using Ansible

Viewed 23

I have this part of code. I need to change some value and lines using ansible and modules lineinfile or replace.

Example of code

How I can insert new line - name: ENI_CONFIG_LABEL_DEF before line AWS_VPC_K8S_CNI_CUSTOM_NETWORK_CFGwith value value: failure-domain.beta.kubernetes.io/zone and then change value from "false" to "true" en line AWS_VPC_K8S_CNI_CUSTOM_NETWORK_CFG?

0 Answers
Related