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" } }