On 24.01.17 03:30 Kiran Kumar wrote:
> x oracle
> y db
> x prod
I assume the x should be the hostname, and the second column should be
the line in /etc/hosts.allow?
> how can i do it for huge number of nodes ?
You put more than one host in the "- hosts:" line? ;-)
Seriously, put the x=oracle
hello all
i need to update /etc/cron.allow on many servers
below is eg
x oracle
y db
x prod
...
..
===
it works for a single node
- name: Add a word in remote file
hosts: temp
remote_user: xx
sudo: yes
tasks:
- name: edit cron.allow
lineinfile:
destfile: