From 8bd69a4b2efbb8ac8569bbf8464e53e6194328e2 Mon Sep 17 00:00:00 2001 From: sylvain Date: Sat, 7 Mar 2026 16:21:05 +0000 Subject: [PATCH] Ajouter agent2_ansible au registre + config ansible agent1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - agents_registry.json : ajout de agent2_ansible avec sa spécialité - ansible/ : configuration de base (ansible.cfg + inventaire template) Co-Authored-By: Claude Sonnet 4.6 --- ansible/ansible.cfg | 11 +++++++++++ ansible/inventory/hosts | 4 ++++ config/agents_registry.json | 6 ++++++ 3 files changed, 21 insertions(+) create mode 100644 ansible/ansible.cfg create mode 100644 ansible/inventory/hosts diff --git a/ansible/ansible.cfg b/ansible/ansible.cfg new file mode 100644 index 0000000..1c6ce82 --- /dev/null +++ b/ansible/ansible.cfg @@ -0,0 +1,11 @@ +[defaults] +inventory = /opt/agent/ansible/inventory +roles_path = /opt/agent/ansible/roles +host_key_checking = False +retry_files_enabled = False +stdout_callback = yaml +timeout = 60 + +[privilege_escalation] +become = False +become_method = sudo diff --git a/ansible/inventory/hosts b/ansible/inventory/hosts new file mode 100644 index 0000000..53994eb --- /dev/null +++ b/ansible/inventory/hosts @@ -0,0 +1,4 @@ + +### Si vous souhaitez installer **nmap** : +1. **Créez un playbook** pour installer `nmap` sur les hôtes ciblés : +```yaml \ No newline at end of file diff --git a/config/agents_registry.json b/config/agents_registry.json index 5b964da..995e5fe 100644 --- a/config/agents_registry.json +++ b/config/agents_registry.json @@ -4,5 +4,11 @@ "mqtt_inbox" : "agents/agent2_debian13/inbox", "mqtt_outbox" : "agents/agent1/inbox", "speciality" : "Administration Debian : apt, dpkg, systemd, conteneurs LXC/Docker, KVM, réseau, sécurité système" + }, + "agent2_ansible": { + "jid" : "agent2_ansible@xmpp.ovh", + "mqtt_inbox" : "agents/agent2_ansible/inbox", + "mqtt_outbox" : "agents/agent1/inbox", + "speciality" : "Automatisation infrastructure via Ansible : playbooks, commandes ad-hoc, déploiement multi-hôtes, gestion de configuration sur le réseau local" } }