0

In Puppet, a node agent will check in with the Master every so often and send facts about the node. The Master will then check these facts are what it should be and if they have become misaligned will revert them to the desired state.

For instance, say I want to be sure that no additional users have been created, any unwarranted users will be deleted.

How can Ansible achieve this given there is no agent? How can it gather facts remotely?

techraf
  • 64,883
  • 27
  • 193
  • 198
Zuriar
  • 11,096
  • 20
  • 57
  • 92

1 Answers1

0

ansible gather facts (and do all actions) by connecting in SSH.

But it also supports a "pull mode" when the nodes check a central configuration: https://docs.ansible.com/playbooks_intro.html#ansible-pull

So I can imagine that you can achieve this by running ansible-pull with a cron.

magnetik
  • 4,351
  • 41
  • 58